public class GridClockServer extends Object
| Constructor and Description |
|---|
GridClockServer() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterStart()
After start callback.
|
void |
beforeStop()
Before stop callback.
|
InetAddress |
host() |
int |
port() |
void |
sendPacket(GridClockMessage msg,
InetAddress addr,
int port)
Sends packet to remote node.
|
void |
start(GridKernalContext ctx)
Starts server.
|
void |
stop()
Stops server.
|
public void start(GridKernalContext ctx) throws GridException
ctx - Kernal context.GridException - If server could not be started.public void afterStart()
public void stop()
public void beforeStop()
public void sendPacket(GridClockMessage msg, InetAddress addr, int port) throws GridException
msg - Message to send.addr - Address.port - Port.GridException - If send failed.public InetAddress host()
public int port()
Copyright © 2014. All rights reserved.