public interface _AdminOperationsNC
Allowing access to this interface is a security risk! Please see the IceGrid documentation for further information.
| Modifier and Type | Method and Description |
|---|---|
void |
addApplication(ApplicationDescriptor descriptor)
Add an application to IceGrid.
|
void |
addObject(Ice.ObjectPrx obj)
Add an object to the object registry.
|
void |
addObjectWithType(Ice.ObjectPrx obj,
java.lang.String type)
Add an object to the object registry and explicitly specify
its type.
|
void |
enableServer(java.lang.String id,
boolean enabled)
Enable or disable a server.
|
AdapterInfo[] |
getAdapterInfo(java.lang.String id)
Get the adapter information for the replica group or adapter
with the given id.
|
java.lang.String[] |
getAllAdapterIds()
Get all the adapter ids registered with IceGrid.
|
java.lang.String[] |
getAllApplicationNames()
Get all the IceGrid applications currently registered.
|
java.lang.String[] |
getAllNodeNames()
Get all the IceGrid nodes currently registered.
|
ObjectInfo[] |
getAllObjectInfos(java.lang.String expr)
Get the object info of all the registered objects whose stringified
identities match the given expression.
|
java.lang.String[] |
getAllRegistryNames()
Get all the IceGrid registries currently registered.
|
java.lang.String[] |
getAllServerIds()
Get all the server ids registered with IceGrid.
|
ApplicationInfo |
getApplicationInfo(java.lang.String name)
Get an application descriptor.
|
ApplicationDescriptor |
getDefaultApplicationDescriptor()
Get the default application descriptor.
|
Ice.ObjectPrx |
getNodeAdmin(java.lang.String name)
Get a proxy to the IceGrid node's admin object.
|
java.lang.String |
getNodeHostname(java.lang.String name)
Get the hostname of this node.
|
NodeInfo |
getNodeInfo(java.lang.String name)
Get the node information for the node with the given name.
|
LoadInfo |
getNodeLoad(java.lang.String name)
Get the load averages of the node.
|
int |
getNodeProcessorSocketCount(java.lang.String name)
Get the number of physical processor sockets for the machine
running the node with the given name.
|
ObjectInfo |
getObjectInfo(Ice.Identity id)
Get the object info for the object with the given identity.
|
ObjectInfo[] |
getObjectInfosByType(java.lang.String type)
Get the object info of all the registered objects with the
given type.
|
Ice.ObjectPrx |
getRegistryAdmin(java.lang.String name)
Get a proxy to the IceGrid registry's admin object.
|
RegistryInfo |
getRegistryInfo(java.lang.String name)
Get the registry information for the registry with the given name.
|
Ice.ObjectPrx |
getServerAdmin(java.lang.String id)
Get a proxy to the server's admin object.
|
java.lang.String |
getServerAdminCategory()
Get the category for server admin objects.
|
ServerInfo |
getServerInfo(java.lang.String id)
Get the server information for the server with the given id.
|
int |
getServerPid(java.lang.String id)
Get a server's system process id.
|
ServerState |
getServerState(java.lang.String id)
Get a server's state.
|
java.util.Map<java.lang.String,java.lang.String> |
getSliceChecksums()
Returns the checksums for the IceGrid Slice definitions.
|
void |
instantiateServer(java.lang.String application,
java.lang.String node,
ServerInstanceDescriptor desc)
Instantiate a server template from an application on the given
node.
|
boolean |
isServerEnabled(java.lang.String id)
Check if the server is enabled or disabled.
|
void |
patchApplication_async(AMD_Admin_patchApplication __cb,
java.lang.String name,
boolean shutdown)
Patch the given application data.
|
void |
patchServer_async(AMD_Admin_patchServer __cb,
java.lang.String id,
boolean shutdown)
Patch a server.
|
boolean |
pingNode(java.lang.String name)
Ping an IceGrid node to see if it is active.
|
boolean |
pingRegistry(java.lang.String name)
Ping an IceGrid registry to see if it is active.
|
void |
removeAdapter(java.lang.String id)
Remove the adapter with the given id.
|
void |
removeApplication(java.lang.String name)
Remove an application from IceGrid.
|
void |
removeObject(Ice.Identity id)
Remove an object from the object registry.
|
void |
sendSignal(java.lang.String id,
java.lang.String signal)
Send signal to a server.
|
void |
shutdown()
Shut down the IceGrid registry.
|
void |
shutdownNode(java.lang.String name)
Shutdown an IceGrid node.
|
void |
shutdownRegistry(java.lang.String name)
Shutdown an IceGrid registry.
|
void |
startServer_async(AMD_Admin_startServer __cb,
java.lang.String id)
Start a server and wait for its activation.
|
void |
stopServer_async(AMD_Admin_stopServer __cb,
java.lang.String id)
Stop a server.
|
void |
syncApplication(ApplicationDescriptor descriptor)
Synchronize a deployed application with the given application
descriptor.
|
void |
syncApplicationWithoutRestart(ApplicationDescriptor descriptor)
Synchronize a deployed application with the given application
descriptor.
|
void |
updateApplication(ApplicationUpdateDescriptor descriptor)
Update a deployed application with the given update application
descriptor.
|
void |
updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor)
Update a deployed application with the given update application
descriptor only if no server restarts are necessary for the
update of the application.
|
void |
updateObject(Ice.ObjectPrx obj)
Update an object in the object registry.
|
void addApplication(ApplicationDescriptor descriptor) throws AccessDeniedException, DeploymentException
descriptor - The application descriptor.AccessDeniedException - Raised if the session doesn't
hold the exclusive lock or if another session is holding the
lock.DeploymentException - Raised if application deployment
failed.void syncApplication(ApplicationDescriptor descriptor) throws AccessDeniedException, ApplicationNotExistException, DeploymentException
descriptor - The application descriptor.AccessDeniedException - Raised if the session doesn't
hold the exclusive lock or if another session is holding the
lock.DeploymentException - Raised if application deployment
failed.ApplicationNotExistException - Raised if the application
doesn't exist.void updateApplication(ApplicationUpdateDescriptor descriptor) throws AccessDeniedException, ApplicationNotExistException, DeploymentException
descriptor - The update descriptor.AccessDeniedException - Raised if the session doesn't
hold the exclusive lock or if another session is holding the
lock.DeploymentException - Raised if application deployment
failed.ApplicationNotExistException - Raised if the application
doesn't exist.void syncApplicationWithoutRestart(ApplicationDescriptor descriptor) throws AccessDeniedException, ApplicationNotExistException, DeploymentException
descriptor - The application descriptor.AccessDeniedException - Raised if the session doesn't
hold the exclusive lock or if another session is holding the
lock.DeploymentException - Raised if application deployment
failed.ApplicationNotExistException - Raised if the application
doesn't exist.void updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor) throws AccessDeniedException, ApplicationNotExistException, DeploymentException
descriptor - The update descriptor.AccessDeniedException - Raised if the session doesn't
hold the exclusive lock or if another session is holding the
lock.DeploymentException - Raised if application deployment
failed.ApplicationNotExistException - Raised if the application
doesn't exist.void removeApplication(java.lang.String name)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
name - The application name.AccessDeniedException - Raised if the session doesn't
hold the exclusive lock or if another session is holding the
lock.DeploymentException - Raised if application deployment failed.ApplicationNotExistException - Raised if the application
doesn't exist.void instantiateServer(java.lang.String application,
java.lang.String node,
ServerInstanceDescriptor desc)
throws AccessDeniedException,
ApplicationNotExistException,
DeploymentException
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.AccessDeniedException - Raised if the session doesn't
hold the exclusive lock or if another session is holding the
lock.DeploymentException - Raised if server instantiation
failed.ApplicationNotExistException - Raised if the application
doesn't exist.void patchApplication_async(AMD_Admin_patchApplication __cb, java.lang.String name, boolean shutdown) throws ApplicationNotExistException, PatchException
__cb - The callback object for the operation.name - The application name.shutdown - If true, the servers depending on the data to
patch will be shut down if necessary.ApplicationNotExistException - Raised if the application
doesn't exist.PatchException - Raised if the patch failed.ApplicationInfo getApplicationInfo(java.lang.String name) throws ApplicationNotExistException
name - The application name.ApplicationNotExistException - Raised if the application
doesn't exist.ApplicationDescriptor getDefaultApplicationDescriptor() throws DeploymentException
DeploymentException - Raised if the default application
descriptor can't be accessed or is invalid.java.lang.String[] getAllApplicationNames()
ServerInfo getServerInfo(java.lang.String id) throws ServerNotExistException
id - The server id.ServerNotExistException - Raised if the server doesn't exist.ServerState getServerState(java.lang.String id) throws DeploymentException, NodeUnreachableException, ServerNotExistException
id - The server id.ServerNotExistException - Raised if the server doesn't exist.NodeUnreachableException - Raised if the node could not be
reached.DeploymentException - Raised if the server couldn't be
deployed on the node.int getServerPid(java.lang.String id)
throws DeploymentException,
NodeUnreachableException,
ServerNotExistException
id - The server id.ServerNotExistException - Raised if the server doesn't exist.NodeUnreachableException - Raised if the node could not be
reached.DeploymentException - Raised if the server couldn't be
deployed on the node.java.lang.String getServerAdminCategory()
Ice.ObjectPrx getServerAdmin(java.lang.String id) throws DeploymentException, NodeUnreachableException, ServerNotExistException
id - The server id.ServerNotExistException - Raised if the server doesn't exist.NodeUnreachableException - Raised if the node could not
be reached.DeploymentException - Raised if the server couldn't be
deployed on the node.void enableServer(java.lang.String id,
boolean enabled)
throws DeploymentException,
NodeUnreachableException,
ServerNotExistException
id - The server id.enabled - True to enable the server, false to disable it.ServerNotExistException - Raised if the server doesn't exist.NodeUnreachableException - Raised if the node could not
be reached.DeploymentException - Raised if the server couldn't be
deployed on the node.boolean isServerEnabled(java.lang.String id)
throws DeploymentException,
NodeUnreachableException,
ServerNotExistException
id - The server id.ServerNotExistException - Raised if the server doesn't
exist.NodeUnreachableException - Raised if the node could not
be reached.DeploymentException - Raised if the server couldn't be
deployed on the node.void startServer_async(AMD_Admin_startServer __cb, java.lang.String id) throws DeploymentException, NodeUnreachableException, ServerNotExistException, ServerStartException
__cb - The callback object for the operation.id - The server id.ServerNotExistException - Raised if the server doesn't
exist.ServerStartException - Raised if the server couldn't be
started.NodeUnreachableException - Raised if the node could not
be reached.DeploymentException - Raised if the server couldn't be
deployed on the node.void stopServer_async(AMD_Admin_stopServer __cb, java.lang.String id) throws DeploymentException, NodeUnreachableException, ServerNotExistException, ServerStopException
__cb - The callback object for the operation.id - The server id.ServerNotExistException - Raised if the server doesn't
exist.ServerStopException - Raised if the server couldn't be
stopped.NodeUnreachableException - Raised if the node could not be
reached.DeploymentException - Raised if the server couldn't be
deployed on the node.void patchServer_async(AMD_Admin_patchServer __cb, java.lang.String id, boolean shutdown) throws DeploymentException, NodeUnreachableException, PatchException, ServerNotExistException
__cb - The callback object for the operation.id - The server id.shutdown - If true, servers depending on the data to patch
will be shut down if necessary.ServerNotExistException - Raised if the server doesn't
exist.NodeUnreachableException - Raised if the node could not be
reached.DeploymentException - Raised if the server couldn't be
deployed on the node.PatchException - Raised if the patch failed.void sendSignal(java.lang.String id,
java.lang.String signal)
throws BadSignalException,
DeploymentException,
NodeUnreachableException,
ServerNotExistException
id - The server id.signal - The signal, for example SIGTERM or 15.ServerNotExistException - Raised if the server doesn't
exist.NodeUnreachableException - Raised if the node could not be
reached.DeploymentException - Raised if the server couldn't be
deployed on the node.BadSignalException - Raised if the signal is not recognized
by the target server.java.lang.String[] getAllServerIds()
AdapterInfo[] getAdapterInfo(java.lang.String id) throws AdapterNotExistException
id - The adapter id.AdapterNotExistException - Raised if the adapter or
replica group doesn't exist.void removeAdapter(java.lang.String id)
throws AdapterNotExistException,
DeploymentException
id - The adapter id.AdapterNotExistException - Raised if the adapter doesn't
exist.DeploymentException - Raised if application deployment failed.java.lang.String[] getAllAdapterIds()
void addObject(Ice.ObjectPrx obj) throws DeploymentException, ObjectExistsException
obj - The object to be added to the registry.ObjectExistsException - Raised if the object is already
registered.DeploymentException - Raised if the object can't be
added. This might be raised if the invocation on the proxy to
get the object type failed.void updateObject(Ice.ObjectPrx obj) throws DeploymentException, ObjectNotRegisteredException
obj - The object to be updated to the registry.ObjectNotRegisteredException - Raised if the object isn't
registered with the registry.DeploymentException - Raised if the object can't be
updated. This might happen if the object was added with a
deployment descriptor.void addObjectWithType(Ice.ObjectPrx obj, java.lang.String type) throws DeploymentException, ObjectExistsException
obj - The object to be added to the registry.type - The object type.ObjectExistsException - Raised if the object is already
registered.DeploymentException - Raised if application deployment failed.void removeObject(Ice.Identity id) throws DeploymentException, ObjectNotRegisteredException
id - The identity of the object to be removed from the
registry.ObjectNotRegisteredException - Raised if the object isn't
registered with the registry.DeploymentException - Raised if the object can't be
removed. This might happen if the object was added with a
deployment descriptor.ObjectInfo getObjectInfo(Ice.Identity id) throws ObjectNotRegisteredException
id - The identity of the object.ObjectNotRegisteredException - Raised if the object isn't
registered with the registry.ObjectInfo[] getObjectInfosByType(java.lang.String type)
type - The type of the object.ObjectInfo[] getAllObjectInfos(java.lang.String expr)
expr - The expression to match against the stringified
identities of registered objects. The expression may contain
a trailing wildcard (*) character.boolean pingNode(java.lang.String name)
throws NodeNotExistException
name - The node name.NodeNotExistException - Raised if the node doesn't exist.LoadInfo getNodeLoad(java.lang.String name) throws NodeNotExistException, NodeUnreachableException
name - The node name.NodeNotExistException - Raised if the node doesn't exist.NodeUnreachableException - Raised if the node could not be
reached.NodeInfo getNodeInfo(java.lang.String name) throws NodeNotExistException, NodeUnreachableException
name - The node name.NodeNotExistException - Raised if the node doesn't exist.NodeUnreachableException - Raised if the node could not be
reached.Ice.ObjectPrx getNodeAdmin(java.lang.String name) throws NodeNotExistException, NodeUnreachableException
name - The IceGrid node nameNodeNotExistException - Raised if the node doesn't exist.NodeUnreachableException - Raised if the node could not be
reached.int getNodeProcessorSocketCount(java.lang.String name)
throws NodeNotExistException,
NodeUnreachableException
name - The node name.NodeNotExistException - Raised if the node doesn't exist.NodeUnreachableException - Raised if the node could not be
reached.void shutdownNode(java.lang.String name)
throws NodeNotExistException,
NodeUnreachableException
name - The node name.NodeNotExistException - Raised if the node doesn't exist.NodeUnreachableException - Raised if the node could not be
reached.java.lang.String getNodeHostname(java.lang.String name)
throws NodeNotExistException,
NodeUnreachableException
name - The node name.NodeNotExistException - Raised if the node doesn't exist.NodeUnreachableException - Raised if the node could not be
reached.java.lang.String[] getAllNodeNames()
boolean pingRegistry(java.lang.String name)
throws RegistryNotExistException
name - The registry name.RegistryNotExistException - Raised if the registry doesn't exist.RegistryInfo getRegistryInfo(java.lang.String name) throws RegistryNotExistException, RegistryUnreachableException
name - The registry name.RegistryNotExistException - Raised if the registry doesn't exist.RegistryUnreachableException - Raised if the registry could not be
reached.Ice.ObjectPrx getRegistryAdmin(java.lang.String name) throws RegistryNotExistException
name - The registry nameRegistryNotExistException - Raised if the registry doesn't exist.void shutdownRegistry(java.lang.String name)
throws RegistryNotExistException,
RegistryUnreachableException
name - The registry name.RegistryNotExistException - Raised if the registry doesn't exist.RegistryUnreachableException - Raised if the registry could not be
reached.java.lang.String[] getAllRegistryNames()
void shutdown()
java.util.Map<java.lang.String,java.lang.String> getSliceChecksums()