Interface GridClientBeforeNodeStart
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
GridClientImpl
public interface GridClientBeforeNodeStart extends AutoCloseable
Ignite Java client API for communicate with node before it start. If node has already started, then there will be errors. For get an instance, need to useGridClientFactory.startBeforeNodeStart(org.apache.ignite.internal.client.GridClientConfiguration).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GridClientNodeStateBeforeStartbeforeStartState()Getting a client projection of node state before its start.GridClientExceptioncheckLastError()Checking for an error.voidclose()Closes client instance.booleanconnected()Indicates whether client is connected to remote Grid.UUIDid()Gets a unique client identifier.
-
-
-
Method Detail
-
id
UUID id()
Gets a unique client identifier. This identifier is generated by factory on client creation and used in identification and authentication procedure on server node.- Returns:
- Generated client id.
-
connected
boolean connected()
Indicates whether client is connected to remote Grid. In other words it allow to determine if client is able to communicate with Grid right now. It can be used only fo diagnostic and monitoring purposes.- Returns:
- Whether client is connected to remote Grid.
-
close
void close()
Closes client instance. This method is identical toGridClientFactory.stop(clientId).- Specified by:
closein interfaceAutoCloseable
-
checkLastError
GridClientException checkLastError()
Checking for an error.- Returns:
Exceptionif client was not connected.
-
beforeStartState
GridClientNodeStateBeforeStart beforeStartState()
Getting a client projection of node state before its start.- Returns:
- Projection of node state before its start.
- See Also:
GridClientNodeStateBeforeStart
-
-