Class ComponentRuntimeState

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ComponentRuntimeState>

    public class ComponentRuntimeState
    extends java.lang.Object
    implements java.lang.Comparable<ComponentRuntimeState>, java.io.Serializable
    Holds the dynamic component state for a particular component. Thread-safe.
    See Also:
    Serialized Form
    • Constructor Detail

      • ComponentRuntimeState

        public ComponentRuntimeState​(java.lang.String componentName,
                                     int maxInstances)
        Constructs a ComponentRuntimeState with the given name and maximum number of instances. The maximum number of instances is critical in computing the correct time spent in various states.
        Parameters:
        componentName -
        maxInstances -
    • Method Detail

      • returnCounter

        public void returnCounter()
      • incrementMessageCount

        public void incrementMessageCount()
        Increments the number of messages that have been processed by this component.
      • incrementDocumentCount

        public void incrementDocumentCount()
        Increments the number of documents that have been processed by this component.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getComponentName

        public java.lang.String getComponentName()
      • getMessagesProcessed

        public long getMessagesProcessed()
      • getDocumentsProcessed

        public long getDocumentsProcessed()
      • getProcessingTime

        public long getProcessingTime()
      • getSendingTime

        public long getSendingTime()
      • getInputWaitTime

        public long getInputWaitTime()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object