public interface DuracloudInstanceService
| Modifier and Type | Method and Description |
|---|---|
Long |
getAccountId()
Gets the id of the account
|
org.duracloud.account.db.model.DuracloudInstance |
getInstanceInfo()
Gets information about the underlying Duracloud instance.
|
org.duracloud.account.db.model.InstanceType |
getInstanceType()
Returns the hardware type of the instance.
|
String |
getInstanceVersion()
Gets the version of this instance
|
String |
getStatus()
Returns the state of the Duracloud instance.
|
String |
getStatusInternal()
Returns the state of the Duracloud with relaxed security.
|
void |
initialize()
Collects all of the necessary information and initializes a
Duracloud instance
|
void |
reInitialize() |
void |
reInitializeUserRoles() |
void |
restart()
Restarts the server instance and calls initialize
|
void |
setUserRoles(Set<org.duracloud.account.db.model.DuracloudUser> users)
Pushes user role info to the running instance.
|
void |
stop()
Stops the instance.
|
@Secured(value="role:ROLE_ANONYMOUS, scope:ANY") Long getAccountId()
@Secured(value="role:ROLE_ANONYMOUS, scope:ANY") org.duracloud.account.db.model.DuracloudInstance getInstanceInfo()
@Secured(value="role:ROLE_ANONYMOUS, scope:ANY") String getInstanceVersion()
@Secured(value="role:ROLE_USER, scope:SELF_ACCT") String getStatus() throws DuracloudInstanceNotAvailableException
@Secured(value="role:ROLE_ANONYMOUS, scope:ANY")
org.duracloud.account.db.model.InstanceType getInstanceType()
throws DuracloudInstanceNotAvailableException
DuracloudInstanceNotAvailableException@Secured(value="role:ROLE_ANONYMOUS, scope:ANY") String getStatusInternal() throws DuracloudInstanceNotAvailableException
@Secured(value="role:ROLE_ROOT, scope:SELF_ACCT") void stop()
@Secured(value="role:ROLE_ROOT, scope:SELF_ACCT") void restart()
@Secured(value="role:ROLE_ROOT, scope:SELF_ACCT") void initialize()
@Secured(value="role:ROLE_ROOT, scope:ANY") void reInitializeUserRoles()
@Secured(value="role:ROLE_ROOT, scope:ANY") void reInitialize()
@Secured(value="role:ROLE_ANONYMOUS, scope:ANY") void setUserRoles(Set<org.duracloud.account.db.model.DuracloudUser> users)
users - to updateCopyright © 2009–2016 DuraSpace. All rights reserved.