public class GridClockSyncProcessor extends GridProcessorAdapter
ctx, log| Constructor and Description |
|---|
GridClockSyncProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributes(Map<String,Object> attrs)
Adds attributes from this component to map of all node attributes.
|
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, onDiscoveryDataReceived, printMemoryStats, toString, validateNodepublic GridClockSyncProcessor(GridKernalContext ctx)
ctx - Kernal context.public void start()
throws GridException
start in interface GridComponentstart in class GridProcessorAdapterGridException - Throws in case of any errors.public void addAttributes(Map<String,Object> attrs) throws GridException
addAttributes in interface GridProcessoraddAttributes in class GridProcessorAdapterattrs - Map of all attributes.GridException - If failed.public void onKernalStart()
throws GridException
onKernalStart in interface GridComponentonKernalStart in class GridProcessorAdapterGridException - 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 GridException
stop in interface GridComponentstop in class GridProcessorAdaptercancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.GridException - 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.Copyright © 2014. All rights reserved.