- All Superinterfaces:
ObjectPrx
Provides administrative access to an IceGrid deployment.
-
Field Summary
Fields inherited from interface com.zeroc.Ice.ObjectPrx
ice_staticId, noExplicitContext
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
addApplication
(ApplicationDescriptor descriptor) Adds an application to IceGrid.default void
addApplication
(ApplicationDescriptor descriptor, Map<String, String> context) Adds an application to IceGrid.default CompletableFuture<Void>
addApplicationAsync
(ApplicationDescriptor descriptor) Adds an application to IceGrid.default CompletableFuture<Void>
addApplicationAsync
(ApplicationDescriptor descriptor, Map<String, String> context) Adds an application to IceGrid.default void
Adds an object to the object registry.default void
Adds an object to the object registry.default CompletableFuture<Void>
addObjectAsync
(ObjectPrx obj) Adds an object to the object registry.default CompletableFuture<Void>
addObjectAsync
(ObjectPrx obj, Map<String, String> context) Adds an object to the object registry.default void
addObjectWithType
(ObjectPrx obj, String type) Adds an object to the object registry and explicitly specifies its type.default void
Adds an object to the object registry and explicitly specifies its type.default CompletableFuture<Void>
addObjectWithTypeAsync
(ObjectPrx obj, String type) Adds an object to the object registry and explicitly specifies its type.default CompletableFuture<Void>
Adds an object to the object registry and explicitly specifies its type.static AdminPrx
checkedCast
(ObjectPrx obj) Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.static AdminPrx
checkedCast
(ObjectPrx obj, String facet) Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.static AdminPrx
Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.static AdminPrx
checkedCast
(ObjectPrx obj, Map<String, String> context) Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.static AdminPrx
createProxy
(Communicator communicator, String proxyString) Creates a new proxy that implementsAdminPrx
.default void
enableServer
(String id, boolean enabled) Enables or disables a server.default void
enableServer
(String id, boolean enabled, Map<String, String> context) Enables or disables a server.default CompletableFuture<Void>
enableServerAsync
(String id, boolean enabled) Enables or disables a server.default CompletableFuture<Void>
enableServerAsync
(String id, boolean enabled, Map<String, String> context) Enables or disables a server.default AdapterInfo[]
getAdapterInfo
(String id) Gets adapter information for the replica group or adapter with the given ID.default AdapterInfo[]
getAdapterInfo
(String id, Map<String, String> context) Gets adapter information for the replica group or adapter with the given ID.default CompletableFuture<AdapterInfo[]>
Gets adapter information for the replica group or adapter with the given ID.default CompletableFuture<AdapterInfo[]>
getAdapterInfoAsync
(String id, Map<String, String> context) Gets adapter information for the replica group or adapter with the given ID.default String[]
Gets the IDs of all adapters registered with IceGrid.default String[]
getAllAdapterIds
(Map<String, String> context) Gets the IDs of all adapters registered with IceGrid.default CompletableFuture<String[]>
Gets the IDs of all adapters registered with IceGrid.default CompletableFuture<String[]>
getAllAdapterIdsAsync
(Map<String, String> context) Gets the IDs of all adapters registered with IceGrid.default String[]
Gets all the IceGrid applications currently registered.default String[]
getAllApplicationNames
(Map<String, String> context) Gets all the IceGrid applications currently registered.default CompletableFuture<String[]>
Gets all the IceGrid applications currently registered.default CompletableFuture<String[]>
getAllApplicationNamesAsync
(Map<String, String> context) Gets all the IceGrid applications currently registered.default String[]
Gets the names of all IceGrid nodes currently registered.default String[]
getAllNodeNames
(Map<String, String> context) Gets the names of all IceGrid nodes currently registered.default CompletableFuture<String[]>
Gets the names of all IceGrid nodes currently registered.default CompletableFuture<String[]>
getAllNodeNamesAsync
(Map<String, String> context) Gets the names of all IceGrid nodes currently registered.default ObjectInfo[]
getAllObjectInfos
(String expr) Gets the object info of all the registered objects whose stringified identities match the given expression.default ObjectInfo[]
getAllObjectInfos
(String expr, Map<String, String> context) Gets the object info of all the registered objects whose stringified identities match the given expression.default CompletableFuture<ObjectInfo[]>
getAllObjectInfosAsync
(String expr) Gets the object info of all the registered objects whose stringified identities match the given expression.default CompletableFuture<ObjectInfo[]>
getAllObjectInfosAsync
(String expr, Map<String, String> context) Gets the object info of all the registered objects whose stringified identities match the given expression.default String[]
Gets the names of all the IceGrid registries currently registered.default String[]
getAllRegistryNames
(Map<String, String> context) Gets the names of all the IceGrid registries currently registered.default CompletableFuture<String[]>
Gets the names of all the IceGrid registries currently registered.default CompletableFuture<String[]>
getAllRegistryNamesAsync
(Map<String, String> context) Gets the names of all the IceGrid registries currently registered.default String[]
Gets the IDs of all the servers registered with IceGrid.default String[]
getAllServerIds
(Map<String, String> context) Gets the IDs of all the servers registered with IceGrid.default CompletableFuture<String[]>
Gets the IDs of all the servers registered with IceGrid.default CompletableFuture<String[]>
getAllServerIdsAsync
(Map<String, String> context) Gets the IDs of all the servers registered with IceGrid.default ApplicationInfo
getApplicationInfo
(String name) Gets an application descriptor.default ApplicationInfo
getApplicationInfo
(String name, Map<String, String> context) Gets an application descriptor.default CompletableFuture<ApplicationInfo>
Gets an application descriptor.default CompletableFuture<ApplicationInfo>
getApplicationInfoAsync
(String name, Map<String, String> context) Gets an application descriptor.default ApplicationDescriptor
Gets the default application descriptor.default ApplicationDescriptor
getDefaultApplicationDescriptor
(Map<String, String> context) Gets the default application descriptor.default CompletableFuture<ApplicationDescriptor>
Gets the default application descriptor.default CompletableFuture<ApplicationDescriptor>
getDefaultApplicationDescriptorAsync
(Map<String, String> context) Gets the default application descriptor.default ObjectPrx
getNodeAdmin
(String name) Gets a proxy to the admin object of an IceGrid node.default ObjectPrx
getNodeAdmin
(String name, Map<String, String> context) Gets a proxy to the admin object of an IceGrid node.default CompletableFuture<ObjectPrx>
getNodeAdminAsync
(String name) Gets a proxy to the admin object of an IceGrid node.default CompletableFuture<ObjectPrx>
getNodeAdminAsync
(String name, Map<String, String> context) Gets a proxy to the admin object of an IceGrid node.default String
getNodeHostname
(String name) Get the hostname of a node.default String
getNodeHostname
(String name, Map<String, String> context) Get the hostname of a node.default CompletableFuture<String>
getNodeHostnameAsync
(String name) Get the hostname of a node.default CompletableFuture<String>
getNodeHostnameAsync
(String name, Map<String, String> context) Get the hostname of a node.default NodeInfo
getNodeInfo
(String name) Gets the node information of a node.default NodeInfo
getNodeInfo
(String name, Map<String, String> context) Gets the node information of a node.default CompletableFuture<NodeInfo>
getNodeInfoAsync
(String name) Gets the node information of a node.default CompletableFuture<NodeInfo>
getNodeInfoAsync
(String name, Map<String, String> context) Gets the node information of a node.default LoadInfo
getNodeLoad
(String name) Gets the load averages of a node.default LoadInfo
getNodeLoad
(String name, Map<String, String> context) Gets the load averages of a node.default CompletableFuture<LoadInfo>
getNodeLoadAsync
(String name) Gets the load averages of a node.default CompletableFuture<LoadInfo>
getNodeLoadAsync
(String name, Map<String, String> context) Gets the load averages of a node.default int
Gets the number of physical processor sockets in the computer where an IceGrid node is deployed.default int
getNodeProcessorSocketCount
(String name, Map<String, String> context) Gets the number of physical processor sockets in the computer where an IceGrid node is deployed.default CompletableFuture<Integer>
Gets the number of physical processor sockets in the computer where an IceGrid node is deployed.default CompletableFuture<Integer>
getNodeProcessorSocketCountAsync
(String name, Map<String, String> context) Gets the number of physical processor sockets in the computer where an IceGrid node is deployed.default ObjectInfo
Gets the object info for the object.default ObjectInfo
getObjectInfo
(Identity id, Map<String, String> context) Gets the object info for the object.default CompletableFuture<ObjectInfo>
Gets the object info for the object.default CompletableFuture<ObjectInfo>
getObjectInfoAsync
(Identity id, Map<String, String> context) Gets the object info for the object.default ObjectInfo[]
getObjectInfosByType
(String type) Gets the object info of all the registered objects with a given type.default ObjectInfo[]
getObjectInfosByType
(String type, Map<String, String> context) Gets the object info of all the registered objects with a given type.default CompletableFuture<ObjectInfo[]>
Gets the object info of all the registered objects with a given type.default CompletableFuture<ObjectInfo[]>
getObjectInfosByTypeAsync
(String type, Map<String, String> context) Gets the object info of all the registered objects with a given type.default ObjectPrx
getRegistryAdmin
(String name) Gets a proxy to the admin object of an IceGrid registry.default ObjectPrx
getRegistryAdmin
(String name, Map<String, String> context) Gets a proxy to the admin object of an IceGrid registry.default CompletableFuture<ObjectPrx>
getRegistryAdminAsync
(String name) Gets a proxy to the admin object of an IceGrid registry.default CompletableFuture<ObjectPrx>
getRegistryAdminAsync
(String name, Map<String, String> context) Gets a proxy to the admin object of an IceGrid registry.default RegistryInfo
getRegistryInfo
(String name) Gets the registry information of an IceGrid registry.default RegistryInfo
getRegistryInfo
(String name, Map<String, String> context) Gets the registry information of an IceGrid registry.default CompletableFuture<RegistryInfo>
getRegistryInfoAsync
(String name) Gets the registry information of an IceGrid registry.default CompletableFuture<RegistryInfo>
getRegistryInfoAsync
(String name, Map<String, String> context) Gets the registry information of an IceGrid registry.default ObjectPrx
getServerAdmin
(String id) Gets a proxy to the admin object of a server.default ObjectPrx
getServerAdmin
(String id, Map<String, String> context) Gets a proxy to the admin object of a server.default CompletableFuture<ObjectPrx>
Gets a proxy to the admin object of a server.default CompletableFuture<ObjectPrx>
getServerAdminAsync
(String id, Map<String, String> context) Gets a proxy to the admin object of a server.default String
Gets the category for server admin objects.default String
getServerAdminCategory
(Map<String, String> context) Gets the category for server admin objects.default CompletableFuture<String>
Gets the category for server admin objects.default CompletableFuture<String>
getServerAdminCategoryAsync
(Map<String, String> context) Gets the category for server admin objects.default ServerInfo
getServerInfo
(String id) Gets information about a server.default ServerInfo
getServerInfo
(String id, Map<String, String> context) Gets information about a server.default CompletableFuture<ServerInfo>
Gets information about a server.default CompletableFuture<ServerInfo>
getServerInfoAsync
(String id, Map<String, String> context) Gets information about a server.default int
getServerPid
(String id) Gets the system process ID of a server.default int
getServerPid
(String id, Map<String, String> context) Gets the system process ID of a server.default CompletableFuture<Integer>
Gets the system process ID of a server.default CompletableFuture<Integer>
getServerPidAsync
(String id, Map<String, String> context) Gets the system process ID of a server.default ServerState
getServerState
(String id) Gets the state of a server.default ServerState
getServerState
(String id, Map<String, String> context) Gets the state of a server.default CompletableFuture<ServerState>
Gets the state of a server.default CompletableFuture<ServerState>
getServerStateAsync
(String id, Map<String, String> context) Gets the state of a server.ice_adapterId
(String newAdapterId) Creates a new proxy that is identical to this proxy, except for the adapter ID.Creates a new proxy that is identical to this proxy, but uses batch datagram invocations.Creates a new proxy that is identical to this proxy, but uses batch oneway invocations.ice_collocationOptimized
(boolean b) Returns a proxy that is identical to this proxy, except for collocation optimization.ice_compress
(boolean co) Returns a proxy that is identical to this proxy, except for its compression setting which overrides the compression setting from the proxy endpoints.ice_connectionCached
(boolean newCache) Returns a proxy that is identical to this proxy, except for connection caching.ice_connectionId
(String connectionId) Returns a proxy that is identical to this proxy, except for its connection ID.ice_context
(Map<String, String> newContext) Creates a new proxy that is identical to this proxy, except for the per-proxy context.Creates a new proxy that is identical to this proxy, but uses datagram invocations.Returns a proxy that is identical to this proxy, except for the encoding used to marshal parameters.ice_endpoints
(Endpoint[] newEndpoints) Creates a new proxy that is identical to this proxy, except for the endpoints.Returns a proxy that is identical to this proxy, except for the endpoint selection policy.ice_fixed
(Connection connection) Creates a new proxy that is identical to this proxy, except it's a fixed proxy bound to the given connection.ice_invocationTimeout
(int newTimeout) Returns a proxy that is identical to this proxy, except for the invocation timeout.ice_invocationTimeout
(Duration newTimeout) Returns a proxy that is identical to this proxy, except for the invocation timeout.ice_locator
(LocatorPrx locator) Returns a proxy that is identical to this proxy, except for the locator.ice_locatorCacheTimeout
(int newTimeout) Creates a new proxy that is identical to this proxy, except for the locator cache timeout.Creates a new proxy that is identical to this proxy, but uses oneway invocations.ice_router
(RouterPrx router) Returns a proxy that is identical to this proxy, except for the router.static String
Gets the type ID of the associated Slice interface.Creates a new proxy that is identical to this proxy, but uses twoway invocations.default void
instantiateServer
(String application, String node, ServerInstanceDescriptor desc) Instantiates a server template.default void
instantiateServer
(String application, String node, ServerInstanceDescriptor desc, Map<String, String> context) Instantiates a server template.default CompletableFuture<Void>
instantiateServerAsync
(String application, String node, ServerInstanceDescriptor desc) Instantiates a server template.default CompletableFuture<Void>
instantiateServerAsync
(String application, String node, ServerInstanceDescriptor desc, Map<String, String> context) Instantiates a server template.default boolean
Checks if the server is enabled or disabled.default boolean
isServerEnabled
(String id, Map<String, String> context) Checks if the server is enabled or disabled.default CompletableFuture<Boolean>
Checks if the server is enabled or disabled.default CompletableFuture<Boolean>
isServerEnabledAsync
(String id, Map<String, String> context) Checks if the server is enabled or disabled.default boolean
Pings an IceGrid node to see if it is active.default boolean
Pings an IceGrid node to see if it is active.default CompletableFuture<Boolean>
pingNodeAsync
(String name) Pings an IceGrid node to see if it is active.default CompletableFuture<Boolean>
pingNodeAsync
(String name, Map<String, String> context) Pings an IceGrid node to see if it is active.default boolean
pingRegistry
(String name) Pings an IceGrid registry to see if it is active.default boolean
pingRegistry
(String name, Map<String, String> context) Pings an IceGrid registry to see if it is active.default CompletableFuture<Boolean>
pingRegistryAsync
(String name) Pings an IceGrid registry to see if it is active.default CompletableFuture<Boolean>
pingRegistryAsync
(String name, Map<String, String> context) Pings an IceGrid registry to see if it is active.default void
removeAdapter
(String id) Removes the adapter with the given ID.default void
removeAdapter
(String id, Map<String, String> context) Removes the adapter with the given ID.default CompletableFuture<Void>
Removes the adapter with the given ID.default CompletableFuture<Void>
removeAdapterAsync
(String id, Map<String, String> context) Removes the adapter with the given ID.default void
removeApplication
(String name) Removes an application from IceGrid.default void
removeApplication
(String name, Map<String, String> context) Removes an application from IceGrid.default CompletableFuture<Void>
removeApplicationAsync
(String name) Removes an application from IceGrid.default CompletableFuture<Void>
removeApplicationAsync
(String name, Map<String, String> context) Removes an application from IceGrid.default void
removeObject
(Identity id) Removes an object from the object registry.default void
removeObject
(Identity id, Map<String, String> context) Removes an object from the object registry.default CompletableFuture<Void>
Removes an object from the object registry.default CompletableFuture<Void>
removeObjectAsync
(Identity id, Map<String, String> context) Removes an object from the object registry.default void
sendSignal
(String id, String signal) Sends a signal to a server.default void
Sends a signal to a server.default CompletableFuture<Void>
sendSignalAsync
(String id, String signal) Sends a signal to a server.default CompletableFuture<Void>
Sends a signal to a server.default void
shutdown()
Shuts down the IceGrid registry.default void
Shuts down the IceGrid registry.default CompletableFuture<Void>
Shuts down the IceGrid registry.default CompletableFuture<Void>
shutdownAsync
(Map<String, String> context) Shuts down the IceGrid registry.default void
shutdownNode
(String name) Shuts down an IceGrid node.default void
shutdownNode
(String name, Map<String, String> context) Shuts down an IceGrid node.default CompletableFuture<Void>
shutdownNodeAsync
(String name) Shuts down an IceGrid node.default CompletableFuture<Void>
shutdownNodeAsync
(String name, Map<String, String> context) Shuts down an IceGrid node.default void
shutdownRegistry
(String name) Shuts down an IceGrid registry.default void
shutdownRegistry
(String name, Map<String, String> context) Shuts down an IceGrid registry.default CompletableFuture<Void>
shutdownRegistryAsync
(String name) Shuts down an IceGrid registry.default CompletableFuture<Void>
shutdownRegistryAsync
(String name, Map<String, String> context) Shuts down an IceGrid registry.default void
startServer
(String id) Starts a server and waits for its activation.default void
startServer
(String id, Map<String, String> context) Starts a server and waits for its activation.default CompletableFuture<Void>
Starts a server and waits for its activation.default CompletableFuture<Void>
startServerAsync
(String id, Map<String, String> context) Starts a server and waits for its activation.default void
stopServer
(String id) Stops a server.default void
stopServer
(String id, Map<String, String> context) Stops a server.default CompletableFuture<Void>
Stops a server.default CompletableFuture<Void>
stopServerAsync
(String id, Map<String, String> context) Stops a server.default void
syncApplication
(ApplicationDescriptor descriptor) Synchronizes a deployed application.default void
syncApplication
(ApplicationDescriptor descriptor, Map<String, String> context) Synchronizes a deployed application.default CompletableFuture<Void>
syncApplicationAsync
(ApplicationDescriptor descriptor) Synchronizes a deployed application.default CompletableFuture<Void>
syncApplicationAsync
(ApplicationDescriptor descriptor, Map<String, String> context) Synchronizes a deployed application.default void
syncApplicationWithoutRestart
(ApplicationDescriptor descriptor) Synchronizes a deployed application.default void
syncApplicationWithoutRestart
(ApplicationDescriptor descriptor, Map<String, String> context) Synchronizes a deployed application.default CompletableFuture<Void>
Synchronizes a deployed application.default CompletableFuture<Void>
syncApplicationWithoutRestartAsync
(ApplicationDescriptor descriptor, Map<String, String> context) Synchronizes a deployed application.static AdminPrx
uncheckedCast
(ObjectPrx obj) Creates a new proxy from an existing proxy.static AdminPrx
uncheckedCast
(ObjectPrx obj, String facet) Creates a new proxy from an existing proxy.default void
updateApplication
(ApplicationUpdateDescriptor descriptor) Updates a deployed application.default void
updateApplication
(ApplicationUpdateDescriptor descriptor, Map<String, String> context) Updates a deployed application.default CompletableFuture<Void>
updateApplicationAsync
(ApplicationUpdateDescriptor descriptor) Updates a deployed application.default CompletableFuture<Void>
updateApplicationAsync
(ApplicationUpdateDescriptor descriptor, Map<String, String> context) Updates a deployed application.default void
Updates a deployed application.default void
updateApplicationWithoutRestart
(ApplicationUpdateDescriptor descriptor, Map<String, String> context) Updates a deployed application.default CompletableFuture<Void>
Updates a deployed application.default CompletableFuture<Void>
updateApplicationWithoutRestartAsync
(ApplicationUpdateDescriptor descriptor, Map<String, String> context) Updates a deployed application.default void
updateObject
(ObjectPrx obj) Updates an object in the object registry.default void
updateObject
(ObjectPrx obj, Map<String, String> context) Updates an object in the object registry.default CompletableFuture<Void>
Updates an object in the object registry.default CompletableFuture<Void>
updateObjectAsync
(ObjectPrx obj, Map<String, String> context) Updates an object in the object registry.Methods inherited from interface com.zeroc.Ice.ObjectPrx
equals, ice_executor, ice_facet, ice_flushBatchRequests, ice_flushBatchRequestsAsync, ice_getAdapterId, ice_getCachedConnection, ice_getCommunicator, ice_getCompress, ice_getConnection, ice_getConnectionAsync, ice_getConnectionId, ice_getContext, ice_getEncodingVersion, ice_getEndpoints, ice_getEndpointSelection, ice_getFacet, ice_getIdentity, ice_getInvocationTimeout, ice_getLocator, ice_getLocatorCacheTimeout, ice_getRouter, ice_id, ice_id, ice_idAsync, ice_idAsync, ice_identity, ice_ids, ice_ids, ice_idsAsync, ice_idsAsync, ice_invoke, ice_invoke, ice_invokeAsync, ice_invokeAsync, ice_isA, ice_isA, ice_isAAsync, ice_isAAsync, ice_isBatchDatagram, ice_isBatchOneway, ice_isCollocationOptimized, ice_isConnectionCached, ice_isDatagram, ice_isFixed, ice_isOneway, ice_isTwoway, ice_locatorCacheTimeout, ice_ping, ice_ping, ice_pingAsync, ice_pingAsync
-
Method Details
-
addApplication
default void addApplication(ApplicationDescriptor descriptor) throws AccessDeniedException, DeploymentException Adds an application to IceGrid.- Parameters:
descriptor
- The application descriptor.- Throws:
AccessDeniedException
- Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.DeploymentException
- Thrown when the application deployment failed.
-
addApplication
default void addApplication(ApplicationDescriptor descriptor, Map<String, String> context) throws AccessDeniedException, DeploymentExceptionAdds an application to IceGrid.- Parameters:
descriptor
- The application descriptor.context
- The Context map to send with the invocation.- Throws:
AccessDeniedException
- Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.DeploymentException
- Thrown when the application deployment failed.
-
addApplicationAsync
Adds an application to IceGrid.- Parameters:
descriptor
- The application descriptor.- Returns:
- A future that will be completed when the invocation completes.
-
addApplicationAsync
default CompletableFuture<Void> addApplicationAsync(ApplicationDescriptor descriptor, Map<String, String> context) Adds an application to IceGrid.- Parameters:
descriptor
- The application descriptor.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
syncApplication
default void syncApplication(ApplicationDescriptor descriptor) throws AccessDeniedException, DeploymentException, ApplicationNotExistException Synchronizes a deployed application. This operation replaces the current descriptor with a new descriptor.- Parameters:
descriptor
- The new application descriptor.- Throws:
AccessDeniedException
- Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.ApplicationNotExistException
- Thrown when the application doesn't exist.DeploymentException
- Thrown when the application deployment failed.
-
syncApplication
default void syncApplication(ApplicationDescriptor descriptor, Map<String, String> context) throws AccessDeniedException, DeploymentException, ApplicationNotExistExceptionSynchronizes a deployed application. This operation replaces the current descriptor with a new descriptor.- Parameters:
descriptor
- The new application descriptor.context
- The Context map to send with the invocation.- Throws:
AccessDeniedException
- Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.ApplicationNotExistException
- Thrown when the application doesn't exist.DeploymentException
- Thrown when the application deployment failed.
-
syncApplicationAsync
Synchronizes a deployed application. This operation replaces the current descriptor with a new descriptor.- Parameters:
descriptor
- The new application descriptor.- Returns:
- A future that will be completed when the invocation completes.
-
syncApplicationAsync
default CompletableFuture<Void> syncApplicationAsync(ApplicationDescriptor descriptor, Map<String, String> context) Synchronizes a deployed application. This operation replaces the current descriptor with a new descriptor.- Parameters:
descriptor
- The new application descriptor.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
updateApplication
default void updateApplication(ApplicationUpdateDescriptor descriptor) throws AccessDeniedException, DeploymentException, ApplicationNotExistException Updates a deployed application.- Parameters:
descriptor
- The update descriptor.- Throws:
AccessDeniedException
- Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.ApplicationNotExistException
- Thrown when the application doesn't exist.DeploymentException
- Thrown when the application deployment failed.
-
updateApplication
default void updateApplication(ApplicationUpdateDescriptor descriptor, Map<String, String> context) throws AccessDeniedException, DeploymentException, ApplicationNotExistExceptionUpdates a deployed application.- Parameters:
descriptor
- The update descriptor.context
- The Context map to send with the invocation.- Throws:
AccessDeniedException
- Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.ApplicationNotExistException
- Thrown when the application doesn't exist.DeploymentException
- Thrown when the application deployment failed.
-
updateApplicationAsync
Updates a deployed application.- Parameters:
descriptor
- The update descriptor.- Returns:
- A future that will be completed when the invocation completes.
-
updateApplicationAsync
default CompletableFuture<Void> updateApplicationAsync(ApplicationUpdateDescriptor descriptor, Map<String, String> context) Updates a deployed application.- Parameters:
descriptor
- The update descriptor.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
syncApplicationWithoutRestart
default void syncApplicationWithoutRestart(ApplicationDescriptor descriptor) throws AccessDeniedException, DeploymentException, ApplicationNotExistException Synchronizes a deployed application. This operation replaces the current descriptor with a new descriptor only if no server restarts are necessary for the update of the application. If some servers need to be restarted, the synchronization is rejected with a DeploymentException.- Parameters:
descriptor
- The application descriptor.- Throws:
AccessDeniedException
- Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.ApplicationNotExistException
- Thrown when the application doesn't exist.DeploymentException
- Thrown when the application deployment failed.
-
syncApplicationWithoutRestart
default void syncApplicationWithoutRestart(ApplicationDescriptor descriptor, Map<String, String> context) throws AccessDeniedException, DeploymentException, ApplicationNotExistExceptionSynchronizes a deployed application. This operation replaces the current descriptor with a new descriptor only if no server restarts are necessary for the update of the application. If some servers need to be restarted, the synchronization is rejected with a DeploymentException.- Parameters:
descriptor
- The application descriptor.context
- The Context map to send with the invocation.- Throws:
AccessDeniedException
- Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.ApplicationNotExistException
- Thrown when the application doesn't exist.DeploymentException
- Thrown when the application deployment failed.
-
syncApplicationWithoutRestartAsync
default CompletableFuture<Void> syncApplicationWithoutRestartAsync(ApplicationDescriptor descriptor) Synchronizes a deployed application. This operation replaces the current descriptor with a new descriptor only if no server restarts are necessary for the update of the application. If some servers need to be restarted, the synchronization is rejected with a DeploymentException.- Parameters:
descriptor
- The application descriptor.- Returns:
- A future that will be completed when the invocation completes.
-
syncApplicationWithoutRestartAsync
default CompletableFuture<Void> syncApplicationWithoutRestartAsync(ApplicationDescriptor descriptor, Map<String, String> context) Synchronizes a deployed application. This operation replaces the current descriptor with a new descriptor only if no server restarts are necessary for the update of the application. If some servers need to be restarted, the synchronization is rejected with a DeploymentException.- Parameters:
descriptor
- The application descriptor.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
updateApplicationWithoutRestart
default void updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor) throws AccessDeniedException, DeploymentException, ApplicationNotExistException Updates a deployed application. This operation succeeds only when no server restarts are necessary for the update of the application. If some servers need to be restarted, the synchronization is rejected with a DeploymentException.- Parameters:
descriptor
- The update descriptor.- Throws:
AccessDeniedException
- Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.ApplicationNotExistException
- Thrown when the application doesn't exist.DeploymentException
- Thrown when the application deployment failed.
-
updateApplicationWithoutRestart
default void updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor, Map<String, String> context) throws AccessDeniedException, DeploymentException, ApplicationNotExistExceptionUpdates a deployed application. This operation succeeds only when no server restarts are necessary for the update of the application. If some servers need to be restarted, the synchronization is rejected with a DeploymentException.- Parameters:
descriptor
- The update descriptor.context
- The Context map to send with the invocation.- Throws:
AccessDeniedException
- Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.ApplicationNotExistException
- Thrown when the application doesn't exist.DeploymentException
- Thrown when the application deployment failed.
-
updateApplicationWithoutRestartAsync
default CompletableFuture<Void> updateApplicationWithoutRestartAsync(ApplicationUpdateDescriptor descriptor) Updates a deployed application. This operation succeeds only when no server restarts are necessary for the update of the application. If some servers need to be restarted, the synchronization is rejected with a DeploymentException.- Parameters:
descriptor
- The update descriptor.- Returns:
- A future that will be completed when the invocation completes.
-
updateApplicationWithoutRestartAsync
default CompletableFuture<Void> updateApplicationWithoutRestartAsync(ApplicationUpdateDescriptor descriptor, Map<String, String> context) Updates a deployed application. This operation succeeds only when no server restarts are necessary for the update of the application. If some servers need to be restarted, the synchronization is rejected with a DeploymentException.- Parameters:
descriptor
- The update descriptor.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
removeApplication
default void removeApplication(String name) throws AccessDeniedException, DeploymentException, ApplicationNotExistException Removes an application from IceGrid.- Parameters:
name
- The application name.- Throws:
AccessDeniedException
- Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.ApplicationNotExistException
- Thrown when the application doesn't exist.DeploymentException
- Thrown when the application deployment failed.
-
removeApplication
default void removeApplication(String name, Map<String, String> context) throws AccessDeniedException, DeploymentException, ApplicationNotExistExceptionRemoves an application from IceGrid.- Parameters:
name
- The application name.context
- The Context map to send with the invocation.- Throws:
AccessDeniedException
- Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.ApplicationNotExistException
- Thrown when the application doesn't exist.DeploymentException
- Thrown when the application deployment failed.
-
removeApplicationAsync
Removes an application from IceGrid.- Parameters:
name
- The application name.- Returns:
- A future that will be completed when the invocation completes.
-
removeApplicationAsync
Removes an application from IceGrid.- Parameters:
name
- The application name.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
instantiateServer
default void instantiateServer(String application, String node, ServerInstanceDescriptor desc) throws AccessDeniedException, ApplicationNotExistException, DeploymentException Instantiates a server template.- Parameters:
application
- The application name.node
- The name of the node where the server will be deployed.desc
- The descriptor of the server instance to deploy.- Throws:
AccessDeniedException
- Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.ApplicationNotExistException
- Thrown when the application doesn't exist.DeploymentException
- Thrown when the application deployment failed.
-
instantiateServer
default void instantiateServer(String application, String node, ServerInstanceDescriptor desc, Map<String, String> context) throws AccessDeniedException, ApplicationNotExistException, DeploymentExceptionInstantiates a server template.- Parameters:
application
- The application name.node
- The name of the node where the server will be deployed.desc
- The descriptor of the server instance to deploy.context
- The Context map to send with the invocation.- Throws:
AccessDeniedException
- Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.ApplicationNotExistException
- Thrown when the application doesn't exist.DeploymentException
- Thrown when the application deployment failed.
-
instantiateServerAsync
default CompletableFuture<Void> instantiateServerAsync(String application, String node, ServerInstanceDescriptor desc) Instantiates a server template.- Parameters:
application
- The application name.node
- The name of the node where the server will be deployed.desc
- The descriptor of the server instance to deploy.- Returns:
- A future that will be completed when the invocation completes.
-
instantiateServerAsync
default CompletableFuture<Void> instantiateServerAsync(String application, String node, ServerInstanceDescriptor desc, Map<String, String> context) Instantiates a server template.- Parameters:
application
- The application name.node
- The name of the node where the server will be deployed.desc
- The descriptor of the server instance to deploy.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
getApplicationInfo
Gets an application descriptor.- Parameters:
name
- The application name.- Returns:
- The application descriptor.
- Throws:
ApplicationNotExistException
- Thrown when the application doesn't exist.
-
getApplicationInfo
default ApplicationInfo getApplicationInfo(String name, Map<String, String> context) throws ApplicationNotExistExceptionGets an application descriptor.- Parameters:
name
- The application name.context
- The Context map to send with the invocation.- Returns:
- The application descriptor.
- Throws:
ApplicationNotExistException
- Thrown when the application doesn't exist.
-
getApplicationInfoAsync
Gets an application descriptor.- Parameters:
name
- The application name.- Returns:
- The application descriptor.
-
getApplicationInfoAsync
default CompletableFuture<ApplicationInfo> getApplicationInfoAsync(String name, Map<String, String> context) Gets an application descriptor.- Parameters:
name
- The application name.context
- The Context map to send with the invocation.- Returns:
- The application descriptor.
-
getDefaultApplicationDescriptor
Gets the default application descriptor.- Returns:
- The default application descriptor.
- Throws:
DeploymentException
- Thrown when the default application descriptor is invalid or unreachable.
-
getDefaultApplicationDescriptor
default ApplicationDescriptor getDefaultApplicationDescriptor(Map<String, String> context) throws DeploymentExceptionGets the default application descriptor.- Parameters:
context
- The Context map to send with the invocation.- Returns:
- The default application descriptor.
- Throws:
DeploymentException
- Thrown when the default application descriptor is invalid or unreachable.
-
getDefaultApplicationDescriptorAsync
Gets the default application descriptor.- Returns:
- The default application descriptor.
-
getDefaultApplicationDescriptorAsync
default CompletableFuture<ApplicationDescriptor> getDefaultApplicationDescriptorAsync(Map<String, String> context) Gets the default application descriptor.- Parameters:
context
- The Context map to send with the invocation.- Returns:
- The default application descriptor.
-
getAllApplicationNames
Gets all the IceGrid applications currently registered.- Returns:
- The application names.
-
getAllApplicationNames
Gets all the IceGrid applications currently registered.- Parameters:
context
- The Context map to send with the invocation.- Returns:
- The application names.
-
getAllApplicationNamesAsync
Gets all the IceGrid applications currently registered.- Returns:
- The application names.
-
getAllApplicationNamesAsync
Gets all the IceGrid applications currently registered.- Parameters:
context
- The Context map to send with the invocation.- Returns:
- The application names.
-
getServerInfo
Gets information about a server.- Parameters:
id
- The server ID.- Returns:
- The server information.
- Throws:
ServerNotExistException
- Thrown when the server doesn't exist.
-
getServerInfo
default ServerInfo getServerInfo(String id, Map<String, String> context) throws ServerNotExistExceptionGets information about a server.- Parameters:
id
- The server ID.context
- The Context map to send with the invocation.- Returns:
- The server information.
- Throws:
ServerNotExistException
- Thrown when the server doesn't exist.
-
getServerInfoAsync
Gets information about a server.- Parameters:
id
- The server ID.- Returns:
- The server information.
-
getServerInfoAsync
Gets information about a server.- Parameters:
id
- The server ID.context
- The Context map to send with the invocation.- Returns:
- The server information.
-
getServerState
default ServerState getServerState(String id) throws ServerNotExistException, NodeUnreachableException, DeploymentException Gets the state of a server.- Parameters:
id
- The server ID.- Returns:
- The server state.
- Throws:
DeploymentException
- Thrown when the deployment of the server failed.NodeUnreachableException
- Thrown when the node is unreachable.ServerNotExistException
- Thrown when the server doesn't exist.
-
getServerState
default ServerState getServerState(String id, Map<String, String> context) throws ServerNotExistException, NodeUnreachableException, DeploymentExceptionGets the state of a server.- Parameters:
id
- The server ID.context
- The Context map to send with the invocation.- Returns:
- The server state.
- Throws:
DeploymentException
- Thrown when the deployment of the server failed.NodeUnreachableException
- Thrown when the node is unreachable.ServerNotExistException
- Thrown when the server doesn't exist.
-
getServerStateAsync
Gets the state of a server.- Parameters:
id
- The server ID.- Returns:
- The server state.
-
getServerStateAsync
Gets the state of a server.- Parameters:
id
- The server ID.context
- The Context map to send with the invocation.- Returns:
- The server state.
-
getServerPid
default int getServerPid(String id) throws ServerNotExistException, NodeUnreachableException, DeploymentException Gets the system process ID of a server. The process ID is operating system dependent.- Parameters:
id
- The server ID.- Returns:
- The process ID.
- Throws:
DeploymentException
- Thrown when the deployment of the server failed.NodeUnreachableException
- Thrown when the node is unreachable.ServerNotExistException
- Thrown when the server doesn't exist.
-
getServerPid
default int getServerPid(String id, Map<String, String> context) throws ServerNotExistException, NodeUnreachableException, DeploymentExceptionGets the system process ID of a server. The process ID is operating system dependent.- Parameters:
id
- The server ID.context
- The Context map to send with the invocation.- Returns:
- The process ID.
- Throws:
DeploymentException
- Thrown when the deployment of the server failed.NodeUnreachableException
- Thrown when the node is unreachable.ServerNotExistException
- Thrown when the server doesn't exist.
-
getServerPidAsync
Gets the system process ID of a server. The process ID is operating system dependent.- Parameters:
id
- The server ID.- Returns:
- The process ID.
-
getServerPidAsync
Gets the system process ID of a server. The process ID is operating system dependent.- Parameters:
id
- The server ID.context
- The Context map to send with the invocation.- Returns:
- The process ID.
-
getServerAdminCategory
Gets the category for server admin objects. You can manufacture a server admin proxy from the admin proxy by changing its identity: use the server ID as name and the returned category as category.- Returns:
- The category for server admin objects.
-
getServerAdminCategory
Gets the category for server admin objects. You can manufacture a server admin proxy from the admin proxy by changing its identity: use the server ID as name and the returned category as category.- Parameters:
context
- The Context map to send with the invocation.- Returns:
- The category for server admin objects.
-
getServerAdminCategoryAsync
Gets the category for server admin objects. You can manufacture a server admin proxy from the admin proxy by changing its identity: use the server ID as name and the returned category as category.- Returns:
- The category for server admin objects.
-
getServerAdminCategoryAsync
Gets the category for server admin objects. You can manufacture a server admin proxy from the admin proxy by changing its identity: use the server ID as name and the returned category as category.- Parameters:
context
- The Context map to send with the invocation.- Returns:
- The category for server admin objects.
-
getServerAdmin
default ObjectPrx getServerAdmin(String id) throws ServerNotExistException, NodeUnreachableException, DeploymentException Gets a proxy to the admin object of a server.- Parameters:
id
- The server ID.- Returns:
- A proxy to the admin object of the server. This proxy is never null.
- Throws:
DeploymentException
- Thrown when the deployment of the server failed.NodeUnreachableException
- Thrown when the node is unreachable.ServerNotExistException
- Thrown when the server doesn't exist.
-
getServerAdmin
default ObjectPrx getServerAdmin(String id, Map<String, String> context) throws ServerNotExistException, NodeUnreachableException, DeploymentExceptionGets a proxy to the admin object of a server.- Parameters:
id
- The server ID.context
- The Context map to send with the invocation.- Returns:
- A proxy to the admin object of the server. This proxy is never null.
- Throws:
DeploymentException
- Thrown when the deployment of the server failed.NodeUnreachableException
- Thrown when the node is unreachable.ServerNotExistException
- Thrown when the server doesn't exist.
-
getServerAdminAsync
Gets a proxy to the admin object of a server.- Parameters:
id
- The server ID.- Returns:
- A proxy to the admin object of the server. This proxy is never null.
-
getServerAdminAsync
Gets a proxy to the admin object of a server.- Parameters:
id
- The server ID.context
- The Context map to send with the invocation.- Returns:
- A proxy to the admin object of the server. This proxy is never null.
-
enableServer
default void enableServer(String id, boolean enabled) throws ServerNotExistException, NodeUnreachableException, DeploymentException Enables or disables a server. A disabled server can't be started on demand or administratively. The enable state of the server is not persistent: if the node is shut down and restarted, the server will be enabled by default.- Parameters:
id
- The server ID.enabled
-true
to enable the server,false
to disable it.- Throws:
DeploymentException
- Thrown when the deployment of the server failed.NodeUnreachableException
- Thrown when the node is unreachable.ServerNotExistException
- Thrown when the server doesn't exist.
-
enableServer
default void enableServer(String id, boolean enabled, Map<String, String> context) throws ServerNotExistException, NodeUnreachableException, DeploymentExceptionEnables or disables a server. A disabled server can't be started on demand or administratively. The enable state of the server is not persistent: if the node is shut down and restarted, the server will be enabled by default.- Parameters:
id
- The server ID.enabled
-true
to enable the server,false
to disable it.context
- The Context map to send with the invocation.- Throws:
DeploymentException
- Thrown when the deployment of the server failed.NodeUnreachableException
- Thrown when the node is unreachable.ServerNotExistException
- Thrown when the server doesn't exist.
-
enableServerAsync
Enables or disables a server. A disabled server can't be started on demand or administratively. The enable state of the server is not persistent: if the node is shut down and restarted, the server will be enabled by default.- Parameters:
id
- The server ID.enabled
-true
to enable the server,false
to disable it.- Returns:
- A future that will be completed when the invocation completes.
-
enableServerAsync
default CompletableFuture<Void> enableServerAsync(String id, boolean enabled, Map<String, String> context) Enables or disables a server. A disabled server can't be started on demand or administratively. The enable state of the server is not persistent: if the node is shut down and restarted, the server will be enabled by default.- Parameters:
id
- The server ID.enabled
-true
to enable the server,false
to disable it.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
isServerEnabled
default boolean isServerEnabled(String id) throws ServerNotExistException, NodeUnreachableException, DeploymentException Checks if the server is enabled or disabled.- Parameters:
id
- The server ID.- Returns:
true
if the server is enabled,false
otherwise.- Throws:
DeploymentException
- Thrown when the deployment of the server failed.NodeUnreachableException
- Thrown when the node is unreachable.ServerNotExistException
- Thrown when the server doesn't exist.
-
isServerEnabled
default boolean isServerEnabled(String id, Map<String, String> context) throws ServerNotExistException, NodeUnreachableException, DeploymentExceptionChecks if the server is enabled or disabled.- Parameters:
id
- The server ID.context
- The Context map to send with the invocation.- Returns:
true
if the server is enabled,false
otherwise.- Throws:
DeploymentException
- Thrown when the deployment of the server failed.NodeUnreachableException
- Thrown when the node is unreachable.ServerNotExistException
- Thrown when the server doesn't exist.
-
isServerEnabledAsync
Checks if the server is enabled or disabled.- Parameters:
id
- The server ID.- Returns:
true
if the server is enabled,false
otherwise.
-
isServerEnabledAsync
Checks if the server is enabled or disabled.- Parameters:
id
- The server ID.context
- The Context map to send with the invocation.- Returns:
true
if the server is enabled,false
otherwise.
-
startServer
default void startServer(String id) throws ServerNotExistException, ServerStartException, NodeUnreachableException, DeploymentException Starts a server and waits for its activation.- Parameters:
id
- The server id.- Throws:
DeploymentException
- Thrown when the deployment of the server failed.NodeUnreachableException
- Thrown when the node is unreachable.ServerNotExistException
- Thrown when the server doesn't exist.ServerStartException
- Thrown when the server startup failed.
-
startServer
default void startServer(String id, Map<String, String> context) throws ServerNotExistException, ServerStartException, NodeUnreachableException, DeploymentExceptionStarts a server and waits for its activation.- Parameters:
id
- The server id.context
- The Context map to send with the invocation.- Throws:
DeploymentException
- Thrown when the deployment of the server failed.NodeUnreachableException
- Thrown when the node is unreachable.ServerNotExistException
- Thrown when the server doesn't exist.ServerStartException
- Thrown when the server startup failed.
-
startServerAsync
Starts a server and waits for its activation.- Parameters:
id
- The server id.- Returns:
- A future that will be completed when the invocation completes.
-
startServerAsync
Starts a server and waits for its activation.- Parameters:
id
- The server id.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
stopServer
default void stopServer(String id) throws ServerNotExistException, ServerStopException, NodeUnreachableException, DeploymentException Stops a server.- Parameters:
id
- The server ID.- Throws:
DeploymentException
- Thrown when the deployment of the server failed.NodeUnreachableException
- Thrown when the node is unreachable.ServerNotExistException
- Thrown when the server doesn't exist.ServerStopException
- Thrown when the server stop failed.
-
stopServer
default void stopServer(String id, Map<String, String> context) throws ServerNotExistException, ServerStopException, NodeUnreachableException, DeploymentExceptionStops a server.- Parameters:
id
- The server ID.context
- The Context map to send with the invocation.- Throws:
DeploymentException
- Thrown when the deployment of the server failed.NodeUnreachableException
- Thrown when the node is unreachable.ServerNotExistException
- Thrown when the server doesn't exist.ServerStopException
- Thrown when the server stop failed.
-
stopServerAsync
Stops a server.- Parameters:
id
- The server ID.- Returns:
- A future that will be completed when the invocation completes.
-
stopServerAsync
Stops a server.- Parameters:
id
- The server ID.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
sendSignal
default void sendSignal(String id, String signal) throws ServerNotExistException, NodeUnreachableException, DeploymentException, BadSignalException Sends a signal to a server.- Parameters:
id
- The server ID.signal
- The signal, for example SIGTERM or 15.- Throws:
BadSignalException
- Thrown when the signal is not recognized by the target server.DeploymentException
- Thrown when the deployment of the server failed.NodeUnreachableException
- Thrown when the node is unreachable.ServerNotExistException
- Thrown when the server doesn't exist.
-
sendSignal
default void sendSignal(String id, String signal, Map<String, String> context) throws ServerNotExistException, NodeUnreachableException, DeploymentException, BadSignalExceptionSends a signal to a server.- Parameters:
id
- The server ID.signal
- The signal, for example SIGTERM or 15.context
- The Context map to send with the invocation.- Throws:
BadSignalException
- Thrown when the signal is not recognized by the target server.DeploymentException
- Thrown when the deployment of the server failed.NodeUnreachableException
- Thrown when the node is unreachable.ServerNotExistException
- Thrown when the server doesn't exist.
-
sendSignalAsync
Sends a signal to a server.- Parameters:
id
- The server ID.signal
- The signal, for example SIGTERM or 15.- Returns:
- A future that will be completed when the invocation completes.
-
sendSignalAsync
default CompletableFuture<Void> sendSignalAsync(String id, String signal, Map<String, String> context) Sends a signal to a server.- Parameters:
id
- The server ID.signal
- The signal, for example SIGTERM or 15.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
getAllServerIds
Gets the IDs of all the servers registered with IceGrid.- Returns:
- The server IDs.
-
getAllServerIds
Gets the IDs of all the servers registered with IceGrid.- Parameters:
context
- The Context map to send with the invocation.- Returns:
- The server IDs.
-
getAllServerIdsAsync
Gets the IDs of all the servers registered with IceGrid.- Returns:
- The server IDs.
-
getAllServerIdsAsync
Gets the IDs of all the servers registered with IceGrid.- Parameters:
context
- The Context map to send with the invocation.- Returns:
- The server IDs.
-
getAdapterInfo
Gets adapter information for the replica group or adapter with the given ID.- Parameters:
id
- The adapter or replica group ID.- Returns:
- A sequence of AdapterInfo. If
id
refers to an adapter, this sequence contains a single element. Ifid
refers to a replica group, this sequence contains adapter information for each member of the replica group. - Throws:
AdapterNotExistException
- Thrown when the adapter or replica group doesn't exist.
-
getAdapterInfo
default AdapterInfo[] getAdapterInfo(String id, Map<String, String> context) throws AdapterNotExistExceptionGets adapter information for the replica group or adapter with the given ID.- Parameters:
id
- The adapter or replica group ID.context
- The Context map to send with the invocation.- Returns:
- A sequence of AdapterInfo. If
id
refers to an adapter, this sequence contains a single element. Ifid
refers to a replica group, this sequence contains adapter information for each member of the replica group. - Throws:
AdapterNotExistException
- Thrown when the adapter or replica group doesn't exist.
-
getAdapterInfoAsync
Gets adapter information for the replica group or adapter with the given ID.- Parameters:
id
- The adapter or replica group ID.- Returns:
- A sequence of AdapterInfo. If
id
refers to an adapter, this sequence contains a single element. Ifid
refers to a replica group, this sequence contains adapter information for each member of the replica group.
-
getAdapterInfoAsync
Gets adapter information for the replica group or adapter with the given ID.- Parameters:
id
- The adapter or replica group ID.context
- The Context map to send with the invocation.- Returns:
- A sequence of AdapterInfo. If
id
refers to an adapter, this sequence contains a single element. Ifid
refers to a replica group, this sequence contains adapter information for each member of the replica group.
-
removeAdapter
Removes the adapter with the given ID.- Parameters:
id
- The adapter ID.- Throws:
AdapterNotExistException
- Thrown when the adapter doesn't exist.DeploymentException
- Thrown when the application deployment failed.
-
removeAdapter
default void removeAdapter(String id, Map<String, String> context) throws AdapterNotExistException, DeploymentExceptionRemoves the adapter with the given ID.- Parameters:
id
- The adapter ID.context
- The Context map to send with the invocation.- Throws:
AdapterNotExistException
- Thrown when the adapter doesn't exist.DeploymentException
- Thrown when the application deployment failed.
-
removeAdapterAsync
Removes the adapter with the given ID.- Parameters:
id
- The adapter ID.- Returns:
- A future that will be completed when the invocation completes.
-
removeAdapterAsync
Removes the adapter with the given ID.- Parameters:
id
- The adapter ID.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
getAllAdapterIds
Gets the IDs of all adapters registered with IceGrid.- Returns:
- The adapter IDs.
-
getAllAdapterIds
Gets the IDs of all adapters registered with IceGrid.- Parameters:
context
- The Context map to send with the invocation.- Returns:
- The adapter IDs.
-
getAllAdapterIdsAsync
Gets the IDs of all adapters registered with IceGrid.- Returns:
- The adapter IDs.
-
getAllAdapterIdsAsync
Gets the IDs of all adapters registered with IceGrid.- Parameters:
context
- The Context map to send with the invocation.- Returns:
- The adapter IDs.
-
addObject
Adds an object to the object registry. IceGrid gets the object type by callingice_id
onobj
. The object must be reachable.- Parameters:
obj
- A proxy to the object. This proxy is never null.- Throws:
DeploymentException
- Thrown when the object can't be added.ObjectExistsException
- Thrown when the object is already registered.
-
addObject
default void addObject(ObjectPrx obj, Map<String, String> context) throws ObjectExistsException, DeploymentExceptionAdds an object to the object registry. IceGrid gets the object type by callingice_id
onobj
. The object must be reachable.- Parameters:
obj
- A proxy to the object. This proxy is never null.context
- The Context map to send with the invocation.- Throws:
DeploymentException
- Thrown when the object can't be added.ObjectExistsException
- Thrown when the object is already registered.
-
addObjectAsync
Adds an object to the object registry. IceGrid gets the object type by callingice_id
onobj
. The object must be reachable.- Parameters:
obj
- A proxy to the object. This proxy is never null.- Returns:
- A future that will be completed when the invocation completes.
-
addObjectAsync
Adds an object to the object registry. IceGrid gets the object type by callingice_id
onobj
. The object must be reachable.- Parameters:
obj
- A proxy to the object. This proxy is never null.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
updateObject
Updates an object in the object registry. Only objects added with this interface can be updated with this operation. Objects added with deployment descriptors should be updated with the deployment mechanism.- Parameters:
obj
- A proxy to the object. This proxy is never null.- Throws:
DeploymentException
- Thrown when the object can't be updated.ObjectNotRegisteredException
- Thrown when the object isn't registered with the registry.
-
updateObject
default void updateObject(ObjectPrx obj, Map<String, String> context) throws ObjectNotRegisteredException, DeploymentExceptionUpdates an object in the object registry. Only objects added with this interface can be updated with this operation. Objects added with deployment descriptors should be updated with the deployment mechanism.- Parameters:
obj
- A proxy to the object. This proxy is never null.context
- The Context map to send with the invocation.- Throws:
DeploymentException
- Thrown when the object can't be updated.ObjectNotRegisteredException
- Thrown when the object isn't registered with the registry.
-
updateObjectAsync
Updates an object in the object registry. Only objects added with this interface can be updated with this operation. Objects added with deployment descriptors should be updated with the deployment mechanism.- Parameters:
obj
- A proxy to the object. This proxy is never null.- Returns:
- A future that will be completed when the invocation completes.
-
updateObjectAsync
Updates an object in the object registry. Only objects added with this interface can be updated with this operation. Objects added with deployment descriptors should be updated with the deployment mechanism.- Parameters:
obj
- A proxy to the object. This proxy is never null.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
addObjectWithType
default void addObjectWithType(ObjectPrx obj, String type) throws ObjectExistsException, DeploymentException Adds an object to the object registry and explicitly specifies its type.- Parameters:
obj
- The object to be added to the registry. The proxy is never null.type
- The type name.- Throws:
DeploymentException
- Thrown when the application deployment failed.ObjectExistsException
- Thrown when the object is already registered.
-
addObjectWithType
default void addObjectWithType(ObjectPrx obj, String type, Map<String, String> context) throws ObjectExistsException, DeploymentExceptionAdds an object to the object registry and explicitly specifies its type.- Parameters:
obj
- The object to be added to the registry. The proxy is never null.type
- The type name.context
- The Context map to send with the invocation.- Throws:
DeploymentException
- Thrown when the application deployment failed.ObjectExistsException
- Thrown when the object is already registered.
-
addObjectWithTypeAsync
Adds an object to the object registry and explicitly specifies its type.- Parameters:
obj
- The object to be added to the registry. The proxy is never null.type
- The type name.- Returns:
- A future that will be completed when the invocation completes.
-
addObjectWithTypeAsync
default CompletableFuture<Void> addObjectWithTypeAsync(ObjectPrx obj, String type, Map<String, String> context) Adds an object to the object registry and explicitly specifies its type.- Parameters:
obj
- The object to be added to the registry. The proxy is never null.type
- The type name.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
removeObject
Removes an object from the object registry. Only objects added with this interface can be removed with this operation. Objects added with deployment descriptors should be removed with the deployment mechanism.- Parameters:
id
- The identity of the object to remove.- Throws:
DeploymentException
- Thrown when the object can't be removed.ObjectNotRegisteredException
- Thrown when the object isn't registered with the registry.
-
removeObject
default void removeObject(Identity id, Map<String, String> context) throws ObjectNotRegisteredException, DeploymentExceptionRemoves an object from the object registry. Only objects added with this interface can be removed with this operation. Objects added with deployment descriptors should be removed with the deployment mechanism.- Parameters:
id
- The identity of the object to remove.context
- The Context map to send with the invocation.- Throws:
DeploymentException
- Thrown when the object can't be removed.ObjectNotRegisteredException
- Thrown when the object isn't registered with the registry.
-
removeObjectAsync
Removes an object from the object registry. Only objects added with this interface can be removed with this operation. Objects added with deployment descriptors should be removed with the deployment mechanism.- Parameters:
id
- The identity of the object to remove.- Returns:
- A future that will be completed when the invocation completes.
-
removeObjectAsync
Removes an object from the object registry. Only objects added with this interface can be removed with this operation. Objects added with deployment descriptors should be removed with the deployment mechanism.- Parameters:
id
- The identity of the object to remove.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
getObjectInfo
Gets the object info for the object.- Parameters:
id
- The identity of the object.- Returns:
- The object info.
- Throws:
ObjectNotRegisteredException
- Thrown when the object isn't registered with the registry.
-
getObjectInfo
default ObjectInfo getObjectInfo(Identity id, Map<String, String> context) throws ObjectNotRegisteredExceptionGets the object info for the object.- Parameters:
id
- The identity of the object.context
- The Context map to send with the invocation.- Returns:
- The object info.
- Throws:
ObjectNotRegisteredException
- Thrown when the object isn't registered with the registry.
-
getObjectInfoAsync
Gets the object info for the object.- Parameters:
id
- The identity of the object.- Returns:
- The object info.
-
getObjectInfoAsync
Gets the object info for the object.- Parameters:
id
- The identity of the object.context
- The Context map to send with the invocation.- Returns:
- The object info.
-
getObjectInfosByType
Gets the object info of all the registered objects with a given type.- Parameters:
type
- The type name.- Returns:
- The object infos.
-
getObjectInfosByType
Gets the object info of all the registered objects with a given type.- Parameters:
type
- The type name.context
- The Context map to send with the invocation.- Returns:
- The object infos.
-
getObjectInfosByTypeAsync
Gets the object info of all the registered objects with a given type.- Parameters:
type
- The type name.- Returns:
- The object infos.
-
getObjectInfosByTypeAsync
default CompletableFuture<ObjectInfo[]> getObjectInfosByTypeAsync(String type, Map<String, String> context) Gets the object info of all the registered objects with a given type.- Parameters:
type
- The type name.context
- The Context map to send with the invocation.- Returns:
- The object infos.
-
getAllObjectInfos
Gets the object info of all the registered objects whose stringified identities match the given expression.- Parameters:
expr
- The expression to match against the stringified identities of registered objects. The expression may contain a trailing wildcard (*
) character.- Returns:
- All the object infos with a stringified identity matching the given expression.
-
getAllObjectInfos
Gets the object info of all the registered objects whose stringified identities match the given expression.- Parameters:
expr
- The expression to match against the stringified identities of registered objects. The expression may contain a trailing wildcard (*
) character.context
- The Context map to send with the invocation.- Returns:
- All the object infos with a stringified identity matching the given expression.
-
getAllObjectInfosAsync
Gets the object info of all the registered objects whose stringified identities match the given expression.- Parameters:
expr
- The expression to match against the stringified identities of registered objects. The expression may contain a trailing wildcard (*
) character.- Returns:
- All the object infos with a stringified identity matching the given expression.
-
getAllObjectInfosAsync
default CompletableFuture<ObjectInfo[]> getAllObjectInfosAsync(String expr, Map<String, String> context) Gets the object info of all the registered objects whose stringified identities match the given expression.- Parameters:
expr
- The expression to match against the stringified identities of registered objects. The expression may contain a trailing wildcard (*
) character.context
- The Context map to send with the invocation.- Returns:
- All the object infos with a stringified identity matching the given expression.
-
pingNode
Pings an IceGrid node to see if it is active.- Parameters:
name
- The node name.- Returns:
true
if the node ping succeeded,false
otherwise.- Throws:
NodeNotExistException
- Thrown when the node doesn't exist.
-
pingNode
Pings an IceGrid node to see if it is active.- Parameters:
name
- The node name.context
- The Context map to send with the invocation.- Returns:
true
if the node ping succeeded,false
otherwise.- Throws:
NodeNotExistException
- Thrown when the node doesn't exist.
-
pingNodeAsync
Pings an IceGrid node to see if it is active.- Parameters:
name
- The node name.- Returns:
true
if the node ping succeeded,false
otherwise.
-
pingNodeAsync
Pings an IceGrid node to see if it is active.- Parameters:
name
- The node name.context
- The Context map to send with the invocation.- Returns:
true
if the node ping succeeded,false
otherwise.
-
getNodeLoad
Gets the load averages of a node.- Parameters:
name
- The node name.- Returns:
- The node load information.
- Throws:
NodeNotExistException
- Thrown when the node doesn't exist.NodeUnreachableException
- Thrown when the node is unreachable.
-
getNodeLoad
default LoadInfo getNodeLoad(String name, Map<String, String> context) throws NodeNotExistException, NodeUnreachableExceptionGets the load averages of a node.- Parameters:
name
- The node name.context
- The Context map to send with the invocation.- Returns:
- The node load information.
- Throws:
NodeNotExistException
- Thrown when the node doesn't exist.NodeUnreachableException
- Thrown when the node is unreachable.
-
getNodeLoadAsync
Gets the load averages of a node.- Parameters:
name
- The node name.- Returns:
- The node load information.
-
getNodeLoadAsync
Gets the load averages of a node.- Parameters:
name
- The node name.context
- The Context map to send with the invocation.- Returns:
- The node load information.
-
getNodeInfo
Gets the node information of a node.- Parameters:
name
- The node name.- Returns:
- The node information.
- Throws:
NodeNotExistException
- Thrown when the node doesn't exist.NodeUnreachableException
- Thrown when the node is unreachable.
-
getNodeInfo
default NodeInfo getNodeInfo(String name, Map<String, String> context) throws NodeNotExistException, NodeUnreachableExceptionGets the node information of a node.- Parameters:
name
- The node name.context
- The Context map to send with the invocation.- Returns:
- The node information.
- Throws:
NodeNotExistException
- Thrown when the node doesn't exist.NodeUnreachableException
- Thrown when the node is unreachable.
-
getNodeInfoAsync
Gets the node information of a node.- Parameters:
name
- The node name.- Returns:
- The node information.
-
getNodeInfoAsync
Gets the node information of a node.- Parameters:
name
- The node name.context
- The Context map to send with the invocation.- Returns:
- The node information.
-
getNodeAdmin
Gets a proxy to the admin object of an IceGrid node.- Parameters:
name
- The IceGrid node name.- Returns:
- A proxy to the IceGrid node's admin object. This proxy is never null.
- Throws:
NodeNotExistException
- Thrown when the node doesn't exist.NodeUnreachableException
- Thrown when the node is unreachable.
-
getNodeAdmin
default ObjectPrx getNodeAdmin(String name, Map<String, String> context) throws NodeNotExistException, NodeUnreachableExceptionGets a proxy to the admin object of an IceGrid node.- Parameters:
name
- The IceGrid node name.context
- The Context map to send with the invocation.- Returns:
- A proxy to the IceGrid node's admin object. This proxy is never null.
- Throws:
NodeNotExistException
- Thrown when the node doesn't exist.NodeUnreachableException
- Thrown when the node is unreachable.
-
getNodeAdminAsync
Gets a proxy to the admin object of an IceGrid node.- Parameters:
name
- The IceGrid node name.- Returns:
- A proxy to the IceGrid node's admin object. This proxy is never null.
-
getNodeAdminAsync
Gets a proxy to the admin object of an IceGrid node.- Parameters:
name
- The IceGrid node name.context
- The Context map to send with the invocation.- Returns:
- A proxy to the IceGrid node's admin object. This proxy is never null.
-
getNodeProcessorSocketCount
default int getNodeProcessorSocketCount(String name) throws NodeNotExistException, NodeUnreachableException Gets the number of physical processor sockets in the computer where an IceGrid node is deployed. Note that this operation returns 1 on operating systems where this can't be automatically determined and where theIceGrid.Node.ProcessorSocketCount
property for the node is not set.- Parameters:
name
- The node name.- Returns:
- The number of processor sockets or 1 if the number of sockets can't be determined.
- Throws:
NodeNotExistException
- Thrown when the node doesn't exist.NodeUnreachableException
- Thrown when the node is unreachable.
-
getNodeProcessorSocketCount
default int getNodeProcessorSocketCount(String name, Map<String, String> context) throws NodeNotExistException, NodeUnreachableExceptionGets the number of physical processor sockets in the computer where an IceGrid node is deployed. Note that this operation returns 1 on operating systems where this can't be automatically determined and where theIceGrid.Node.ProcessorSocketCount
property for the node is not set.- Parameters:
name
- The node name.context
- The Context map to send with the invocation.- Returns:
- The number of processor sockets or 1 if the number of sockets can't be determined.
- Throws:
NodeNotExistException
- Thrown when the node doesn't exist.NodeUnreachableException
- Thrown when the node is unreachable.
-
getNodeProcessorSocketCountAsync
Gets the number of physical processor sockets in the computer where an IceGrid node is deployed. Note that this operation returns 1 on operating systems where this can't be automatically determined and where theIceGrid.Node.ProcessorSocketCount
property for the node is not set.- Parameters:
name
- The node name.- Returns:
- The number of processor sockets or 1 if the number of sockets can't be determined.
-
getNodeProcessorSocketCountAsync
default CompletableFuture<Integer> getNodeProcessorSocketCountAsync(String name, Map<String, String> context) Gets the number of physical processor sockets in the computer where an IceGrid node is deployed. Note that this operation returns 1 on operating systems where this can't be automatically determined and where theIceGrid.Node.ProcessorSocketCount
property for the node is not set.- Parameters:
name
- The node name.context
- The Context map to send with the invocation.- Returns:
- The number of processor sockets or 1 if the number of sockets can't be determined.
-
shutdownNode
Shuts down an IceGrid node.- Parameters:
name
- The node name.- Throws:
NodeNotExistException
- Thrown when the node doesn't exist.NodeUnreachableException
- Thrown when the node is unreachable.
-
shutdownNode
default void shutdownNode(String name, Map<String, String> context) throws NodeNotExistException, NodeUnreachableExceptionShuts down an IceGrid node.- Parameters:
name
- The node name.context
- The Context map to send with the invocation.- Throws:
NodeNotExistException
- Thrown when the node doesn't exist.NodeUnreachableException
- Thrown when the node is unreachable.
-
shutdownNodeAsync
Shuts down an IceGrid node.- Parameters:
name
- The node name.- Returns:
- A future that will be completed when the invocation completes.
-
shutdownNodeAsync
Shuts down an IceGrid node.- Parameters:
name
- The node name.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
getNodeHostname
Get the hostname of a node.- Parameters:
name
- The node name.- Returns:
- The node hostname.
- Throws:
NodeNotExistException
- Thrown when the node doesn't exist.NodeUnreachableException
- Thrown when the node is unreachable.
-
getNodeHostname
default String getNodeHostname(String name, Map<String, String> context) throws NodeNotExistException, NodeUnreachableExceptionGet the hostname of a node.- Parameters:
name
- The node name.context
- The Context map to send with the invocation.- Returns:
- The node hostname.
- Throws:
NodeNotExistException
- Thrown when the node doesn't exist.NodeUnreachableException
- Thrown when the node is unreachable.
-
getNodeHostnameAsync
Get the hostname of a node.- Parameters:
name
- The node name.- Returns:
- The node hostname.
-
getNodeHostnameAsync
Get the hostname of a node.- Parameters:
name
- The node name.context
- The Context map to send with the invocation.- Returns:
- The node hostname.
-
getAllNodeNames
Gets the names of all IceGrid nodes currently registered.- Returns:
- The node names.
-
getAllNodeNames
Gets the names of all IceGrid nodes currently registered.- Parameters:
context
- The Context map to send with the invocation.- Returns:
- The node names.
-
getAllNodeNamesAsync
Gets the names of all IceGrid nodes currently registered.- Returns:
- The node names.
-
getAllNodeNamesAsync
Gets the names of all IceGrid nodes currently registered.- Parameters:
context
- The Context map to send with the invocation.- Returns:
- The node names.
-
pingRegistry
Pings an IceGrid registry to see if it is active.- Parameters:
name
- The registry name.- Returns:
true
if the registry ping succeeded,false
otherwise.- Throws:
RegistryNotExistException
- Thrown when the registry doesn't exist.
-
pingRegistry
default boolean pingRegistry(String name, Map<String, String> context) throws RegistryNotExistExceptionPings an IceGrid registry to see if it is active.- Parameters:
name
- The registry name.context
- The Context map to send with the invocation.- Returns:
true
if the registry ping succeeded,false
otherwise.- Throws:
RegistryNotExistException
- Thrown when the registry doesn't exist.
-
pingRegistryAsync
Pings an IceGrid registry to see if it is active.- Parameters:
name
- The registry name.- Returns:
true
if the registry ping succeeded,false
otherwise.
-
pingRegistryAsync
Pings an IceGrid registry to see if it is active.- Parameters:
name
- The registry name.context
- The Context map to send with the invocation.- Returns:
true
if the registry ping succeeded,false
otherwise.
-
getRegistryInfo
default RegistryInfo getRegistryInfo(String name) throws RegistryNotExistException, RegistryUnreachableException Gets the registry information of an IceGrid registry.- Parameters:
name
- The registry name.- Returns:
- The registry information.
- Throws:
RegistryNotExistException
- Thrown when the registry doesn't exist.RegistryUnreachableException
- Thrown when the registry is unreachable.
-
getRegistryInfo
default RegistryInfo getRegistryInfo(String name, Map<String, String> context) throws RegistryNotExistException, RegistryUnreachableExceptionGets the registry information of an IceGrid registry.- Parameters:
name
- The registry name.context
- The Context map to send with the invocation.- Returns:
- The registry information.
- Throws:
RegistryNotExistException
- Thrown when the registry doesn't exist.RegistryUnreachableException
- Thrown when the registry is unreachable.
-
getRegistryInfoAsync
Gets the registry information of an IceGrid registry.- Parameters:
name
- The registry name.- Returns:
- The registry information.
-
getRegistryInfoAsync
default CompletableFuture<RegistryInfo> getRegistryInfoAsync(String name, Map<String, String> context) Gets the registry information of an IceGrid registry.- Parameters:
name
- The registry name.context
- The Context map to send with the invocation.- Returns:
- The registry information.
-
getRegistryAdmin
Gets a proxy to the admin object of an IceGrid registry.- Parameters:
name
- The registry name.- Returns:
- A proxy to the admin object of an IceGrid registry. This proxy is never null.
- Throws:
RegistryNotExistException
- Thrown when the registry doesn't exist.
-
getRegistryAdmin
default ObjectPrx getRegistryAdmin(String name, Map<String, String> context) throws RegistryNotExistExceptionGets a proxy to the admin object of an IceGrid registry.- Parameters:
name
- The registry name.context
- The Context map to send with the invocation.- Returns:
- A proxy to the admin object of an IceGrid registry. This proxy is never null.
- Throws:
RegistryNotExistException
- Thrown when the registry doesn't exist.
-
getRegistryAdminAsync
Gets a proxy to the admin object of an IceGrid registry.- Parameters:
name
- The registry name.- Returns:
- A proxy to the admin object of an IceGrid registry. This proxy is never null.
-
getRegistryAdminAsync
Gets a proxy to the admin object of an IceGrid registry.- Parameters:
name
- The registry name.context
- The Context map to send with the invocation.- Returns:
- A proxy to the admin object of an IceGrid registry. This proxy is never null.
-
shutdownRegistry
default void shutdownRegistry(String name) throws RegistryNotExistException, RegistryUnreachableException Shuts down an IceGrid registry.- Parameters:
name
- The registry name.- Throws:
RegistryNotExistException
- Thrown when the registry doesn't exist.RegistryUnreachableException
- Thrown when the registry is unreachable.
-
shutdownRegistry
default void shutdownRegistry(String name, Map<String, String> context) throws RegistryNotExistException, RegistryUnreachableExceptionShuts down an IceGrid registry.- Parameters:
name
- The registry name.context
- The Context map to send with the invocation.- Throws:
RegistryNotExistException
- Thrown when the registry doesn't exist.RegistryUnreachableException
- Thrown when the registry is unreachable.
-
shutdownRegistryAsync
Shuts down an IceGrid registry.- Parameters:
name
- The registry name.- Returns:
- A future that will be completed when the invocation completes.
-
shutdownRegistryAsync
Shuts down an IceGrid registry.- Parameters:
name
- The registry name.context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
getAllRegistryNames
Gets the names of all the IceGrid registries currently registered.- Returns:
- The registry names.
-
getAllRegistryNames
Gets the names of all the IceGrid registries currently registered.- Parameters:
context
- The Context map to send with the invocation.- Returns:
- The registry names.
-
getAllRegistryNamesAsync
Gets the names of all the IceGrid registries currently registered.- Returns:
- The registry names.
-
getAllRegistryNamesAsync
Gets the names of all the IceGrid registries currently registered.- Parameters:
context
- The Context map to send with the invocation.- Returns:
- The registry names.
-
shutdown
default void shutdown()Shuts down the IceGrid registry. -
shutdown
Shuts down the IceGrid registry.- Parameters:
context
- The Context map to send with the invocation.
-
shutdownAsync
Shuts down the IceGrid registry.- Returns:
- A future that will be completed when the invocation completes.
-
shutdownAsync
Shuts down the IceGrid registry.- Parameters:
context
- The Context map to send with the invocation.- Returns:
- A future that will be completed when the invocation completes.
-
createProxy
Creates a new proxy that implementsAdminPrx
.- Parameters:
communicator
- The communicator of the new proxy.proxyString
- The string representation of the proxy.- Returns:
- The new proxy.
-
checkedCast
Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation. Throws a local exception if a communication error occurs.- Parameters:
obj
- The source proxy.- Returns:
- A proxy for this type, or null if the object does not support this type.
-
checkedCast
Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation. Throws a local exception if a communication error occurs.- Parameters:
obj
- The source proxy.context
- The Context map to send with the invocation.- Returns:
- A new proxy for this type, or null if the object does not support this type.
-
checkedCast
Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation. Throws a local exception if a communication error occurs.- Parameters:
obj
- The source proxy.facet
- The name of the desired facet.- Returns:
- A new proxy for this type, or null if the facet does not support this type.
-
checkedCast
Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation. Throws a local exception if a communication error occurs.- Parameters:
obj
- The source proxy.facet
- The name of the desired facet.context
- The Context map to send with the invocation.- Returns:
- A new proxy for this type, or null if the object does not support this type.
-
uncheckedCast
Creates a new proxy from an existing proxy.- Parameters:
obj
- The untyped proxy.- Returns:
- A new proxy for this type.
-
uncheckedCast
Creates a new proxy from an existing proxy.- Parameters:
obj
- The untyped proxy.facet
- The name of the desired facet.- Returns:
- A new proxy for this type.
-
ice_context
Description copied from interface:ObjectPrx
Creates a new proxy that is identical to this proxy, except for the per-proxy context.- Specified by:
ice_context
in interfaceObjectPrx
- Parameters:
newContext
- The context for the new proxy.- Returns:
- A proxy with the new per-proxy context.
-
ice_adapterId
Description copied from interface:ObjectPrx
Creates a new proxy that is identical to this proxy, except for the adapter ID.- Specified by:
ice_adapterId
in interfaceObjectPrx
- Parameters:
newAdapterId
- The adapter ID for the new proxy.- Returns:
- A proxy with the new adapter ID.
-
ice_endpoints
Description copied from interface:ObjectPrx
Creates a new proxy that is identical to this proxy, except for the endpoints.- Specified by:
ice_endpoints
in interfaceObjectPrx
- Parameters:
newEndpoints
- The endpoints for the new proxy.- Returns:
- A proxy with the new endpoints.
-
ice_locatorCacheTimeout
Description copied from interface:ObjectPrx
Creates a new proxy that is identical to this proxy, except for the locator cache timeout.- Specified by:
ice_locatorCacheTimeout
in interfaceObjectPrx
- Parameters:
newTimeout
- The new locator cache timeout (in seconds).- Returns:
- A proxy with the new timeout.
- See Also:
-
ice_invocationTimeout
Description copied from interface:ObjectPrx
Returns a proxy that is identical to this proxy, except for the invocation timeout.- Specified by:
ice_invocationTimeout
in interfaceObjectPrx
- Parameters:
newTimeout
- The new invocation timeout (in milliseconds).- Returns:
- The proxy with the new timeout.
-
ice_invocationTimeout
Description copied from interface:ObjectPrx
Returns a proxy that is identical to this proxy, except for the invocation timeout.- Specified by:
ice_invocationTimeout
in interfaceObjectPrx
- Parameters:
newTimeout
- The new invocation timeout.- Returns:
- The proxy with the new timeout.
-
ice_connectionCached
Description copied from interface:ObjectPrx
Returns a proxy that is identical to this proxy, except for connection caching.- Specified by:
ice_connectionCached
in interfaceObjectPrx
- Parameters:
newCache
-true
if the new proxy should cache connections;false
otherwise.- Returns:
- The proxy with the specified caching policy.
-
ice_endpointSelection
Description copied from interface:ObjectPrx
Returns a proxy that is identical to this proxy, except for the endpoint selection policy.- Specified by:
ice_endpointSelection
in interfaceObjectPrx
- Parameters:
newType
- The new endpoint selection policy.- Returns:
- The proxy with the specified endpoint selection policy.
- See Also:
-
ice_encodingVersion
Description copied from interface:ObjectPrx
Returns a proxy that is identical to this proxy, except for the encoding used to marshal parameters.- Specified by:
ice_encodingVersion
in interfaceObjectPrx
- Parameters:
e
- The encoding version to use to marshal request parameters.- Returns:
- The proxy with the specified encoding version.
-
ice_router
Description copied from interface:ObjectPrx
Returns a proxy that is identical to this proxy, except for the router.- Specified by:
ice_router
in interfaceObjectPrx
- Parameters:
router
- The router for the new proxy.- Returns:
- The proxy with the specified router.
-
ice_locator
Description copied from interface:ObjectPrx
Returns a proxy that is identical to this proxy, except for the locator.- Specified by:
ice_locator
in interfaceObjectPrx
- Parameters:
locator
- The locator for the new proxy.- Returns:
- The proxy with the specified locator.
-
ice_collocationOptimized
Description copied from interface:ObjectPrx
Returns a proxy that is identical to this proxy, except for collocation optimization.- Specified by:
ice_collocationOptimized
in interfaceObjectPrx
- Parameters:
b
-true
if the new proxy enables collocation optimization;false
otherwise.- Returns:
- The proxy with the specified collocation optimization.
-
ice_twoway
AdminPrx ice_twoway()Description copied from interface:ObjectPrx
Creates a new proxy that is identical to this proxy, but uses twoway invocations.- Specified by:
ice_twoway
in interfaceObjectPrx
- Returns:
- A proxy that uses twoway invocations.
-
ice_oneway
AdminPrx ice_oneway()Description copied from interface:ObjectPrx
Creates a new proxy that is identical to this proxy, but uses oneway invocations.- Specified by:
ice_oneway
in interfaceObjectPrx
- Returns:
- A proxy that uses oneway invocations.
-
ice_batchOneway
AdminPrx ice_batchOneway()Description copied from interface:ObjectPrx
Creates a new proxy that is identical to this proxy, but uses batch oneway invocations.- Specified by:
ice_batchOneway
in interfaceObjectPrx
- Returns:
- A proxy that uses batch oneway invocations.
-
ice_datagram
AdminPrx ice_datagram()Description copied from interface:ObjectPrx
Creates a new proxy that is identical to this proxy, but uses datagram invocations.- Specified by:
ice_datagram
in interfaceObjectPrx
- Returns:
- A proxy that uses datagram invocations.
-
ice_batchDatagram
AdminPrx ice_batchDatagram()Description copied from interface:ObjectPrx
Creates a new proxy that is identical to this proxy, but uses batch datagram invocations.- Specified by:
ice_batchDatagram
in interfaceObjectPrx
- Returns:
- A proxy that uses batch datagram invocations.
-
ice_compress
Description copied from interface:ObjectPrx
Returns a proxy that is identical to this proxy, except for its compression setting which overrides the compression setting from the proxy endpoints.- Specified by:
ice_compress
in interfaceObjectPrx
- Parameters:
co
-true
enables compression for the new proxy;false
disables compression.- Returns:
- A proxy with the specified compression setting.
-
ice_connectionId
Description copied from interface:ObjectPrx
Returns a proxy that is identical to this proxy, except for its connection ID.- Specified by:
ice_connectionId
in interfaceObjectPrx
- Parameters:
connectionId
- The connection ID for the new proxy. An empty string removes the connection ID.- Returns:
- A proxy with the specified connection ID.
-
ice_fixed
Description copied from interface:ObjectPrx
Creates a new proxy that is identical to this proxy, except it's a fixed proxy bound to the given connection. -
ice_staticId
Gets the type ID of the associated Slice interface.- Returns:
- the string "::IceGrid::Admin"
-