Package com.amazonaws.xray.emitters
Class UDPEmitter
- java.lang.Object
-
- com.amazonaws.xray.emitters.Emitter
-
- com.amazonaws.xray.emitters.UDPEmitter
-
- Direct Known Subclasses:
DefaultEmitter
@Deprecated public class UDPEmitter extends Emitter
Deprecated.UseEmitter.create()
.
-
-
Field Summary
-
Fields inherited from class com.amazonaws.xray.emitters.Emitter
DAEMON_BUF_RECEIVE_SIZE, PRIORITY_PROTOCOL_HEADER, PROTOCOL_DELIMITER, PROTOCOL_HEADER
-
-
Constructor Summary
Constructors Constructor Description UDPEmitter()
Deprecated.Constructs a UDPEmitter.UDPEmitter(DaemonConfiguration config)
Deprecated.Constructs a UDPEmitter.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getUDPAddress()
Deprecated.boolean
sendSegment(Segment segment)
Deprecated.Sends a segment to the X-Ray daemon.boolean
sendSubsegment(Subsegment subsegment)
Deprecated.Sends a subsegment to the X-Ray daemon.
-
-
-
Constructor Detail
-
UDPEmitter
public UDPEmitter() throws java.net.SocketException
Deprecated.Constructs a UDPEmitter. Sets the daemon address to the value of theAWS_XRAY_DAEMON_ADDRESS
environment variable orcom.amazonaws.xray.emitters.daemonAddress
system property, if either are set to a non-empty value. Otherwise, points toInetAddress.getLoopbackAddress()
at port2000
.- Throws:
java.net.SocketException
- if an error occurs while instantiating aDatagramSocket
.
-
UDPEmitter
public UDPEmitter(DaemonConfiguration config) throws java.net.SocketException
Deprecated.Constructs a UDPEmitter. This overload allows you to specify the configuration.- Parameters:
config
- TheDaemonConfiguration
for the Emitter.- Throws:
java.net.SocketException
- if an error occurs while instantiating aDatagramSocket
.
-
-
Method Detail
-
getUDPAddress
public java.lang.String getUDPAddress()
Deprecated.
-
sendSegment
public boolean sendSegment(Segment segment)
Deprecated.Sends a segment to the X-Ray daemon.- Specified by:
sendSegment
in classEmitter
- Parameters:
segment
- the segment to send- Returns:
- true if the send operation was successful
- See Also:
Emitter.sendSegment(Segment)
-
sendSubsegment
public boolean sendSubsegment(Subsegment subsegment)
Deprecated.Sends a subsegment to the X-Ray daemon.- Specified by:
sendSubsegment
in classEmitter
- Parameters:
subsegment
- the subsegment to send- Returns:
- true if the send operation was successful
- See Also:
Emitter.sendSubsegment(Subsegment)
-
-