Class GridTcpRestProtocol
- java.lang.Object
-
- org.apache.ignite.internal.processors.rest.protocols.GridRestProtocolAdapter
-
- org.apache.ignite.internal.processors.rest.protocols.tcp.GridTcpRestProtocol
-
- All Implemented Interfaces:
GridRestProtocol
public class GridTcpRestProtocol extends GridRestProtocolAdapter
TCP binary protocol implementation.
-
-
Field Summary
Fields Modifier and Type Field Description static StringREST_CONNECTOR_METRIC_REGISTRY_NAMEThe name of the metric registry associated with the REST TCP connector.
-
Constructor Summary
Constructors Constructor Description GridTcpRestProtocol(GridKernalContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetAddressPropertyName()Return node attribute name to store used address.protected StringgetHostNamePropertyName()Return node attribute name to store used host name.protected StringgetPortPropertyName()Return node attribute name to store used port number.Stringname()voidonProcessorStart()Processor start callback.voidstart(GridRestProtocolHandler hnd)Starts protocol.voidstop()Stops protocol.-
Methods inherited from class org.apache.ignite.internal.processors.rest.protocols.GridRestProtocolAdapter
assertParameter, authenticate, config, getProperties, onKernalStart, startInfo, stopInfo
-
-
-
-
Field Detail
-
REST_CONNECTOR_METRIC_REGISTRY_NAME
public static final String REST_CONNECTOR_METRIC_REGISTRY_NAME
The name of the metric registry associated with the REST TCP connector.
-
-
Constructor Detail
-
GridTcpRestProtocol
public GridTcpRestProtocol(GridKernalContext ctx)
- Parameters:
ctx- Context.
-
-
Method Detail
-
name
public String name()
- Returns:
- Protocol name.
-
start
public void start(GridRestProtocolHandler hnd) throws IgniteCheckedException
Starts protocol.- Parameters:
hnd- Command handler.- Throws:
IgniteCheckedException- If failed.
-
onProcessorStart
public void onProcessorStart()
Processor start callback.- Specified by:
onProcessorStartin interfaceGridRestProtocol- Overrides:
onProcessorStartin classGridRestProtocolAdapter
-
stop
public void stop()
Stops protocol.
-
getAddressPropertyName
protected String getAddressPropertyName()
Return node attribute name to store used address.- Specified by:
getAddressPropertyNamein classGridRestProtocolAdapter- Returns:
- Node attribute name.
-
getHostNamePropertyName
protected String getHostNamePropertyName()
Return node attribute name to store used host name.- Specified by:
getHostNamePropertyNamein classGridRestProtocolAdapter- Returns:
- Node attribute name.
-
getPortPropertyName
protected String getPortPropertyName()
Return node attribute name to store used port number.- Specified by:
getPortPropertyNamein classGridRestProtocolAdapter- Returns:
- Node attribute name.
-
-