public class GridPortProcessor extends GridProcessorAdapter
GridComponent.DiscoveryDataExchangeTypectx, diagnosticLog, log| Constructor and Description |
|---|
GridPortProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPortListener(GridPortListener lsnr)
Add listener.
|
void |
deregisterPort(int port,
IgnitePortProtocol 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,
IgnitePortProtocol 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.
|
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, toString, validateNodepublic GridPortProcessor(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 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 void registerPort(int port,
IgnitePortProtocol proto,
Class cls)
port - Port.proto - Protocol.cls - Class.public void deregisterPorts(Class cls)
cls - Class.public void deregisterPort(int port,
IgnitePortProtocol 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 GridProcessorAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017