Package io.aeron.agent
Enum Class ArchiveEventCode
- All Implemented Interfaces:
EventCode
,Serializable
,Comparable<ArchiveEventCode>
,Constable
Events that can be enabled for logging in the archive module.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionArchive logging event for Catalog resize.Archive logging event forattach-segments
command.Archive logging event forauth-connect
command.Archive logging event forclose-session
command.Archive logging event forconnect
command.Archive logging event fordelete-detached-segments
command.Archive logging event fordetach-segments
command.Archive logging event forextend-recording
command.Archive logging event forextend-recording2
command.Archive logging event forfind-last-matching-recording
command.Archive logging event forkeep-alive
command.Archive logging event forlist-recording
command.Archive logging event forlist-recording-subscriptions
command.Archive logging event forlist-recordings
command.Archive logging event forlist-recordings-by-uri
command.Archive logging event formax-recorded-position
command.Archive logging event formigrate-segments
command.Archive logging event forpurge-recording
command.Archive logging event forpurge-segments
command.Archive logging event forrecording-position
command.Archive logging event forreplay
command.Archive logging event forreplicate
command.Archive logging event forreplicate2
command.Archive logging event forrequest-replay-token
.Archive logging event forstart-bounded-replay
command.Archive logging event forstart-position
command.Archive logging event forstart-recording
command.Archive logging event forstart-recording2
command.Archive logging event forstop-all-replays
command.Archive logging event forstop-position
command.Archive logging event forstop-recording
command.Archive logging event forstop-recording-by-identity
command.Archive logging event forstop-recording-subscription
command.Archive logging event forstop-replay
command.Archive logging event forstop-replication
command.Archive logging event fortagged-replicate
command.Archive logging event fortruncate-recording
command.Archive logging event for Archive response.Archive logging event for control session state change.Archive logging event for recording state change.Archive logging event for recording signal.Archive logging event for replay session error.Archive logging event for replay state change.Archive logging event for replication session done.Archive logging event for replication state change. -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(MutableDirectBuffer buffer, int offset, StringBuilder builder) Decode an event serialised in a buffer to a providedStringBuilder
.static ArchiveEventCode
fromEventCodeId
(int eventCodeId) GetArchiveEventCode
from its event code id.int
id()
Returns the unique event identifier withing anEventCodeType
.int
Template ID of the SBE message.int
static ArchiveEventCode
Returns the enum constant of this class with the specified name.static ArchiveEventCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CMD_IN_CONNECT
Archive logging event forconnect
command. -
CMD_IN_CLOSE_SESSION
Archive logging event forclose-session
command. -
CMD_IN_START_RECORDING
Archive logging event forstart-recording
command. -
CMD_IN_STOP_RECORDING
Archive logging event forstop-recording
command. -
CMD_IN_REPLAY
Archive logging event forreplay
command. -
CMD_IN_STOP_REPLAY
Archive logging event forstop-replay
command. -
CMD_IN_LIST_RECORDINGS
Archive logging event forlist-recordings
command. -
CMD_IN_LIST_RECORDINGS_FOR_URI
Archive logging event forlist-recordings-by-uri
command. -
CMD_IN_LIST_RECORDING
Archive logging event forlist-recording
command. -
CMD_IN_EXTEND_RECORDING
Archive logging event forextend-recording
command. -
CMD_IN_RECORDING_POSITION
Archive logging event forrecording-position
command. -
CMD_IN_TRUNCATE_RECORDING
Archive logging event fortruncate-recording
command. -
CMD_IN_STOP_RECORDING_SUBSCRIPTION
Archive logging event forstop-recording-subscription
command. -
CMD_IN_STOP_POSITION
Archive logging event forstop-position
command. -
CMD_IN_FIND_LAST_MATCHING_RECORD
Archive logging event forfind-last-matching-recording
command. -
CMD_IN_LIST_RECORDING_SUBSCRIPTIONS
Archive logging event forlist-recording-subscriptions
command. -
CMD_IN_START_BOUNDED_REPLAY
Archive logging event forstart-bounded-replay
command. -
CMD_IN_STOP_ALL_REPLAYS
Archive logging event forstop-all-replays
command. -
CMD_IN_REPLICATE
Archive logging event forreplicate
command. -
CMD_IN_STOP_REPLICATION
Archive logging event forstop-replication
command. -
CMD_IN_START_POSITION
Archive logging event forstart-position
command. -
CMD_IN_DETACH_SEGMENTS
Archive logging event fordetach-segments
command. -
CMD_IN_DELETE_DETACHED_SEGMENTS
Archive logging event fordelete-detached-segments
command. -
CMD_IN_PURGE_SEGMENTS
Archive logging event forpurge-segments
command. -
CMD_IN_ATTACH_SEGMENTS
Archive logging event forattach-segments
command. -
CMD_IN_MIGRATE_SEGMENTS
Archive logging event formigrate-segments
command. -
CMD_IN_AUTH_CONNECT
Archive logging event forauth-connect
command. -
CMD_IN_KEEP_ALIVE
Archive logging event forkeep-alive
command. -
CMD_IN_TAGGED_REPLICATE
Archive logging event fortagged-replicate
command. -
CMD_OUT_RESPONSE
Archive logging event for Archive response. -
CMD_IN_START_RECORDING2
Archive logging event forstart-recording2
command. -
CMD_IN_EXTEND_RECORDING2
Archive logging event forextend-recording2
command. -
CMD_IN_STOP_RECORDING_BY_IDENTITY
Archive logging event forstop-recording-by-identity
command. -
REPLICATION_SESSION_STATE_CHANGE
Archive logging event for replication state change. -
CONTROL_SESSION_STATE_CHANGE
Archive logging event for control session state change. -
REPLAY_SESSION_ERROR
Archive logging event for replay session error. -
CATALOG_RESIZE
Archive logging event for Catalog resize. -
CMD_IN_PURGE_RECORDING
Archive logging event forpurge-recording
command. -
CMD_IN_REPLICATE2
Archive logging event forreplicate2
command. -
RECORDING_SIGNAL
Archive logging event for recording signal. -
REPLICATION_SESSION_DONE
Archive logging event for replication session done. -
CMD_IN_REQUEST_REPLAY_TOKEN
Archive logging event forrequest-replay-token
. -
REPLAY_SESSION_STATE_CHANGE
Archive logging event for replay state change. -
RECORDING_SESSION_STATE_CHANGE
Archive logging event for recording state change. -
CMD_IN_MAX_RECORDED_POSITION
Archive logging event formax-recorded-position
command.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
id
public int id()Returns the unique event identifier withing anEventCodeType
. -
templateId
public int templateId()Template ID of the SBE message.- Returns:
- template ID of the SBE message.
-
toEventCodeId
public int toEventCodeId() -
fromEventCodeId
GetArchiveEventCode
from its event code id.- Parameters:
eventCodeId
- to convert.- Returns:
ArchiveEventCode
from its event code id.
-
decode
Decode an event serialised in a buffer to a providedStringBuilder
.- Parameters:
buffer
- containing the encoded event.offset
- offset at which the event begins.builder
- to write the decoded event to.
-