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