Interface TNCEventSenderIfc

All Superinterfaces:
Serializable
All Known Implementing Classes:
AdminTNCCallbackHandler, TNCCallbackHandler, TNCEventSender

public interface TNCEventSenderIfc extends Serializable
The TNCEventSenderIfc interface extends Serializable and defines methods for sending various types of events. Implementations of this interface can notify receivers about events in TNC ( Test Node Chain )
  • Method Details

    • nodeStatisticsChange

      void nodeStatisticsChange(List<NodeUpdateEvent> nodeData)
      Sends node statistics changes to the associated receivers.
      Parameters:
      nodeData - A List of NodeUpdateEvent objects representing the updated node statistics.
    • bulkEvents

      void bulkEvents(String recieverID, List<BaseEventIfc> events)
      Sends bulk events to the specified receiver identified by recieverID.
      Parameters:
      recieverID - The unique identifier of the receiver for which the bulk events are sent.
      events - A List of BaseEventIfc objects representing the bulk events to be sent.
    • nodeStatusChange

      void nodeStatusChange(NodeStatusUpdateEventIfc nodeStatus)
      Sends node status changes to the associated receivers.
      Parameters:
      nodeStatus - The NodeStatusUpdateEventIfc object representing the updated node status.
    • testStatusChange

      void testStatusChange(TestStatusChangeEventIfc testStatus)
      Sends test status changes to the associated receivers.
      Parameters:
      testStatus - The TestStatusChangeEventIfc object representing the updated test status.
    • testAboutToTimeout

      void testAboutToTimeout(TestTimeoutReminderEvent event)
      Notifies that a test is about to timeout to the associated receivers.
      Parameters:
      event - The TestTimeoutReminderEvent containing information about the test about to timeout.
    • nodeOutputFileAvailable

      void nodeOutputFileAvailable(NodeOutputFileAvailableEvent nodeOutputFileAvailable)
      Sends an event when there are output files available for a node to the associated receivers.
      Parameters:
      nodeOutputFileAvailable - The NodeOutputFileAvailableEvent object representing the output file data
    • addReceiver

      void addReceiver(String receiverID, TNCEventReceiverIfc receiver)
      Adds a receiver and subscribes it for events across all tests
      Parameters:
      receiverID - The unique identifier for the receiver.
      receiver - The TNCEventReceiverIfc implementation to be added.
    • addReceiver

      void addReceiver(String receiverID, TNCEventReceiverIfc receiver, boolean subForAllTests)
      Adds a receiver for event handling with an option to subscribe for events across all tests.
      Parameters:
      receiverID - The unique identifier for the receiver.
      receiver - The TNCEventReceiverIfc implementation to be added.
      subForAllTests - A boolean flag indicating whether to subscribe for events across all tests.
    • subscribeForTest

      void subscribeForTest(String recieverID, String testID)
      Subscribes a receiver to receive events for a specific test.
      Parameters:
      recieverID - The unique identifier of the receiver to be subscribed.
      testID - The unique identifier of the test for which the receiver is subscribing.
    • freeUpTestResources

      void freeUpTestResources(String testID, boolean removeTestListeners)
      Frees up resources associated with a test identified by the given test ID.
      Parameters:
      testID - The unique identifier of the test whose resources should be freed up.
      removeTestListeners - A boolean flag indicating whether to remove test listeners associated with the test. If set to true, the test listeners will be removed; otherwise, they will be retained.
    • hasHistoricEvents

      boolean hasHistoricEvents(String testID)
      Checks whether there are historic events associated with the specified test ID.
      Parameters:
      testID - The unique identifier of the test to check for historic events.
      Returns:
      true if there are historic events for the given test ID; false otherwise.