Package hudson.slaves
Class OfflineCause
java.lang.Object
hudson.slaves.OfflineCause
- All Implemented Interfaces:
IOfflineCause
- Direct Known Subclasses:
MonitorOfflineCause
,OfflineCause.ChannelTermination
,OfflineCause.LaunchFailed
,OfflineCause.LegacyOfflineCause
,OfflineCause.SimpleOfflineCause
,TcpSlaveAgentListener.ConnectionFromCurrentPeer
Represents a cause that puts a computer offline.
Views
OfflineCause
must have cause.jelly
that 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
Modifier and TypeClassDescriptionstatic class
static class
Caused by unexpected channel termination.static class
Caused by idle period.static class
Caused by failure to launch.static class
Deprecated.Only exists for backward compatibility.static class
OfflineCause
that renders a static text, but without any further UI.static class
Taken offline by user. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OfflineCause
create
(org.jvnet.localizer.Localizable d) long
Timestamp in which the event happened.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jenkins.agents.IOfflineCause
getComputerIcon, getComputerIconAltText, getIcon, getMessage, getReason, getStatusClass, getTime
-
Field Details
-
timestamp
protected final long timestamp
-
-
Constructor Details
-
OfflineCause
public OfflineCause()
-
-
Method Details
-
getTimestamp
@Exported public long getTimestamp()Timestamp in which the event happened.- Specified by:
getTimestamp
in interfaceIOfflineCause
- Since:
- 1.612
-
create
-