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.Stringoriginprotected java.lang.StringresourceArnprotected java.util.Map<java.lang.String,java.lang.Object>serviceprotected java.lang.Stringuser-
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 voidaddException(java.lang.Throwable exception)Unsupported as FacadeSegments cannot be mutated.voidclose()Unsupported as FacadeSegments cannot be mutated.booleanend()Unsupported as FacadeSegments cannot be mutated.java.lang.StringgetOrigin()Unsupported as FacadeSegments are not aware of their origin.SegmentgetParentSegment()java.lang.StringgetResourceArn()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.LongAddergetTotalSize()java.lang.StringgetUser()Unsupported as FacadeSegments are not aware of their user.booleanisRecording()Returns if thisSegmentis recording events and will be emitted.booleanisSampled()voidputAllAws(java.util.Map<java.lang.String,java.lang.Object> all)Unsupported as FacadeSegments cannot be mutated.voidputAllHttp(java.util.Map<java.lang.String,java.lang.Object> all)Unsupported as FacadeSegments cannot be mutated.voidputAllService(java.util.Map<java.lang.String,java.lang.Object> all)Unsupported as FacadeSegments cannot be mutated.voidputAllSql(java.util.Map<java.lang.String,java.lang.Object> all)Unsupported as FacadeSegments cannot be mutated.voidputAnnotation(java.lang.String key, java.lang.Boolean value)Unsupported as FacadeSegments cannot be mutated.voidputAnnotation(java.lang.String key, java.lang.Number value)Unsupported as FacadeSegments cannot be mutated.voidputAnnotation(java.lang.String key, java.lang.String value)Unsupported as FacadeSegments cannot be mutated.voidputAws(java.lang.String key, java.lang.Object value)Unsupported as FacadeSegments cannot be mutated.voidputHttp(java.lang.String key, java.lang.Object value)Unsupported as FacadeSegments cannot be mutated.voidputMetadata(java.lang.String key, java.lang.Object object)Unsupported as FacadeSegments cannot be mutated.voidputMetadata(java.lang.String namespace, java.lang.String key, java.lang.Object object)Unsupported as FacadeSegments cannot be mutated.voidputService(java.lang.String key, java.lang.Object object)Unsupported as FacadeSegments cannot be mutated.voidputSql(java.lang.String key, java.lang.Object value)Unsupported as FacadeSegments cannot be mutated.voidsetAnnotations(java.util.Map<java.lang.String,java.lang.Object> annotations)Unsupported as FacadeSegments cannot be mutated.voidsetAws(java.util.Map<java.lang.String,java.lang.Object> aws)Unsupported as FacadeSegments cannot be mutated.voidsetCreator(AWSXRayRecorder creator)Unsupported as FacadeSegments cannot be mutated.voidsetEndTime(double endTime)Unsupported as FacadeSegments cannot be mutated.voidsetError(boolean error)Unsupported as FacadeSegments cannot be mutated.voidsetFault(boolean fault)Unsupported as FacadeSegments cannot be mutated.voidsetHttp(java.util.Map<java.lang.String,java.lang.Object> http)Unsupported as FacadeSegments cannot be mutated.voidsetId(java.lang.String id)Unsupported as FacadeSegments cannot be mutated.voidsetInProgress(boolean inProgress)Unsupported as FacadeSegments cannot be mutated.voidsetMetadata(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> metadata)Unsupported as FacadeSegments cannot be mutated.voidsetNamespace(java.lang.String namespace)Unsupported as FacadeSegments cannot be mutated.voidsetOrigin(java.lang.String origin)Unsupported as FacadeSegments cannot be mutated.voidsetParent(Entity parent)Unsupported as FacadeSegments cannot be mutated.voidsetParentId(@Nullable java.lang.String parentId)Unsupported as FacadeSegments cannot be mutated.voidsetResourceArn(java.lang.String resourceArn)Unsupported as FacadeSegments cannot be mutated.voidsetRuleName(java.lang.String name)voidsetSampled(boolean sampled)Unsupported as FacadeSegments cannot be mutated.voidsetService(java.util.Map<java.lang.String,java.lang.Object> service)Unsupported as FacadeSegments cannot be mutated.voidsetSql(java.util.Map<java.lang.String,java.lang.Object> sql)Unsupported as FacadeSegments cannot be mutated.voidsetStartTime(double startTime)Unsupported as FacadeSegments cannot be mutated.voidsetThrottle(boolean throttle)Unsupported as FacadeSegments cannot be mutated.voidsetTraceId(@Nullable TraceID traceId)Unsupported as FacadeSegments cannot be mutated.voidsetUser(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:SegmentReturns if thisSegmentis recording events and will be emitted. Any operations on aSegmentwhich is not recording are effectively no-op.- Specified by:
isRecordingin interfaceSegment
-
putService
public void putService(java.lang.String key, java.lang.Object object)Unsupported as FacadeSegments cannot be mutated.- Specified by:
putServicein 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:
getTotalSizein interfaceEntity- Overrides:
getTotalSizein 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:
setSampledin 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:
getResourceArnin 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:
setResourceArnin 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:
getServicein interfaceSegment- Returns:
- the service
- Throws:
java.lang.UnsupportedOperationException- in all cases
-
getParentSegment
public Segment getParentSegment()
- Specified by:
getParentSegmentin interfaceEntity- Specified by:
getParentSegmentin interfaceSegment- Specified by:
getParentSegmentin classEntityImpl
-
setId
public void setId(java.lang.String id)
Unsupported as FacadeSegments cannot be mutated.- Specified by:
setIdin interfaceEntity- Overrides:
setIdin 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:
setStartTimein interfaceEntity- Overrides:
setStartTimein 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:
setEndTimein interfaceEntity- Overrides:
setEndTimein 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:
setFaultin interfaceEntity- Overrides:
setFaultin 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:
setErrorin interfaceEntity- Overrides:
setErrorin 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:
setNamespacein interfaceEntity- Overrides:
setNamespacein 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:
setHttpin interfaceEntity- Overrides:
setHttpin 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:
setAwsin interfaceEntity- Overrides:
setAwsin 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:
setSqlin interfaceEntity- Overrides:
setSqlin 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:
setMetadatain interfaceEntity- Overrides:
setMetadatain 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:
setAnnotationsin interfaceEntity- Overrides:
setAnnotationsin 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:
setParentin interfaceEntity- Overrides:
setParentin 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:
setCreatorin interfaceEntity- Overrides:
setCreatorin 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:
setThrottlein interfaceEntity- Overrides:
setThrottlein 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:
setInProgressin interfaceEntity- Overrides:
setInProgressin 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:
setTraceIdin interfaceEntity- Overrides:
setTraceIdin 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:
setParentIdin interfaceEntity- Overrides:
setParentIdin 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:
addExceptionin interfaceEntity- Overrides:
addExceptionin 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:
putHttpin interfaceEntity- Overrides:
putHttpin 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:
putAllHttpin interfaceEntity- Overrides:
putAllHttpin 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:
putAwsin interfaceEntity- Overrides:
putAwsin 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:
putAllAwsin interfaceEntity- Overrides:
putAllAwsin 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:
putSqlin interfaceEntity- Overrides:
putSqlin 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:
putAllSqlin interfaceEntity- Overrides:
putAllSqlin 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:
putAnnotationin interfaceEntity- Overrides:
putAnnotationin 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:
putAnnotationin interfaceEntity- Overrides:
putAnnotationin 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:
putAnnotationin interfaceEntity- Overrides:
putAnnotationin 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:
putMetadatain interfaceEntity- Overrides:
putMetadatain 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:
putMetadatain interfaceEntity- Overrides:
putMetadatain 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:
putAllServicein 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:
setServicein interfaceSegment- Parameters:
service- the service to set- Throws:
java.lang.UnsupportedOperationException- in all cases
-
setRuleName
public void setRuleName(java.lang.String name)
- Specified by:
setRuleNamein interfaceSegment
-
-