Package jenkins.model
Class Uptime
- java.lang.Object
-
- jenkins.model.Uptime
-
@Extension public class Uptime extends Object
Keeps track of the uptime of Jenkins.- Since:
- 1.538
- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description Uptime()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetStartTime()Timestamp in which Jenkins became fully up and running.longgetUptime()Duration in milliseconds since Jenkins became availablevoidinit()
-
-
-
Method Detail
-
getStartTime
public long getStartTime()
Timestamp in which Jenkins became fully up and running.
-
getUptime
public long getUptime()
Duration in milliseconds since Jenkins became available- Returns:
- uptime in milliseconds
-
init
@Initializer(after=JOB_CONFIG_ADAPTED) public void init()
-
-