Package com.tailf.notif
Class ProgressNotification
Object
com.tailf.notif.Notification
com.tailf.notif.ProgressNotification
- Direct Known Subclasses:
CommitProgressNotification
Data structure for progress notifications.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Progress event type. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.static final int
Deprecated.UseConf.DB_NONE
instead.static final int
Deprecated.UseConf.DB_RUNNING
instead.static final int
Deprecated.UseConf.DB_STARTUP
instead. -
Constructor Summary
ConstructorDescriptionProgressNotification
(NotificationType type, ProgressNotification.ProgressEventType progressEventType, Long timestamp, Long duration, String traceId, String spanId, String parentSpanId, int usid, int tid, int datastore, String context, String subsystem, String message, String annotation, Map<String, ProgressAttributeValue> attributes, List<ProgressLink> links) -
Method Summary
Modifier and TypeMethodDescriptionMetadata about the event, indicating error, explains latency or show result etc.Attributes of the event.getAttributeValue
(String name) Get a specific attribute of the event.Deprecated.UsegetAttributeValue(String)
instead.The context is either one of netconf, cli, webui, snmp, rest, system or it can be any other context string defined through the use of MAAPI.int
Name of the datastore for which the transaction is started:Conf.DB_NONE
Conf.DB_CANDIDATE
Conf.DB_RUNNING
Conf.DB_STARTUP
Conf.DB_OPERATIONAL
Conf.DB_PRE_COMMIT_RUNNING
Conf.DB_INTENDED
Name, as string, of the datastore for which the transaction is started.int
Deprecated.UsegetDatastore()
instead.Deprecated.UsegetAttributeValue(String)
instead.Deprecated.UsegetAttributeValue(String)
instead.Duration of the event in microseconds.getLinks()
Links to other events.Progress event messeage.getNode()
Deprecated.UsegetAttributeValue(String)
instead.Deprecated.UsegetAttributeValue(String)
instead.This indicates the id of the parent span.getPhase()
Deprecated.UsegetAttributeValue(String)
instead.Progress event type.Deprecated.UsegetAttributeValue(String)
instead.Deprecated.UsegetAttributeValue(String)
instead.int
User session id.Indicates the id of the span.Subsystem name.Timestamp in microseconds since Epoch.Per request unique trace id, included in headers and entries for relevant logs.Deprecated.UsegetTraceId()
instead.int
Deprecated.UsegetTransactionId()
instead.int
Transaction id.int
Deprecated.UsegetSessionId()
instead.toString()
Methods inherited from class com.tailf.notif.Notification
getNotificationType
-
Field Details
-
DATABASE_NO_DB
Deprecated.UseConf.DB_NONE
instead.- See Also:
-
DATABASE_CANDIDATE
Deprecated.UseConf.DB_CANDIDATE
instead.- See Also:
-
DATABASE_RUNNING
Deprecated.UseConf.DB_RUNNING
instead.- See Also:
-
DATABASE_STARTUP
Deprecated.UseConf.DB_STARTUP
instead.- See Also:
-
-
Constructor Details
-
ProgressNotification
public ProgressNotification(NotificationType type, ProgressNotification.ProgressEventType progressEventType, Long timestamp, Long duration, String traceId, String spanId, String parentSpanId, int usid, int tid, int datastore, String context, String subsystem, String message, String annotation, Map<String, ProgressAttributeValue> attributes, List<ProgressLink> links)
-
-
Method Details
-
toString
- Overrides:
toString
in classNotification
-
getDBName
Deprecated.UsegetDatastore()
instead. -
getUserId
Deprecated.UsegetSessionId()
instead. -
getTransaction
Deprecated.UsegetTransactionId()
instead. -
getTraceID
Deprecated.UsegetTraceId()
instead. -
getPhase
Deprecated.UsegetAttributeValue(String)
instead. -
getService
Deprecated.UsegetAttributeValue(String)
instead. -
getServicePhase
Deprecated.UsegetAttributeValue(String)
instead. -
getCommitQueueId
Deprecated.UsegetAttributeValue(String)
instead. -
getNode
Deprecated.UsegetAttributeValue(String)
instead. -
getDevice
Deprecated.UsegetAttributeValue(String)
instead. -
getDevicePhase
Deprecated.UsegetAttributeValue(String)
instead. -
getPackage
Deprecated.UsegetAttributeValue(String)
instead. -
getProgressEventType
Progress event type. -
getTimestamp
Timestamp in microseconds since Epoch. Depending on the progress event type, this timestamp indicates the start of the event, the end of the event, or just when the event occured. -
getDuration
Duration of the event in microseconds. Generated at the end of an event. The timestamp subtracted with the duration equals the start of the event. -
getTraceId
Per request unique trace id, included in headers and entries for relevant logs. -
getSpanId
Indicates the id of the span. -
getParentSpanId
This indicates the id of the parent span. -
getSessionId
public int getSessionId()User session id. -
getTransactionId
public int getTransactionId()Transaction id. -
getDatastore
public int getDatastore()Name of the datastore for which the transaction is started: -
getDatastoreStr
Name, as string, of the datastore for which the transaction is started. -
getContext
The context is either one of netconf, cli, webui, snmp, rest, system or it can be any other context string defined through the use of MAAPI. -
getSubsystem
Subsystem name. -
getMessage
Progress event messeage. -
getAnnotation
Metadata about the event, indicating error, explains latency or show result etc. -
getAttributes
Attributes of the event. The values can be of typeProgressAttributeLiteral
orProgressAttributeNumber
. -
getAttributeValue
Get a specific attribute of the event. The value can be of typeProgressAttributeLiteral
orProgressAttributeNumber
. -
getLinks
Links to other events.
-
Conf.DB_CANDIDATE
instead.