|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.duracloud.client.ServicesManagerImpl
public class ServicesManagerImpl
Allows for communication with DuraService
Constructor Summary | |
---|---|
ServicesManagerImpl(java.lang.String host,
java.lang.String port)
|
|
ServicesManagerImpl(java.lang.String host,
java.lang.String port,
java.lang.String context)
|
Method Summary | |
---|---|
int |
deployService(int serviceId,
java.lang.String serviceHost,
java.lang.String userConfigVersion,
java.util.List<org.duracloud.serviceconfig.user.UserConfigModeSet> userConfigModeSets)
Deploys a service. |
java.util.List<org.duracloud.serviceconfig.ServiceInfo> |
getAvailableServices()
Provides a listing of available services, that is, services which can be deployed. |
java.lang.String |
getBaseURL()
|
org.duracloud.serviceconfig.ServiceInfo |
getDeployedService(int serviceId,
int deploymentId)
Gets a deployed service. |
java.util.Map<java.lang.String,java.lang.String> |
getDeployedServiceProps(int serviceId,
int deploymentId)
Gets runtime properties for a deployed service. |
java.util.List<org.duracloud.serviceconfig.ServiceInfo> |
getDeployedServices()
Provides a listing of all deployed services. |
org.duracloud.serviceconfig.ServiceInfo |
getService(int serviceId)
Gets a service. |
void |
login(org.duracloud.common.model.Credential credential)
|
void |
logout()
|
void |
undeployService(int serviceId,
int deploymentId)
UnDeploys a service. |
void |
updateServiceConfig(int serviceId,
int deploymentId,
java.lang.String userConfigVersion,
java.util.List<org.duracloud.serviceconfig.user.UserConfigModeSet> userConfigModeSets)
Updates the configuration of a deployed service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServicesManagerImpl(java.lang.String host, java.lang.String port)
public ServicesManagerImpl(java.lang.String host, java.lang.String port, java.lang.String context)
Method Detail |
---|
public java.lang.String getBaseURL()
public java.util.List<org.duracloud.serviceconfig.ServiceInfo> getAvailableServices() throws org.duracloud.serviceapi.error.ServicesException
getAvailableServices
in interface org.duracloud.serviceapi.ServicesManager
org.duracloud.serviceapi.error.ServicesException
- if available services cannot be retrievedpublic java.util.List<org.duracloud.serviceconfig.ServiceInfo> getDeployedServices() throws org.duracloud.serviceapi.error.ServicesException
getDeployedServices
in interface org.duracloud.serviceapi.ServicesManager
org.duracloud.serviceapi.error.ServicesException
- if deployed services cannot be retrievedpublic org.duracloud.serviceconfig.ServiceInfo getService(int serviceId) throws org.duracloud.serviceapi.error.NotFoundException, org.duracloud.serviceapi.error.ServicesException
getService
in interface org.duracloud.serviceapi.ServicesManager
serviceId
- the ID of the service to retrieve
org.duracloud.serviceapi.error.NotFoundException
- if the service cannot be found
org.duracloud.serviceapi.error.ServicesException
- if the service cannot be retrievedpublic org.duracloud.serviceconfig.ServiceInfo getDeployedService(int serviceId, int deploymentId) throws org.duracloud.serviceapi.error.NotFoundException, org.duracloud.serviceapi.error.ServicesException
getDeployedService
in interface org.duracloud.serviceapi.ServicesManager
serviceId
- the ID of the service to retrievedeploymentId
- the ID of the service deployment to retrieve
org.duracloud.serviceapi.error.NotFoundException
- if either the service or deployment cannot be found
org.duracloud.serviceapi.error.ServicesException
- if the service cannot be retrievedpublic java.util.Map<java.lang.String,java.lang.String> getDeployedServiceProps(int serviceId, int deploymentId) throws org.duracloud.serviceapi.error.NotFoundException, org.duracloud.serviceapi.error.ServicesException
getDeployedServiceProps
in interface org.duracloud.serviceapi.ServicesManager
serviceId
- the ID of the service to retrievedeploymentId
- the ID of the service deployment to retrieve
org.duracloud.serviceapi.error.NotFoundException
- if either the service or deployment cannot be found
org.duracloud.serviceapi.error.ServicesException
- if the service properties cannot be retrievedpublic int deployService(int serviceId, java.lang.String serviceHost, java.lang.String userConfigVersion, java.util.List<org.duracloud.serviceconfig.user.UserConfigModeSet> userConfigModeSets) throws org.duracloud.serviceapi.error.NotFoundException, org.duracloud.serviceapi.error.ServicesException
deployService
in interface org.duracloud.serviceapi.ServicesManager
serviceId
- the ID of the service to deployserviceHost
- the selected service hostuserConfigVersion
- the version of the user configurationuserConfigModeSets
- a list of user configuration options
org.duracloud.serviceapi.error.NotFoundException
- if the service cannot be found
org.duracloud.serviceapi.error.ServicesException
- if the service cannot be deployedpublic void updateServiceConfig(int serviceId, int deploymentId, java.lang.String userConfigVersion, java.util.List<org.duracloud.serviceconfig.user.UserConfigModeSet> userConfigModeSets) throws org.duracloud.serviceapi.error.NotFoundException, org.duracloud.serviceapi.error.ServicesException
updateServiceConfig
in interface org.duracloud.serviceapi.ServicesManager
serviceId
- the ID of the service to updatedeploymentId
- the ID of the service deployment to updateuserConfigVersion
- the version of the user configurationuserConfigModeSets
- updated user configuration options
org.duracloud.serviceapi.error.NotFoundException
- if either the service or deployment cannot be found
org.duracloud.serviceapi.error.ServicesException
- if the service configuration cannot be updatedpublic void undeployService(int serviceId, int deploymentId) throws org.duracloud.serviceapi.error.NotFoundException, org.duracloud.serviceapi.error.ServicesException
undeployService
in interface org.duracloud.serviceapi.ServicesManager
serviceId
- the ID of the service to undeploydeploymentId
- the ID of the service deployment to undeploy
org.duracloud.serviceapi.error.NotFoundException
- if either the service or deployment cannot be found
org.duracloud.serviceapi.error.ServicesException
- if the service cannot be undeployedpublic void login(org.duracloud.common.model.Credential credential)
login
in interface org.duracloud.common.model.Securable
public void logout()
logout
in interface org.duracloud.common.model.Securable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |