Package com.amazonaws.xray.entities
Class FacadeSegment
- java.lang.Object
-
- com.amazonaws.xray.entities.EntityImpl
-
- com.amazonaws.xray.entities.FacadeSegment
-
public class FacadeSegment extends EntityImpl implements Segment
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
origin
protected java.lang.String
resourceArn
protected java.util.Map<java.lang.String,java.lang.Object>
service
protected java.lang.String
user
-
Fields inherited from class com.amazonaws.xray.entities.EntityImpl
mapper, referenceCount, totalSize
-
-
Constructor Summary
Constructors Constructor Description FacadeSegment(AWSXRayRecorder recorder, @Nullable TraceID traceId, @Nullable java.lang.String id, @Nullable TraceHeader.SampleDecision sampleDecision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addException(java.lang.Throwable exception)
Unsupported as FacadeSegments cannot be mutated.void
close()
Unsupported as FacadeSegments cannot be mutated.boolean
end()
Unsupported as FacadeSegments cannot be mutated.java.lang.String
getOrigin()
Unsupported as FacadeSegments are not aware of their origin.Segment
getParentSegment()
java.lang.String
getResourceArn()
Unsupported as FacadeSegments are not aware of their resource ARN.java.util.Map<java.lang.String,java.lang.Object>
getService()
Unsupported as FacadeSegments are not aware of their service.java.util.concurrent.atomic.LongAdder
getTotalSize()
java.lang.String
getUser()
Unsupported as FacadeSegments are not aware of their user.boolean
isRecording()
Returns if thisSegment
is recording events and will be emitted.boolean
isSampled()
void
putAllAws(java.util.Map<java.lang.String,java.lang.Object> all)
Unsupported as FacadeSegments cannot be mutated.void
putAllHttp(java.util.Map<java.lang.String,java.lang.Object> all)
Unsupported as FacadeSegments cannot be mutated.void
putAllService(java.util.Map<java.lang.String,java.lang.Object> all)
Unsupported as FacadeSegments cannot be mutated.void
putAllSql(java.util.Map<java.lang.String,java.lang.Object> all)
Unsupported as FacadeSegments cannot be mutated.void
putAnnotation(java.lang.String key, java.lang.Boolean value)
Unsupported as FacadeSegments cannot be mutated.void
putAnnotation(java.lang.String key, java.lang.Number value)
Unsupported as FacadeSegments cannot be mutated.void
putAnnotation(java.lang.String key, java.lang.String value)
Unsupported as FacadeSegments cannot be mutated.void
putAws(java.lang.String key, java.lang.Object value)
Unsupported as FacadeSegments cannot be mutated.void
putHttp(java.lang.String key, java.lang.Object value)
Unsupported as FacadeSegments cannot be mutated.void
putMetadata(java.lang.String key, java.lang.Object object)
Unsupported as FacadeSegments cannot be mutated.void
putMetadata(java.lang.String namespace, java.lang.String key, java.lang.Object object)
Unsupported as FacadeSegments cannot be mutated.void
putService(java.lang.String key, java.lang.Object object)
Unsupported as FacadeSegments cannot be mutated.void
putSql(java.lang.String key, java.lang.Object value)
Unsupported as FacadeSegments cannot be mutated.void
setAnnotations(java.util.Map<java.lang.String,java.lang.Object> annotations)
Unsupported as FacadeSegments cannot be mutated.void
setAws(java.util.Map<java.lang.String,java.lang.Object> aws)
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
setHttp(java.util.Map<java.lang.String,java.lang.Object> http)
Unsupported as FacadeSegments cannot be mutated.void
setId(java.lang.String id)
Unsupported as FacadeSegments cannot be mutated.void
setInProgress(boolean inProgress)
Unsupported as FacadeSegments cannot be mutated.void
setMetadata(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> metadata)
Unsupported as FacadeSegments cannot be mutated.void
setNamespace(java.lang.String namespace)
Unsupported as FacadeSegments cannot be mutated.void
setOrigin(java.lang.String origin)
Unsupported as FacadeSegments cannot be mutated.void
setParent(Entity parent)
Unsupported as FacadeSegments cannot be mutated.void
setParentId(@Nullable java.lang.String parentId)
Unsupported as FacadeSegments cannot be mutated.void
setResourceArn(java.lang.String resourceArn)
Unsupported as FacadeSegments cannot be mutated.void
setRuleName(java.lang.String name)
void
setSampled(boolean sampled)
Unsupported as FacadeSegments cannot be mutated.void
setService(java.util.Map<java.lang.String,java.lang.Object> service)
Unsupported as FacadeSegments cannot be mutated.void
setSql(java.util.Map<java.lang.String,java.lang.Object> sql)
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
setUser(java.lang.String user)
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
-
-
-
-
Constructor Detail
-
FacadeSegment
public FacadeSegment(AWSXRayRecorder recorder, @Nullable TraceID traceId, @Nullable java.lang.String id, @Nullable TraceHeader.SampleDecision sampleDecision)
-
-
Method Detail
-
close
public void close()
Unsupported as FacadeSegments cannot be mutated.
-
end
public boolean end()
Unsupported as FacadeSegments cannot be mutated.
-
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
public void putService(java.lang.String key, java.lang.Object object)
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:
java.lang.UnsupportedOperationException
- in all cases
-
getTotalSize
public java.util.concurrent.atomic.LongAdder 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.
-
setSampled
public void setSampled(boolean sampled)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setSampled
in interfaceSegment
- Parameters:
sampled
- the sampled to set- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
getResourceArn
public java.lang.String getResourceArn()
Unsupported as FacadeSegments are not aware of their resource ARN.- Specified by:
getResourceArn
in interfaceSegment
- Returns:
- the resourceArn
- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
setResourceArn
public void setResourceArn(java.lang.String resourceArn)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setResourceArn
in interfaceSegment
- Parameters:
resourceArn
- the resourceArn to set- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
getUser
public java.lang.String getUser()
Unsupported as FacadeSegments are not aware of their user.
-
setUser
public void setUser(java.lang.String user)
Unsupported as FacadeSegments cannot be mutated.
-
getOrigin
public java.lang.String getOrigin()
Unsupported as FacadeSegments are not aware of their origin.
-
setOrigin
public void setOrigin(java.lang.String origin)
Unsupported as FacadeSegments cannot be mutated.
-
getService
public java.util.Map<java.lang.String,java.lang.Object> getService()
Unsupported as FacadeSegments are not aware of their service.- Specified by:
getService
in interfaceSegment
- Returns:
- the service
- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
getParentSegment
public Segment getParentSegment()
- Specified by:
getParentSegment
in interfaceEntity
- Specified by:
getParentSegment
in interfaceSegment
- Specified by:
getParentSegment
in classEntityImpl
-
setId
public void setId(java.lang.String id)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setId
in interfaceEntity
- Overrides:
setId
in classEntityImpl
- Parameters:
id
- the id to set- Throws:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.UnsupportedOperationException
- in all cases
-
setNamespace
public void setNamespace(java.lang.String namespace)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setNamespace
in interfaceEntity
- Overrides:
setNamespace
in classEntityImpl
- Parameters:
namespace
- the namespace to set- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
setHttp
public void setHttp(java.util.Map<java.lang.String,java.lang.Object> http)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setHttp
in interfaceEntity
- Overrides:
setHttp
in classEntityImpl
- Parameters:
http
- the http to set- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
setAws
public void setAws(java.util.Map<java.lang.String,java.lang.Object> aws)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setAws
in interfaceEntity
- Overrides:
setAws
in classEntityImpl
- Parameters:
aws
- the aws to set- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
setSql
public void setSql(java.util.Map<java.lang.String,java.lang.Object> sql)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setSql
in interfaceEntity
- Overrides:
setSql
in classEntityImpl
- Parameters:
sql
- the sql to set- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> metadata)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setMetadata
in interfaceEntity
- Overrides:
setMetadata
in classEntityImpl
- Parameters:
metadata
- the metadata to set- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
setAnnotations
public void setAnnotations(java.util.Map<java.lang.String,java.lang.Object> annotations)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setAnnotations
in interfaceEntity
- Overrides:
setAnnotations
in classEntityImpl
- Parameters:
annotations
- the annotations to set- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
setParent
public void setParent(Entity parent)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setParent
in interfaceEntity
- Overrides:
setParent
in classEntityImpl
- Parameters:
parent
- the parent to set- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
setCreator
public void setCreator(AWSXRayRecorder creator)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setCreator
in interfaceEntity
- Overrides:
setCreator
in classEntityImpl
- Parameters:
creator
- the creator to set- Throws:
java.lang.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:
java.lang.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:
java.lang.UnsupportedOperationException
- in all cases
-
setTraceId
public void setTraceId(@Nullable TraceID traceId)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setTraceId
in interfaceEntity
- Overrides:
setTraceId
in classEntityImpl
- Parameters:
traceId
- the traceId to set- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
setParentId
public void setParentId(@Nullable java.lang.String parentId)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setParentId
in interfaceEntity
- Overrides:
setParentId
in classEntityImpl
- Parameters:
parentId
- the parentId to set- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
addException
public void addException(java.lang.Throwable exception)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
addException
in interfaceEntity
- Overrides:
addException
in classEntityImpl
- Parameters:
exception
- the exception to add- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
putHttp
public void putHttp(java.lang.String key, java.lang.Object value)
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:
java.lang.UnsupportedOperationException
- in all cases
-
putAllHttp
public void putAllHttp(java.util.Map<java.lang.String,java.lang.Object> all)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putAllHttp
in interfaceEntity
- Overrides:
putAllHttp
in classEntityImpl
- Parameters:
all
- the HTTP information to put- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
putAws
public void putAws(java.lang.String key, java.lang.Object value)
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:
java.lang.UnsupportedOperationException
- in all cases
-
putAllAws
public void putAllAws(java.util.Map<java.lang.String,java.lang.Object> all)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putAllAws
in interfaceEntity
- Overrides:
putAllAws
in classEntityImpl
- Parameters:
all
- the AWS information to put- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
putSql
public void putSql(java.lang.String key, java.lang.Object value)
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:
java.lang.UnsupportedOperationException
- in all cases
-
putAllSql
public void putAllSql(java.util.Map<java.lang.String,java.lang.Object> all)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putAllSql
in interfaceEntity
- Overrides:
putAllSql
in classEntityImpl
- Parameters:
all
- the SQL information to put- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
putAnnotation
public void putAnnotation(java.lang.String key, java.lang.String value)
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:
java.lang.UnsupportedOperationException
- in all cases
-
putAnnotation
public void putAnnotation(java.lang.String key, java.lang.Number value)
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:
java.lang.UnsupportedOperationException
- in all cases
-
putAnnotation
public void putAnnotation(java.lang.String key, java.lang.Boolean value)
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:
java.lang.UnsupportedOperationException
- in all cases
-
putMetadata
public void putMetadata(java.lang.String key, java.lang.Object object)
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:
java.lang.UnsupportedOperationException
- in all cases
-
putMetadata
public void putMetadata(java.lang.String namespace, java.lang.String key, java.lang.Object object)
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:
java.lang.UnsupportedOperationException
- in all cases
-
putAllService
public void putAllService(java.util.Map<java.lang.String,java.lang.Object> all)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
putAllService
in interfaceSegment
- Parameters:
all
- the service information to set.- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
setService
public void setService(java.util.Map<java.lang.String,java.lang.Object> service)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setService
in interfaceSegment
- Parameters:
service
- the service to set- Throws:
java.lang.UnsupportedOperationException
- in all cases
-
setRuleName
public void setRuleName(java.lang.String name)
- Specified by:
setRuleName
in interfaceSegment
-
-