|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.contentmanagement.contentmanager.stubs.calls.AdminCalls
public class AdminCalls
Wraps a ManagerCall, the inner call, to enable administrative operations over remote collection managers.
| Constructor Summary | |
|---|---|
AdminCalls()
|
|
| Method Summary | |
|---|---|
static java.util.List<java.util.concurrent.Future<RPDocument>> |
deleteAllManagers(java.lang.String collectionID,
GCUBEScope scope,
GCUBESecurityManager... manager)
Deletes the collection managers for a given collection in a given scope and, optionally, with a given security manager. |
static java.util.List<java.util.concurrent.Future<RPDocument>> |
deleteAllManagersByType(ManagerCall call)
Discovers and deletes all the collection managers for the target collection of a ManagerCall. |
static java.util.concurrent.Future<?> |
deleteManager(ManagerCall call)
Delete the collection manager targeted by a given ManagerCall. |
static java.util.List<java.util.concurrent.Future<?>> |
deleteManagers(java.lang.String collectionID,
java.net.URI uri,
GCUBEScope scope,
GCUBESecurityManager... manager)
Deletes the collection managers for a given collection at a given service instance in a given scope and, optionally, with a given security manager. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdminCalls()
| Method Detail |
|---|
public static java.util.List<java.util.concurrent.Future<?>> deleteManagers(java.lang.String collectionID,
java.net.URI uri,
GCUBEScope scope,
GCUBESecurityManager... manager)
throws java.lang.Exception
collectionID - the identifier of the collection.uri - the address of the instance.scope - the scope.manager - (optional) the security manager.
Future outcomes of the operation (ReadManager and WriteManager).
java.lang.Exception - if the operation fails due to a local error.
public static java.util.List<java.util.concurrent.Future<RPDocument>> deleteAllManagers(java.lang.String collectionID,
GCUBEScope scope,
GCUBESecurityManager... manager)
throws org.apache.commons.discovery.DiscoveryException,
java.lang.Exception
collectionID - the identifier of the collection.scope - the scope.manager - (optional) the security manager.
Future outcomes of the operation, one for each target manager.
org.apache.commons.discovery.DiscoveryException - if an error occurred during manager discovery.
java.lang.Exception - if the operation fails due to a local error.
public static java.util.concurrent.Future<?> deleteManager(ManagerCall call)
throws java.lang.IllegalArgumentException
ManagerCall.
call - the call.
Future outcome of the operation.
java.lang.IllegalArgumentException - if the collection or the manager endpoint are not set on the input call.
public static java.util.List<java.util.concurrent.Future<RPDocument>> deleteAllManagersByType(ManagerCall call)
throws java.lang.IllegalArgumentException,
org.apache.commons.discovery.DiscoveryException
ManagerCall.
call - the call.
Future outcomes, one for discovered manager.
java.lang.IllegalArgumentException - if
org.apache.commons.discovery.DiscoveryException - if an error occurred during manager discovery.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||