Class SimpleInstance
java.lang.Object
dev.getelements.elements.rt.remote.SimpleInstance
- All Implemented Interfaces:
Instance,AutoCloseable
- Direct Known Subclasses:
SimpleWorkerInstance
-
Field Summary
FieldsFields inherited from interface dev.getelements.elements.rt.remote.Instance
EXECUTOR_SERVICE, SCHEDULED_EXECUTOR_SERVICE, THREAD_GROUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Attempts to stop the instance.Gets this instancesInstanceIdprotected voidprotected voidprotected voidprotected voidvoidForces a refresh of the underlying connections as necessary.voidsetAsyncConnectionService(AsyncConnectionService<?, ?> asyncConnectionService) voidsetInstanceConnectionService(InstanceConnectionService instanceConnectionService) voidsetInstanceDiscoveryService(InstanceDiscoveryService instanceDiscoveryService) voidsetInstanceId(InstanceId instanceId) voidsetRemoteInvokerRegistry(RemoteInvokerRegistry remoteInvokerRegistry) voidstart()Attempts to start, throwing an instance ofMultiExceptionany failures happen during the startup process.
-
Field Details
-
instanceId
-
-
Constructor Details
-
SimpleInstance
public SimpleInstance()
-
-
Method Details
-
start
public void start()Description copied from interface:InstanceAttempts to start, throwing an instance ofMultiExceptionany failures happen during the startup process. A subsequent call toInstance.close()should follow to ensure resources are cleaned up. -
preStart
-
postStart
-
close
public void close()Description copied from interface:InstanceAttempts to stop the instance.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceInstance
-
preClose
-
postClose
-
refreshConnections
public void refreshConnections()Description copied from interface:InstanceForces a refresh of the underlying connections as necessary.- Specified by:
refreshConnectionsin interfaceInstance
-
getInstanceId
Description copied from interface:InstanceGets this instancesInstanceId- Specified by:
getInstanceIdin interfaceInstance- Returns:
- the
InstanceId
-
setInstanceId
-
getRemoteInvokerRegistry
-
setRemoteInvokerRegistry
-
getInstanceDiscoveryService
-
setInstanceDiscoveryService
-
getInstanceConnectionService
-
setInstanceConnectionService
@Inject public void setInstanceConnectionService(InstanceConnectionService instanceConnectionService) -
getAsyncConnectionService
-
setAsyncConnectionService
-