public class GridPortProcessor extends GridProcessorAdapter
ctx, log| Constructor and Description |
|---|
GridPortProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPortListener(GridPortListener lsnr)
Add listener.
|
void |
deregisterPort(int port,
GridPortProtocol proto,
Class cls)
Deregisters port used by passed class.
|
void |
deregisterPorts(Class cls)
Deregisters all ports used by passed class.
|
void |
printMemoryStats()
Prints memory statistics (sizes of internal structures, etc.).
|
Collection<GridPortRecord> |
records()
Returns unmodifiable collections of records.
|
void |
registerPort(int port,
GridPortProtocol proto,
Class cls)
Registers port using by passed class.
|
void |
removePortListener(GridPortListener lsnr)
Remove listener.
|
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
addAttributes, assertParameter, collectDiscoveryData, onDiscoveryDataReceived, onKernalStart, onKernalStop, toString, validateNodepublic GridPortProcessor(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 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 void registerPort(int port,
GridPortProtocol proto,
Class cls)
port - Port.proto - Protocol.cls - Class.public void deregisterPorts(Class cls)
cls - Class.public void deregisterPort(int port,
GridPortProtocol proto,
Class cls)
port - Port.proto - Protocol.cls - Class.public Collection<GridPortRecord> records()
public void addPortListener(GridPortListener lsnr)
lsnr - Listener.public void removePortListener(GridPortListener lsnr)
lsnr - Listener.public void printMemoryStats()
printMemoryStats in interface GridComponentprintMemoryStats in class GridProcessorAdapterCopyright © 2014. All rights reserved.