Class DeploymentSpan
- java.lang.Object
-
- org.glassfish.internal.deployment.analysis.DeploymentSpan
-
- All Implemented Interfaces:
AutoCloseable
public class DeploymentSpan extends Object implements AutoCloseable
Span is a duration of time an event took place. Its position in the hierarchy is identified byTraceContext
, the action being performed by any enum value. Optionally it can contain the name of the component on which the action is performed.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the current span.Enum<?>
getAction()
Duration
getDuration()
Instant
getFinish()
int
getNestLevel()
Determined level of nesting.Instant
getStart()
String
toString()
-
-
-
Method Detail
-
getStart
public Instant getStart()
-
getFinish
public Instant getFinish()
-
getDuration
public Duration getDuration()
-
getAction
public Enum<?> getAction()
-
close
public void close()
Close the current span. This marks the end of the span.- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
getNestLevel
public int getNestLevel()
Determined level of nesting.- Returns:
-
-