public class GridPortProcessor extends GridProcessorAdapter
GridComponent.DiscoveryDataExchangeType
ctx, 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(boolean activeOnStart)
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, toString, validateNode
public GridPortProcessor(GridKernalContext ctx)
ctx
- Kernal context.public void start(boolean activeOnStart) throws IgniteCheckedException
start
in interface GridComponent
start
in class GridProcessorAdapter
IgniteCheckedException
- Throws in case of any errors.public void stop(boolean cancel) throws IgniteCheckedException
stop
in interface GridComponent
stop
in class GridProcessorAdapter
cancel
- 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 GridComponent
printMemoryStats
in class GridProcessorAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017