Package com.amazonaws.xray.plugins
Class EC2Plugin
- java.lang.Object
-
- com.amazonaws.xray.plugins.EC2Plugin
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringORIGIN
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(@Nullable java.lang.Object o)Determine equality of plugins using origin to uniquely identify themjava.util.Set<AWSLogReference>getLogReferences()java.lang.StringgetOrigin()Returns the name of the origin associated with this plugin.java.util.Map<java.lang.String,@Nullable java.lang.Object>getRuntimeContext()java.lang.StringgetServiceName()inthashCode()Hash plugin object using origin to uniquely identify thembooleanisEnabled()voidpopulateLogReferences()Reads the log group configuration file generated by the CloudWatch Agent to discover all log groups being used on this instance and populates log reference set with them to be included in trace documents.voidpopulateRuntimeContext()Reads EC2 provided metadata to include it in trace document
-
-
-
Field Detail
-
ORIGIN
public static final java.lang.String ORIGIN
- See Also:
- Constant Field Values
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
getServiceName
public java.lang.String getServiceName()
- Specified by:
getServiceNamein interfacePlugin
-
populateRuntimeContext
public void populateRuntimeContext()
Reads EC2 provided metadata to include it in trace document
-
getRuntimeContext
public java.util.Map<java.lang.String,@Nullable java.lang.Object> getRuntimeContext()
- Specified by:
getRuntimeContextin interfacePlugin
-
populateLogReferences
public void populateLogReferences()
Reads the log group configuration file generated by the CloudWatch Agent to discover all log groups being used on this instance and populates log reference set with them to be included in trace documents.
-
getLogReferences
public java.util.Set<AWSLogReference> getLogReferences()
- Specified by:
getLogReferencesin interfacePlugin- Returns:
- Set of AWS log references used by CloudWatch agent. The ARN of these log references is not available at this time.
-
getOrigin
public java.lang.String getOrigin()
Description copied from interface:PluginReturns the name of the origin associated with this plugin. TheAWSXRayRecordercontains a prioritized list of origins from least to most specific.
-
equals
public boolean equals(@Nullable java.lang.Object o)
Determine equality of plugins using origin to uniquely identify them- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Hash plugin object using origin to uniquely identify them- Overrides:
hashCodein classjava.lang.Object
-
-