public final class LocalServiceClientUtils
extends java.lang.Object
LocalServiceClient.| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.keyple.distributed.AsyncNodeClient |
getAsyncNode()
Gets the
AsyncNodeClient node associated to the local service having the default name. |
static org.eclipse.keyple.distributed.AsyncNodeClient |
getAsyncNode(java.lang.String serviceName)
Gets the
AsyncNodeClient node associated to the local service having the provided name. |
static LocalServiceClient |
getLocalService()
Gets the local service having the default name.
|
static LocalServiceClient |
getLocalService(java.lang.String serviceName)
Gets the local service having the provided name.
|
public static LocalServiceClient getLocalService()
java.lang.IllegalStateException - If the service is not initialized.public static LocalServiceClient getLocalService(java.lang.String serviceName)
serviceName - The identifier of the local service.java.lang.IllegalArgumentException - If the service name is null.java.lang.IllegalStateException - If the service is not initialized.public static org.eclipse.keyple.distributed.AsyncNodeClient getAsyncNode()
AsyncNodeClient node associated to the local service having the default name.java.lang.IllegalStateException - If the service is not initialized or is not configured with a
AsyncNodeClient node.public static org.eclipse.keyple.distributed.AsyncNodeClient getAsyncNode(java.lang.String serviceName)
AsyncNodeClient node associated to the local service having the provided name.serviceName - The identifier of the local service.java.lang.IllegalArgumentException - If the service name is null.java.lang.IllegalStateException - If the service is not initialized or is not configured with a
AsyncNodeClient node.