Package com.amazonaws.xray.entities
Class DummySegment
java.lang.Object
com.amazonaws.xray.entities.DummySegment
- All Implemented Interfaces:
Entity
,Segment
,AutoCloseable
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionDummySegment
(AWSXRayRecorder creator) Deprecated.DummySegment
(AWSXRayRecorder creator, TraceID traceId) Deprecated.DummySegment
(AWSXRayRecorder creator, String name, TraceID traceId) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addException
(Throwable exception) Deprecated.Adds an exception to the entity's cause and sets fault to true.void
addSubsegment
(Subsegment subsegment) Deprecated.Adds a subsegment.void
close()
Deprecated.boolean
compareAndSetEmitted
(boolean current, boolean next) Deprecated.Checks whether thisEntity
currently has emitted state ofcurrent
and if so, set emitted state tonext
.boolean
Deprecated.Decrements the subsegment-reference counter.boolean
end()
Deprecated.Ends the segment.Deprecated.getAws()
Deprecated.getCause()
Deprecated.Deprecated.double
Deprecated.getHttp()
Deprecated.getId()
Deprecated.Deprecated.getName()
Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.int
Deprecated.Returns the reference count of the segment.Deprecated.Deprecated.getSql()
Deprecated.double
Deprecated.Deprecated.Deprecated.Returns a copy of the currently added subsegments.Deprecated.Deprecated.Deprecated.getUser()
Deprecated.void
Deprecated.Increments the subsegment-reference counter.boolean
Deprecated.boolean
isError()
Deprecated.boolean
isFault()
Deprecated.boolean
Deprecated.boolean
Deprecated.Returns if thisSegment
is recording events and will be emitted.boolean
Deprecated.boolean
Deprecated.Deprecated.void
Deprecated.Puts AWS information.void
putAllHttp
(Map<String, Object> all) Deprecated.Puts HTTP information.void
putAllService
(Map<String, Object> all) Deprecated.Puts information about this service.void
Deprecated.Puts SQL information.void
putAnnotation
(String key, Boolean value) Deprecated.Puts a Boolean annotation.void
putAnnotation
(String key, Number value) Deprecated.Puts a Number annotation.void
putAnnotation
(String key, String value) Deprecated.Puts a String annotation.void
Deprecated.Puts AWS information.void
Deprecated.Puts HTTP information.void
putMetadata
(String key, Object object) Deprecated.Puts metadata under the namespace 'default'.void
putMetadata
(String namespace, String key, Object object) Deprecated.Puts metadata.void
putService
(String key, Object object) Deprecated.Puts information about this service.void
Deprecated.Puts SQL information.void
removeSubsegment
(Subsegment subsegment) Deprecated.Removes a subsegment from the subsegment list.Deprecated.void
setAnnotations
(Map<String, Object> annotations) Deprecated.void
Deprecated.void
setCreator
(AWSXRayRecorder creator) Deprecated.void
setEmitted
(boolean emitted) Deprecated.Sets emitted on the entity.void
setEndTime
(double endTime) Deprecated.void
setError
(boolean error) Deprecated.Sets the error value of the entity.void
setFault
(boolean fault) Deprecated.void
Deprecated.void
Deprecated.void
setInProgress
(boolean inProgress) Deprecated.void
Deprecated.void
setNamespace
(String namespace) Deprecated.void
Deprecated.void
Deprecated.void
setParentId
(@Nullable String parentId) Deprecated.void
setResourceArn
(String resourceArn) Deprecated.void
setRuleName
(String name) Deprecated.void
setSampled
(boolean sampled) Deprecated.void
setService
(Map<String, Object> service) Deprecated.void
Deprecated.void
setStartTime
(double startTime) Deprecated.void
setSubsegmentsLock
(ReentrantLock subsegmentsLock) Deprecated.void
setThrottle
(boolean throttle) Deprecated.Sets the throttle value.void
setTraceId
(TraceID traceId) Deprecated.void
Deprecated.
-
Constructor Details
-
DummySegment
Deprecated. -
DummySegment
Deprecated. -
DummySegment
Deprecated.
-
-
Method Details
-
getName
Deprecated. -
getId
Deprecated. -
setId
Deprecated. -
getStartTime
public double getStartTime()Deprecated.- Specified by:
getStartTime
in interfaceEntity
- Returns:
- the startTime
-
setStartTime
public void setStartTime(double startTime) Deprecated.- Specified by:
setStartTime
in interfaceEntity
- Parameters:
startTime
- the startTime to set
-
getEndTime
public double getEndTime()Deprecated.- Specified by:
getEndTime
in interfaceEntity
- Returns:
- the endTime
-
setEndTime
public void setEndTime(double endTime) Deprecated.- Specified by:
setEndTime
in interfaceEntity
- Parameters:
endTime
- the endTime to set
-
isFault
public boolean isFault()Deprecated. -
setFault
public void setFault(boolean fault) Deprecated. -
isError
public boolean isError()Deprecated. -
setError
public void setError(boolean error) Deprecated.Description copied from interface:Entity
Sets the error value of the entity. -
getNamespace
Deprecated.- Specified by:
getNamespace
in interfaceEntity
- Returns:
- the namespace
-
setNamespace
Deprecated.- Specified by:
setNamespace
in interfaceEntity
- Parameters:
namespace
- the namespace to set
-
getCause
Deprecated. -
getHttp
Deprecated. -
setHttp
Deprecated. -
getAws
Deprecated. -
setAws
Deprecated. -
getSql
Deprecated. -
setSql
Deprecated. -
getMetadata
Deprecated.- Specified by:
getMetadata
in interfaceEntity
- Returns:
- the metadata
-
setMetadata
Deprecated.- Specified by:
setMetadata
in interfaceEntity
- Parameters:
metadata
- the metadata to set
-
setAnnotations
Deprecated.- Specified by:
setAnnotations
in interfaceEntity
- Parameters:
annotations
- the annotations to set
-
getParent
Deprecated. -
setParent
Deprecated. -
isThrottle
public boolean isThrottle()Deprecated.- Specified by:
isThrottle
in interfaceEntity
- Returns:
- the throttle
-
setThrottle
public void setThrottle(boolean throttle) Deprecated.Description copied from interface:Entity
Sets the throttle value. When setting to true, error is also set to true and fault set to false.- Specified by:
setThrottle
in interfaceEntity
- Parameters:
throttle
- the throttle to set
-
isInProgress
public boolean isInProgress()Deprecated.- Specified by:
isInProgress
in interfaceEntity
- Returns:
- the inProgress
-
setInProgress
public void setInProgress(boolean inProgress) Deprecated.- Specified by:
setInProgress
in interfaceEntity
- Parameters:
inProgress
- the inProgress to set
-
getTraceId
Deprecated.- Specified by:
getTraceId
in interfaceEntity
- Returns:
- the traceId
-
setTraceId
Deprecated.- Specified by:
setTraceId
in interfaceEntity
- Parameters:
traceId
- the traceId to set
-
getCreator
Deprecated.- Specified by:
getCreator
in interfaceEntity
- Returns:
- the creator
-
setCreator
Deprecated.- Specified by:
setCreator
in interfaceEntity
- Parameters:
creator
- the creator to set
-
getParentId
Deprecated.- Specified by:
getParentId
in interfaceEntity
- Returns:
- the parentId
-
setParentId
Deprecated.- Specified by:
setParentId
in interfaceEntity
- Parameters:
parentId
- the parentId to set
-
getSubsegments
Deprecated.- Specified by:
getSubsegments
in interfaceEntity
- Returns:
- the subsegments
-
getSubsegmentsCopy
Deprecated.Description copied from interface:Entity
Returns a copy of the currently added subsegments. Updates to the returnedList
will not be reflected in theEntity
.- Specified by:
getSubsegmentsCopy
in interfaceEntity
-
addSubsegment
Deprecated.Description copied from interface:Entity
Adds a subsegment.- Specified by:
addSubsegment
in interfaceEntity
- Parameters:
subsegment
- the subsegment to add
-
addException
Deprecated.Description copied from interface:Entity
Adds an exception to the entity's cause and sets fault to true.- Specified by:
addException
in interfaceEntity
- Parameters:
exception
- the exception to add
-
putHttp
Deprecated.Description copied from interface:Entity
Puts HTTP information. -
putAllHttp
Deprecated.Description copied from interface:Entity
Puts HTTP information.- Specified by:
putAllHttp
in interfaceEntity
- Parameters:
all
- the HTTP information to put
-
putAws
Deprecated.Description copied from interface:Entity
Puts AWS information. -
putAllAws
Deprecated.Description copied from interface:Entity
Puts AWS information. -
putSql
Deprecated.Description copied from interface:Entity
Puts SQL information. -
putAllSql
Deprecated.Description copied from interface:Entity
Puts SQL information. -
putAnnotation
Deprecated.Description copied from interface:Entity
Puts a String annotation.- Specified by:
putAnnotation
in interfaceEntity
- Parameters:
key
- the key under which the annotation is storedvalue
- the String annotation
-
putAnnotation
Deprecated.Description copied from interface:Entity
Puts a Number annotation.- Specified by:
putAnnotation
in interfaceEntity
- Parameters:
key
- the key under which the annotation is storedvalue
- the Number annotation
-
putAnnotation
Deprecated.Description copied from interface:Entity
Puts a Boolean annotation.- Specified by:
putAnnotation
in interfaceEntity
- Parameters:
key
- the key under which the annotation is storedvalue
- the Boolean annotation
-
putMetadata
Deprecated.Description copied from interface:Entity
Puts metadata under the namespace 'default'.- Specified by:
putMetadata
in interfaceEntity
- Parameters:
key
- the key under which the metadata is storedobject
- the metadata
-
putMetadata
Deprecated.Description copied from interface:Entity
Puts metadata.- Specified by:
putMetadata
in interfaceEntity
- Parameters:
namespace
- the namespace under which the metadata is storedkey
- the key under which the metadata is storedobject
- the metadata
-
isEmitted
public boolean isEmitted()Deprecated. -
setEmitted
public void setEmitted(boolean emitted) Deprecated.Description copied from interface:Entity
Sets emitted on the entity.- Specified by:
setEmitted
in interfaceEntity
-
compareAndSetEmitted
public boolean compareAndSetEmitted(boolean current, boolean next) Deprecated.Description copied from interface:Entity
Checks whether thisEntity
currently has emitted state ofcurrent
and if so, set emitted state tonext
. Returnstrue
if the state was updated, orfalse
otherwise.- Specified by:
compareAndSetEmitted
in interfaceEntity
-
serialize
Deprecated. -
prettySerialize
Deprecated.- Specified by:
prettySerialize
in interfaceEntity
-
end
public boolean end()Deprecated.Description copied from interface:Segment
Ends the segment. Sets the end time to the current time. Sets inProgress to false. -
isRecording
public boolean isRecording()Deprecated.Description copied from interface:Segment
Returns if thisSegment
is recording events and will be emitted. Any operations on aSegment
which is not recording are effectively no-op.- Specified by:
isRecording
in interfaceSegment
-
putService
Deprecated.Description copied from interface:Segment
Puts information about this service.- Specified by:
putService
in interfaceSegment
- Parameters:
key
- the key under which the service information is storedobject
- the service information
-
isSampled
public boolean isSampled()Deprecated. -
setSampled
public void setSampled(boolean sampled) Deprecated.- Specified by:
setSampled
in interfaceSegment
- Parameters:
sampled
- the sampled to set
-
getReferenceCount
public int getReferenceCount()Deprecated.Description copied from interface:Entity
Returns the reference count of the segment. This number represents how many open subsegments are children of this segment. The segment is emitted when its reference count reaches 0.- Specified by:
getReferenceCount
in interfaceEntity
- Returns:
- the reference count
-
getTotalSize
Deprecated.- Specified by:
getTotalSize
in interfaceEntity
- Returns:
- the totalSize
-
incrementReferenceCount
public void incrementReferenceCount()Deprecated.Description copied from interface:Entity
Increments the subsegment-reference counter.- Specified by:
incrementReferenceCount
in interfaceEntity
-
decrementReferenceCount
public boolean decrementReferenceCount()Deprecated.Description copied from interface:Entity
Decrements the subsegment-reference counter.- Specified by:
decrementReferenceCount
in interfaceEntity
- Returns:
- true if the segment is no longer in progress and the reference count is less than or equal to zero.
-
getResourceArn
Deprecated.- Specified by:
getResourceArn
in interfaceSegment
- Returns:
- the resourceArn
-
setResourceArn
Deprecated.- Specified by:
setResourceArn
in interfaceSegment
- Parameters:
resourceArn
- the resourceArn to set
-
getUser
Deprecated. -
setUser
Deprecated. -
getOrigin
Deprecated. -
setOrigin
Deprecated. -
getService
Deprecated.- Specified by:
getService
in interfaceSegment
- Returns:
- the service
-
getAnnotations
Deprecated.- Specified by:
getAnnotations
in interfaceEntity
- Specified by:
getAnnotations
in interfaceSegment
- Returns:
- the annotations
-
getParentSegment
Deprecated.- Specified by:
getParentSegment
in interfaceEntity
- Specified by:
getParentSegment
in interfaceSegment
-
close
public void close()Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSegment
-
getSubsegmentsLock
Deprecated.- Specified by:
getSubsegmentsLock
in interfaceEntity
- Returns:
- the subsegmentsLock
-
setSubsegmentsLock
Deprecated.- Specified by:
setSubsegmentsLock
in interfaceEntity
- Parameters:
subsegmentsLock
- the subsegmentsLock to set
-
putAllService
Deprecated.Description copied from interface:Segment
Puts information about this service.- Specified by:
putAllService
in interfaceSegment
- Parameters:
all
- the service information to set.
-
setService
Deprecated.- Specified by:
setService
in interfaceSegment
- Parameters:
service
- the service to set
-
removeSubsegment
Deprecated.Description copied from interface:Entity
Removes a subsegment from the subsegment list. Decrements the total size of the parentSegment. Marks the removed subsegment as emitted future modification on this subsegment may raise an AlreadyEmittedException.- Specified by:
removeSubsegment
in interfaceEntity
- Parameters:
subsegment
- the subsegment to remove
-
setRuleName
Deprecated.- Specified by:
setRuleName
in interfaceSegment
-
Segment.noOp(TraceID, AWSXRayRecorder)
.