Package io.aeron.status
Class ChannelEndpointStatus
java.lang.Object
io.aeron.status.ChannelEndpointStatus
Status of the Aeron media channel for a
Publication or Subscription.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longChannel has finished initialization successfully and is active.static final intOffset in the key metadata for the channel of the counter.static final longChannel is being closed.static final longChannel has errored.static final longChannel is being initialized.static final intThe maximum length in bytes of the encoded channel identity.static final intNo counter ID is allocated yet. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AtomicCounterallocate(MutableDirectBuffer tempBuffer, String name, int typeId, CountersManager countersManager, long registrationId, String channel) Allocate an indicator for tracking the status of a channel endpoint.static Stringstatus(long status) String representation of the channel status.
-
Field Details
-
INITIALIZING
public static final long INITIALIZINGChannel is being initialized.- See Also:
-
ERRORED
public static final long ERROREDChannel has errored. Check error log for information.- See Also:
-
ACTIVE
public static final long ACTIVEChannel has finished initialization successfully and is active.- See Also:
-
CLOSING
public static final long CLOSINGChannel is being closed.- See Also:
-
NO_ID_ALLOCATED
public static final int NO_ID_ALLOCATEDNo counter ID is allocated yet.- See Also:
-
CHANNEL_OFFSET
public static final int CHANNEL_OFFSETOffset in the key metadata for the channel of the counter.- See Also:
-
MAX_CHANNEL_LENGTH
public static final int MAX_CHANNEL_LENGTHThe maximum length in bytes of the encoded channel identity.- See Also:
-
-
Constructor Details
-
ChannelEndpointStatus
public ChannelEndpointStatus()
-
-
Method Details
-
status
String representation of the channel status.- Parameters:
status- to be converted.- Returns:
- representation of the channel status.
-
allocate
public static AtomicCounter allocate(MutableDirectBuffer tempBuffer, String name, int typeId, CountersManager countersManager, long registrationId, String channel) Allocate an indicator for tracking the status of a channel endpoint.- Parameters:
tempBuffer- to be used for labels and metadata.name- of the counter for the label.typeId- of the counter for classification.countersManager- from which the underlying storage is allocated.registrationId- of the action the counter is associated with.channel- for the stream of messages.- Returns:
- a new
AtomicCounterfor tracking the status.
-