Enum Class ObservedActivity

java.lang.Object
java.lang.Enum<ObservedActivity>
org.odpi.openmetadata.adapters.connectors.pepys.ObservedActivity
All Implemented Interfaces:
Serializable, Comparable<ObservedActivity>, Constable

public enum ObservedActivity extends Enum<ObservedActivity>
ObservedActivity maps each of the anchor element activity messages that the metadata access servers write to their audit log onto the UsageActivity count that it increments. The anchor element that the activity is about is always the third message parameter ({2}), and the calling user is the first ({0}). The creation of an anchor element (METADATA-OBSERVABILITY-0001) is not counted.
  • Enum Constant Details

    • ANCHOR_RETRIEVED

      public static final ObservedActivity ANCHOR_RETRIEVED
      METADATA-OBSERVABILITY-0002 - the anchor element was retrieved by its identifier or name.
    • ATTACHMENT_RETRIEVED

      public static final ObservedActivity ATTACHMENT_RETRIEVED
      METADATA-OBSERVABILITY-0003 - an element anchored to the anchor element was retrieved by its identifier or name.
    • ATTACHMENT_UPDATED

      public static final ObservedActivity ATTACHMENT_UPDATED
      METADATA-OBSERVABILITY-0004 - an element anchored to the anchor element was created, linked, unlinked or updated.
    • FEEDBACK_UPDATED

      public static final ObservedActivity FEEDBACK_UPDATED
      METADATA-OBSERVABILITY-0005 - feedback attached to the anchor element was added or updated.
    • PROPERTIES_UPDATED

      public static final ObservedActivity PROPERTIES_UPDATED
      METADATA-OBSERVABILITY-0006 - the properties of the anchor element were updated.
    • ATTACHMENT_DELETED

      public static final ObservedActivity ATTACHMENT_DELETED
      METADATA-OBSERVABILITY-0007 - an element anchored to the anchor element was deleted.
    • ANCHOR_FOUND

      public static final ObservedActivity ANCHOR_FOUND
      METADATA-OBSERVABILITY-0008 - the anchor element was returned by a search.
    • ATTACHMENT_FOUND

      public static final ObservedActivity ATTACHMENT_FOUND
      METADATA-OBSERVABILITY-0009 - an element anchored to the anchor element was returned by a search.
    • FEEDBACK_DELETED

      public static final ObservedActivity FEEDBACK_DELETED
      METADATA-OBSERVABILITY-0011 - feedback attached to the anchor element was deleted.
  • Method Details

    • values

      public static ObservedActivity[] 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

      public static ObservedActivity valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getMessageId

      public String getMessageId()
      Return the identifier of the audit log message that reports this activity.
      Returns:
      message id
    • getUsageCount

      public ObservedActivity.UsageCount getUsageCount()
      Return the count that this activity increments.
      Returns:
      usage count
    • getActivity

      public static ObservedActivity getActivity(String messageId)
      Return the activity reported by an audit log message, or null if the message is not one of the counted anchor element activity messages.
      Parameters:
      messageId - identifier of an audit log message
      Returns:
      activity or null
    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class Enum<ObservedActivity>
      Returns:
      string of property names and values for this enum