Package hudson.slaves
Class OfflineCause
- java.lang.Object
-
- hudson.slaves.OfflineCause
-
- Direct Known Subclasses:
MonitorOfflineCause,OfflineCause.ChannelTermination,OfflineCause.LaunchFailed,OfflineCause.SimpleOfflineCause,TcpSlaveAgentListener.ConnectionFromCurrentPeer
@ExportedBean public abstract class OfflineCause extends Object
Represents a cause that puts a computer offline.Views
OfflineCausemust havecause.jellythat renders a cause into HTML. This is used to tell users why the node is put offline. This view should render a block element like DIV.- Since:
- 1.320
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOfflineCause.ByCLIstatic classOfflineCause.ChannelTerminationCaused by unexpected channel termination.static classOfflineCause.IdleOfflineCauseCaused by idle period.static classOfflineCause.LaunchFailedCaused by failure to launch.static classOfflineCause.SimpleOfflineCauseOfflineCausethat renders a static text, but without any further UI.static classOfflineCause.UserCauseTaken offline by user.
-
Field Summary
Fields Modifier and Type Field Description protected longtimestamp
-
Constructor Summary
Constructors Constructor Description OfflineCause()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OfflineCausecreate(org.jvnet.localizer.Localizable d)DategetTime()Same asgetTimestamp()but in a different type.longgetTimestamp()Timestamp in which the event happened.
-
-
-
Method Detail
-
getTimestamp
@Exported public long getTimestamp()
Timestamp in which the event happened.- Since:
- 1.612
-
getTime
@NonNull public final Date getTime()
Same asgetTimestamp()but in a different type.- Since:
- 1.612
-
create
public static OfflineCause create(org.jvnet.localizer.Localizable d)
-
-