public class ServicesManagerImpl extends Object implements ServicesManager, Securable
Constructor and Description |
---|
ServicesManagerImpl(String host,
String port) |
ServicesManagerImpl(String host,
String port,
String context) |
Modifier and Type | Method and Description |
---|---|
int |
deployService(int serviceId,
String serviceHost,
String userConfigVersion,
List<UserConfigModeSet> userConfigModeSets)
Deploys a service.
|
List<ServiceInfo> |
getAvailableServices()
Provides a listing of available services, that is, services which
can be deployed.
|
String |
getBaseURL() |
ServiceInfo |
getDeployedService(int serviceId,
int deploymentId)
Gets a deployed service.
|
Map<String,String> |
getDeployedServiceProps(int serviceId,
int deploymentId)
Gets runtime properties for a deployed service.
|
List<ServiceInfo> |
getDeployedServices()
Provides a listing of all deployed services.
|
ServiceInfo |
getService(int serviceId)
Gets a service.
|
void |
login(Credential credential)
This method supplies user credentials to the application.
|
void |
logout()
This method clears any previously logged-in credentials.
|
void |
undeployService(int serviceId,
int deploymentId)
UnDeploys a service.
|
void |
updateServiceConfig(int serviceId,
int deploymentId,
String userConfigVersion,
List<UserConfigModeSet> userConfigModeSets)
Updates the configuration of a deployed service.
|
public String getBaseURL()
public List<ServiceInfo> getAvailableServices() throws ServicesException
getAvailableServices
in interface ServicesManager
ServicesException
- if available services cannot be retrievedpublic List<ServiceInfo> getDeployedServices() throws ServicesException
getDeployedServices
in interface ServicesManager
ServicesException
- if deployed services cannot be retrievedpublic ServiceInfo getService(int serviceId) throws NotFoundException, ServicesException
getService
in interface ServicesManager
serviceId
- the ID of the service to retrieveNotFoundException
- if the service cannot be foundServicesException
- if the service cannot be retrievedpublic ServiceInfo getDeployedService(int serviceId, int deploymentId) throws NotFoundException, ServicesException
getDeployedService
in interface ServicesManager
serviceId
- the ID of the service to retrievedeploymentId
- the ID of the service deployment to retrieveNotFoundException
- if either the service or deployment cannot be foundServicesException
- if the service cannot be retrievedpublic Map<String,String> getDeployedServiceProps(int serviceId, int deploymentId) throws NotFoundException, ServicesException
getDeployedServiceProps
in interface ServicesManager
serviceId
- the ID of the service to retrievedeploymentId
- the ID of the service deployment to retrieveNotFoundException
- if either the service or deployment cannot be foundServicesException
- if the service properties cannot be retrievedpublic int deployService(int serviceId, String serviceHost, String userConfigVersion, List<UserConfigModeSet> userConfigModeSets) throws NotFoundException, ServicesException
deployService
in interface ServicesManager
serviceId
- the ID of the service to deployserviceHost
- the selected service hostuserConfigVersion
- the version of the user configurationuserConfigModeSets
- a list of user configuration optionsNotFoundException
- if the service cannot be foundServicesException
- if the service cannot be deployedpublic void updateServiceConfig(int serviceId, int deploymentId, String userConfigVersion, List<UserConfigModeSet> userConfigModeSets) throws NotFoundException, ServicesException
updateServiceConfig
in interface 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 optionsNotFoundException
- if either the service or deployment cannot be foundServicesException
- if the service configuration cannot be updatedpublic void undeployService(int serviceId, int deploymentId) throws NotFoundException, ServicesException
undeployService
in interface ServicesManager
serviceId
- the ID of the service to undeploydeploymentId
- the ID of the service deployment to undeployNotFoundException
- if either the service or deployment cannot be foundServicesException
- if the service cannot be undeployedpublic void login(Credential credential)
Securable
Copyright © 2009-2013 DuraSpace. All Rights Reserved.