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 voidclose()Close the current span.Enum<?>getAction()DurationgetDuration()InstantgetFinish()intgetNestLevel()Determined level of nesting.InstantgetStart()StringtoString()
-
-
-
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:
closein interfaceAutoCloseable- Throws:
Exception
-
getNestLevel
public int getNestLevel()
Determined level of nesting.- Returns:
-
-