public class GridClockSyncProcessor extends GridProcessorAdapter
GridComponent.DiscoveryDataExchangeTypectx, log| Constructor and Description |
|---|
GridClockSyncProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
long |
adjustedTime(long topVer)
Gets time adjusted with time coordinator on given topology version.
|
void |
onKernalStart()
Callback that notifies that kernal has successfully started,
including all managers and processors.
|
void |
onKernalStop(boolean cancel)
Callback to notify that kernal is about to stop.
|
void |
onMessageReceived(GridClockMessage msg,
InetAddress addr,
int port)
Callback from server for message receiving.
|
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
NavigableMap<GridClockDeltaVersion,GridClockDeltaSnapshot> |
timeSyncHistory() |
assertParameter, collectDiscoveryData, discoveryDataType, onDisconnected, onDiscoveryDataReceived, onReconnected, printMemoryStats, toString, validateNodepublic GridClockSyncProcessor(GridKernalContext ctx)
ctx - Kernal context.public void start()
throws IgniteCheckedException
start in interface GridComponentstart in class GridProcessorAdapterIgniteCheckedException - Throws in case of any errors.public void onKernalStart()
throws IgniteCheckedException
onKernalStart in interface GridComponentonKernalStart in class GridProcessorAdapterIgniteCheckedException - Thrown in case of any errors.public void onKernalStop(boolean cancel)
onKernalStop in interface GridComponentonKernalStop in class GridProcessorAdaptercancel - Flag indicating whether jobs should be canceled.public void stop(boolean cancel)
throws IgniteCheckedException
stop in interface GridComponentstop in class GridProcessorAdaptercancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.public NavigableMap<GridClockDeltaVersion,GridClockDeltaSnapshot> timeSyncHistory()
public void onMessageReceived(GridClockMessage msg, InetAddress addr, int port)
msg - Received message.addr - Remote node address.port - Remote node port.public long adjustedTime(long topVer)
topVer - Topology version.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016