Package com.amazonaws.xray.entities
Class FacadeSegment
java.lang.Object
com.amazonaws.xray.entities.EntityImpl
com.amazonaws.xray.entities.FacadeSegment
- All Implemented Interfaces:
Entity
,Segment
,AutoCloseable
-
Field Summary
FieldsFields inherited from class com.amazonaws.xray.entities.EntityImpl
mapper, referenceCount, totalSize
-
Constructor Summary
ConstructorsConstructorDescriptionFacadeSegment
(AWSXRayRecorder recorder, @Nullable TraceID traceId, @Nullable String id, @Nullable TraceHeader.SampleDecision sampleDecision) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addException
(Throwable exception) Unsupported as FacadeSegments cannot be mutated.void
close()
Unsupported as FacadeSegments cannot be mutated.boolean
end()
Unsupported as FacadeSegments cannot be mutated.Unsupported as FacadeSegments are not aware of their origin.Unsupported as FacadeSegments are not aware of their resource ARN.Unsupported as FacadeSegments are not aware of their service.getUser()
Unsupported as FacadeSegments are not aware of their user.boolean
Returns if thisSegment
is recording events and will be emitted.boolean
void
Unsupported as FacadeSegments cannot be mutated.void
putAllHttp
(Map<String, Object> all) Unsupported as FacadeSegments cannot be mutated.void
putAllService
(Map<String, Object> all) Unsupported as FacadeSegments cannot be mutated.void
Unsupported as FacadeSegments cannot be mutated.void
putAnnotation
(String key, Boolean value) Unsupported as FacadeSegments cannot be mutated.void
putAnnotation
(String key, Number value) Unsupported as FacadeSegments cannot be mutated.void
putAnnotation
(String key, String value) Unsupported as FacadeSegments cannot be mutated.void
Unsupported as FacadeSegments cannot be mutated.void
Unsupported as FacadeSegments cannot be mutated.void
putMetadata
(String key, Object object) Unsupported as FacadeSegments cannot be mutated.void
putMetadata
(String namespace, String key, Object object) Unsupported as FacadeSegments cannot be mutated.void
putService
(String key, Object object) Unsupported as FacadeSegments cannot be mutated.void
Unsupported as FacadeSegments cannot be mutated.void
setAnnotations
(Map<String, Object> annotations) Unsupported as FacadeSegments cannot be mutated.void
Unsupported as FacadeSegments cannot be mutated.void
setCreator
(AWSXRayRecorder creator) Unsupported as FacadeSegments cannot be mutated.void
setEndTime
(double endTime) Unsupported as FacadeSegments cannot be mutated.void
setError
(boolean error) Unsupported as FacadeSegments cannot be mutated.void
setFault
(boolean fault) Unsupported as FacadeSegments cannot be mutated.void
Unsupported as FacadeSegments cannot be mutated.void
Unsupported as FacadeSegments cannot be mutated.void
setInProgress
(boolean inProgress) Unsupported as FacadeSegments cannot be mutated.void
Unsupported as FacadeSegments cannot be mutated.void
setNamespace
(String namespace) Unsupported as FacadeSegments cannot be mutated.void
Unsupported as FacadeSegments cannot be mutated.void
Unsupported as FacadeSegments cannot be mutated.void
setParentId
(@Nullable String parentId) Unsupported as FacadeSegments cannot be mutated.void
setResourceArn
(String resourceArn) Unsupported as FacadeSegments cannot be mutated.void
setRuleName
(String name) void
setSampled
(boolean sampled) Unsupported as FacadeSegments cannot be mutated.void
setService
(Map<String, Object> service) Unsupported as FacadeSegments cannot be mutated.void
Unsupported as FacadeSegments cannot be mutated.void
setStartTime
(double startTime) Unsupported as FacadeSegments cannot be mutated.void
setThrottle
(boolean throttle) Unsupported as FacadeSegments cannot be mutated.void
setTraceId
(@Nullable TraceID traceId) Unsupported as FacadeSegments cannot be mutated.void
Unsupported as FacadeSegments cannot be mutated.Methods inherited from class com.amazonaws.xray.entities.EntityImpl
addSubsegment, checkAlreadyEmitted, compareAndSetEmitted, decrementReferenceCount, getAnnotations, getAws, getCause, getCreator, getEndTime, getHttp, getId, getMetadata, getName, getNamespace, getParent, getParentId, getReferenceCount, getSql, getStartTime, getSubsegments, getSubsegmentsCopy, getSubsegmentsLock, getTraceId, incrementReferenceCount, isEmitted, isError, isFault, isInProgress, isThrottle, prettySerialize, removeSubsegment, serialize, setEmitted, setSubsegmentsLock, validateNotNull
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.amazonaws.xray.entities.Entity
addSubsegment, compareAndSetEmitted, decrementReferenceCount, getAws, getCause, getCreator, getEndTime, getHttp, getId, getMetadata, getName, getNamespace, getParent, getParentId, getReferenceCount, getSql, getStartTime, getSubsegments, getSubsegmentsCopy, getSubsegmentsLock, getTraceId, incrementReferenceCount, isEmitted, isError, isFault, isInProgress, isThrottle, prettySerialize, removeSubsegment, run, run, serialize, setEmitted, setSubsegmentsLock
Methods inherited from interface com.amazonaws.xray.entities.Segment
getAnnotations
-
Field Details
-
resourceArn
-
user
-
origin
-
service
-
-
Constructor Details
-
FacadeSegment
public FacadeSegment(AWSXRayRecorder recorder, @Nullable TraceID traceId, @Nullable String id, @Nullable TraceHeader.SampleDecision sampleDecision)
-
-
Method Details
-
close
public void close()Unsupported as FacadeSegments cannot be mutated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSegment
- Throws:
UnsupportedOperationException
- in all cases
-
end
public boolean end()Unsupported as FacadeSegments cannot be mutated.- Specified by:
end
in interfaceSegment
- Returns:
- true if 1) the reference count is less than or equal to zero and 2) sampled is true
- Throws:
UnsupportedOperationException
- in all cases
-
isRecording
public boolean isRecording()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
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putService
in interfaceSegment
- Parameters:
key
- the key under which the service information is storedobject
- the service information- Throws:
UnsupportedOperationException
- in all cases
-
getTotalSize
- Specified by:
getTotalSize
in interfaceEntity
- Overrides:
getTotalSize
in classEntityImpl
- Returns:
- a LongAdder with a value of 0, as the total size of a FacadeSegment is not tracked.
-
isSampled
public boolean isSampled() -
setSampled
public void setSampled(boolean sampled) Unsupported as FacadeSegments cannot be mutated.- Specified by:
setSampled
in interfaceSegment
- Parameters:
sampled
- the sampled to set- Throws:
UnsupportedOperationException
- in all cases
-
getResourceArn
Unsupported as FacadeSegments are not aware of their resource ARN.- Specified by:
getResourceArn
in interfaceSegment
- Returns:
- the resourceArn
- Throws:
UnsupportedOperationException
- in all cases
-
setResourceArn
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setResourceArn
in interfaceSegment
- Parameters:
resourceArn
- the resourceArn to set- Throws:
UnsupportedOperationException
- in all cases
-
getUser
Unsupported as FacadeSegments are not aware of their user.- Specified by:
getUser
in interfaceSegment
- Returns:
- the user
- Throws:
UnsupportedOperationException
- in all cases
-
setUser
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setUser
in interfaceSegment
- Parameters:
user
- the user to set- Throws:
UnsupportedOperationException
- in all cases
-
getOrigin
Unsupported as FacadeSegments are not aware of their origin.- Specified by:
getOrigin
in interfaceSegment
- Returns:
- the origin
- Throws:
UnsupportedOperationException
- in all cases
-
setOrigin
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setOrigin
in interfaceSegment
- Parameters:
origin
- the origin to set- Throws:
UnsupportedOperationException
- in all cases
-
getService
Unsupported as FacadeSegments are not aware of their service.- Specified by:
getService
in interfaceSegment
- Returns:
- the service
- Throws:
UnsupportedOperationException
- in all cases
-
getParentSegment
- Specified by:
getParentSegment
in interfaceEntity
- Specified by:
getParentSegment
in interfaceSegment
- Specified by:
getParentSegment
in classEntityImpl
-
setId
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setId
in interfaceEntity
- Overrides:
setId
in classEntityImpl
- Parameters:
id
- the id to set- Throws:
UnsupportedOperationException
- in all cases
-
setStartTime
public void setStartTime(double startTime) Unsupported as FacadeSegments cannot be mutated.- Specified by:
setStartTime
in interfaceEntity
- Overrides:
setStartTime
in classEntityImpl
- Parameters:
startTime
- the startTime to set- Throws:
UnsupportedOperationException
- in all cases
-
setEndTime
public void setEndTime(double endTime) Unsupported as FacadeSegments cannot be mutated.- Specified by:
setEndTime
in interfaceEntity
- Overrides:
setEndTime
in classEntityImpl
- Parameters:
endTime
- the endTime to set- Throws:
UnsupportedOperationException
- in all cases
-
setFault
public void setFault(boolean fault) Unsupported as FacadeSegments cannot be mutated.- Specified by:
setFault
in interfaceEntity
- Overrides:
setFault
in classEntityImpl
- Parameters:
fault
- the fault to set- Throws:
UnsupportedOperationException
- in all cases
-
setError
public void setError(boolean error) Unsupported as FacadeSegments cannot be mutated.- Specified by:
setError
in interfaceEntity
- Overrides:
setError
in classEntityImpl
- Parameters:
error
- the error to set- Throws:
UnsupportedOperationException
- in all cases
-
setNamespace
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setNamespace
in interfaceEntity
- Overrides:
setNamespace
in classEntityImpl
- Parameters:
namespace
- the namespace to set- Throws:
UnsupportedOperationException
- in all cases
-
setHttp
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setHttp
in interfaceEntity
- Overrides:
setHttp
in classEntityImpl
- Parameters:
http
- the http to set- Throws:
UnsupportedOperationException
- in all cases
-
setAws
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setAws
in interfaceEntity
- Overrides:
setAws
in classEntityImpl
- Parameters:
aws
- the aws to set- Throws:
UnsupportedOperationException
- in all cases
-
setSql
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setSql
in interfaceEntity
- Overrides:
setSql
in classEntityImpl
- Parameters:
sql
- the sql to set- Throws:
UnsupportedOperationException
- in all cases
-
setMetadata
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setMetadata
in interfaceEntity
- Overrides:
setMetadata
in classEntityImpl
- Parameters:
metadata
- the metadata to set- Throws:
UnsupportedOperationException
- in all cases
-
setAnnotations
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setAnnotations
in interfaceEntity
- Overrides:
setAnnotations
in classEntityImpl
- Parameters:
annotations
- the annotations to set- Throws:
UnsupportedOperationException
- in all cases
-
setParent
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setParent
in interfaceEntity
- Overrides:
setParent
in classEntityImpl
- Parameters:
parent
- the parent to set- Throws:
UnsupportedOperationException
- in all cases
-
setCreator
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setCreator
in interfaceEntity
- Overrides:
setCreator
in classEntityImpl
- Parameters:
creator
- the creator to set- Throws:
UnsupportedOperationException
- in all cases
-
setThrottle
public void setThrottle(boolean throttle) Unsupported as FacadeSegments cannot be mutated.- Specified by:
setThrottle
in interfaceEntity
- Overrides:
setThrottle
in classEntityImpl
- Parameters:
throttle
- the throttle to set- Throws:
UnsupportedOperationException
- in all cases
-
setInProgress
public void setInProgress(boolean inProgress) Unsupported as FacadeSegments cannot be mutated.- Specified by:
setInProgress
in interfaceEntity
- Overrides:
setInProgress
in classEntityImpl
- Parameters:
inProgress
- the inProgress to set- Throws:
UnsupportedOperationException
- in all cases
-
setTraceId
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setTraceId
in interfaceEntity
- Overrides:
setTraceId
in classEntityImpl
- Parameters:
traceId
- the traceId to set- Throws:
UnsupportedOperationException
- in all cases
-
setParentId
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setParentId
in interfaceEntity
- Overrides:
setParentId
in classEntityImpl
- Parameters:
parentId
- the parentId to set- Throws:
UnsupportedOperationException
- in all cases
-
addException
Unsupported as FacadeSegments cannot be mutated.- Specified by:
addException
in interfaceEntity
- Overrides:
addException
in classEntityImpl
- Parameters:
exception
- the exception to add- Throws:
UnsupportedOperationException
- in all cases
-
putHttp
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putHttp
in interfaceEntity
- Overrides:
putHttp
in classEntityImpl
- Parameters:
key
- the key under which the HTTP information is storedvalue
- the HTTP information- Throws:
UnsupportedOperationException
- in all cases
-
putAllHttp
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putAllHttp
in interfaceEntity
- Overrides:
putAllHttp
in classEntityImpl
- Parameters:
all
- the HTTP information to put- Throws:
UnsupportedOperationException
- in all cases
-
putAws
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putAws
in interfaceEntity
- Overrides:
putAws
in classEntityImpl
- Parameters:
key
- the key under which the AWS information is storedvalue
- the AWS information- Throws:
UnsupportedOperationException
- in all cases
-
putAllAws
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putAllAws
in interfaceEntity
- Overrides:
putAllAws
in classEntityImpl
- Parameters:
all
- the AWS information to put- Throws:
UnsupportedOperationException
- in all cases
-
putSql
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putSql
in interfaceEntity
- Overrides:
putSql
in classEntityImpl
- Parameters:
key
- the key under which the SQL information is storedvalue
- the SQL information- Throws:
UnsupportedOperationException
- in all cases
-
putAllSql
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putAllSql
in interfaceEntity
- Overrides:
putAllSql
in classEntityImpl
- Parameters:
all
- the SQL information to put- Throws:
UnsupportedOperationException
- in all cases
-
putAnnotation
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putAnnotation
in interfaceEntity
- Overrides:
putAnnotation
in classEntityImpl
- Parameters:
key
- the key under which the annotation is storedvalue
- the String annotation- Throws:
UnsupportedOperationException
- in all cases
-
putAnnotation
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putAnnotation
in interfaceEntity
- Overrides:
putAnnotation
in classEntityImpl
- Parameters:
key
- the key under which the annotation is storedvalue
- the Number annotation- Throws:
UnsupportedOperationException
- in all cases
-
putAnnotation
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putAnnotation
in interfaceEntity
- Overrides:
putAnnotation
in classEntityImpl
- Parameters:
key
- the key under which the annotation is storedvalue
- the Boolean annotation- Throws:
UnsupportedOperationException
- in all cases
-
putMetadata
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putMetadata
in interfaceEntity
- Overrides:
putMetadata
in classEntityImpl
- Parameters:
key
- the key under which the metadata is storedobject
- the metadata- Throws:
UnsupportedOperationException
- in all cases
-
putMetadata
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putMetadata
in interfaceEntity
- Overrides:
putMetadata
in classEntityImpl
- Parameters:
namespace
- the namespace under which the metadata is storedkey
- the key under which the metadata is storedobject
- the metadata- Throws:
UnsupportedOperationException
- in all cases
-
putAllService
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putAllService
in interfaceSegment
- Parameters:
all
- the service information to set.- Throws:
UnsupportedOperationException
- in all cases
-
setService
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setService
in interfaceSegment
- Parameters:
service
- the service to set- Throws:
UnsupportedOperationException
- in all cases
-
setRuleName
- Specified by:
setRuleName
in interfaceSegment
-