Class NodeStartedEvent

java.lang.Object
com.nt.udc.testnodechain.callbacks.events.NodeStartedEvent
All Implemented Interfaces:
BaseEventIfc, NodeStatusUpdateEventIfc, Serializable

public class NodeStartedEvent extends Object implements NodeStatusUpdateEventIfc
See Also:
  • Constructor Details

    • NodeStartedEvent

      public NodeStartedEvent(String testID, String nodeID)
  • Method Details

    • getEventHash

      public String getEventHash()
      Description copied from interface: BaseEventIfc
      Retrieves the hash value of the event. If two events have the same hash, and if the event broadcaster uses a queue, the old event in the queue would be replaced with the new one.
      Specified by:
      getEventHash in interface BaseEventIfc
      Returns:
      The hash value of the event.
    • getEventType

      public BaseEventIfc.EventType getEventType()
      Description copied from interface: BaseEventIfc
      Retrieves the type of the event.
      Specified by:
      getEventType in interface BaseEventIfc
      Returns:
      The EventType of the event.
    • getTestID

      public String getTestID()
      Description copied from interface: BaseEventIfc
      Retrieves the test ID the event is associated to
      Specified by:
      getTestID in interface BaseEventIfc
      Returns:
      The test ID the event is associated to
    • getNodeID

      public String getNodeID()
      Description copied from interface: NodeStatusUpdateEventIfc
      Retrieves the node ID associated with the event.
      Specified by:
      getNodeID in interface NodeStatusUpdateEventIfc
      Returns:
      The nodeID that got updated.
    • getEventID

      public String getEventID()
      Description copied from interface: BaseEventIfc
      Retrieves the unique identifier of the event.
      Specified by:
      getEventID in interface BaseEventIfc
      Returns:
      The unique identifier of the event.
    • getEventTime

      public String getEventTime()
      Description copied from interface: BaseEventIfc
      Retrieves the timestamp of when the event occurred.
      Specified by:
      getEventTime in interface BaseEventIfc
      Returns:
      The timestamp of when the event occurred.
    • setEventTime

      public void setEventTime(String eventTime)
    • getNodeStatus

      public String getNodeStatus()
      Description copied from interface: NodeStatusUpdateEventIfc
      Retrieves the status of the node associated with the event.
      Specified by:
      getNodeStatus in interface NodeStatusUpdateEventIfc
      Returns:
      The status of the node.
    • toString

      public String toString()
      Overrides:
      toString in class Object