Class AdminTNCCallbackHandler
java.lang.Object
com.nt.udc.testnodechain.callbacks.TNCEventSender
com.nt.udc.testnodechain.callbacks.TNCCallbackHandler
com.nt.udc.testnodechain.adminserver.AdminTNCCallbackHandler
- All Implemented Interfaces:
TNCEventReceiverIfc
,TNCEventSenderIfc
,Serializable
,Remote
Title: Admin TNC Callback Handler
Description: This class is responsible for stopping socket-based CC nodes on the admin server
when the onNodeStatisticsChange callback is triggered.
- See Also:
-
Field Summary
Fields inherited from class com.nt.udc.testnodechain.callbacks.TNCEventSender
logger, receiverManager
-
Constructor Summary
ConstructorsConstructorDescriptionAdminTNCCallbackHandler
(AdminServerImpl asImpl, Logger logger, boolean useBuffer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onNodeStatisticsChange
(List<NodeUpdateEvent> nodeData) The onNodeStatisticsChange method is called when there is a change in node statistics.Methods inherited from class com.nt.udc.testnodechain.callbacks.TNCCallbackHandler
addEventToBuffer, addEventToBuffer, bufferingEnabled, freeUpTestResources, hasHistoricEvents, newTestSubscriberAdded, onBulkEvents, onFreeUpTestResources, onNodeOutputFileAvailable, onNodeStatusChange, onRemoveReceiver, onRemoveTestListener, onTestAboutToTimeout, onTestStatusChange, segregateEvents
Methods inherited from class com.nt.udc.testnodechain.callbacks.TNCEventSender
addReceiver, addReceiver, bulkEvents, clear, isReceiverValid, logDebug, logDebug, logInfo, logInfo, nodeOutputFileAvailable, nodeStatisticsChange, nodeStatusChange, removeReceiver, removeTestListener, subscribeForTest, testAboutToTimeout, testStatusChange
-
Constructor Details
-
AdminTNCCallbackHandler
-
-
Method Details
-
onNodeStatisticsChange
Description copied from class:TNCCallbackHandler
The onNodeStatisticsChange method is called when there is a change in node statistics. It receives a list of NodeUpdateEvent objects containing the updated node data.- Specified by:
onNodeStatisticsChange
in interfaceTNCEventReceiverIfc
- Overrides:
onNodeStatisticsChange
in classTNCCallbackHandler
- Parameters:
nodeData
-- Throws:
RemoteException
- This callback function is invoked when a change in node statistics is detected by the thread.
-