public class Deploy extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.gcube.common.core.utils.logging.GCUBELog |
log |
protected static Properties |
resources |
static String |
SCOPE |
| Constructor and Description |
|---|
Deploy(String scope)
base constructor
|
Deploy(String scope,
long deploymentWaitingTime)
base constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
deploy(org.gcube.common.core.resources.GCUBEService service,
String ghnID,
String ghnName,
String rmGHNName,
String rmGHNPort) |
String |
deployServices(String vreGhnName,
String vreGhnPort,
String serviceTemplate)
Contact the ResourceManager to deploy one/more services
|
String |
getDeploymentReport(String vreGhnName,
String vreGhnPort,
String scope,
String deploymentId)
Contacts the VREManager to get a deployment report
|
static ServiceInfo |
getServiceNameAndClass(String testName)
Create a ServiceInfo object given the Etics testName
|
boolean |
isWSRFService(org.gcube.common.core.resources.GCUBEService service)
Check if the given SA contains a WSRF Service
|
static void |
logDebug(String logString)
local logger
|
static void |
logError(String logString)
local logger
|
static void |
logError(String logString,
Exception e)
local logger
|
static void |
logInfo(String logString)
local logger
|
static void |
main(String[] args)
Main
|
static String |
prepareDeploymentServiceTemplate(String serviceName,
String serviceClass,
String ghnName,
String version)
Create the ResourceManager input for Deployment
|
static String |
prepareUnDeploymentServiceTemplate(String serviceName,
String serviceClass,
String version,
String ghnName)
Create the ResourceManager input for Deployment
|
String |
removeVRE(String vreGhnName,
String vreGhnPort,
String scope)
Contact the ResourceManager to undeploy one/more services
|
void |
undeploy(org.gcube.common.core.resources.GCUBEService service,
String ghnID,
String ghnName,
String rmGHNName,
String rmGHNPort,
String unDeploymentId) |
String |
undeployLibraries(String vreGhnName,
String vreGhnPort,
String serviceTemplate)
Contact the ResourceManager to undeploy one/more libraries
|
String |
undeployServices(String vreGhnName,
String vreGhnPort,
String serviceTemplate)
Contact the ResourceManager to undeploy one/more services
|
protected static Properties resources
public static String SCOPE
public static org.gcube.common.core.utils.logging.GCUBELog log
public Deploy(String scope)
public Deploy(String scope, long deploymentWaitingTime)
public static void logInfo(String logString)
logString - public static void logDebug(String logString)
logString - public static void logError(String logString)
logString - public static void logError(String logString, Exception e)
logString - public static ServiceInfo getServiceNameAndClass(String testName)
testName - the Etics test namepublic static String prepareDeploymentServiceTemplate(String serviceName, String serviceClass, String ghnName, String version)
testName - the Etics test nameGHNId - the target GHN idpublic static String prepareUnDeploymentServiceTemplate(String serviceName, String serviceClass, String version, String ghnName)
testName - the Etics test nameGHNId - the target GHN idpublic boolean isWSRFService(org.gcube.common.core.resources.GCUBEService service)
service - the Service profile related to the SApublic String getDeploymentReport(String vreGhnName, String vreGhnPort, String scope, String deploymentId)
vreGhnName - the VREManager host namevreGhnPort - the VREManager host portscope - the VREManager scopedeploymentId - the related deployment idpublic String deployServices(String vreGhnName, String vreGhnPort, String serviceTemplate) throws org.gcube.common.core.faults.GCUBEFault, RemoteException
vreGhnName - the ResourceManager host namevreGhnPort - the ResourceManager portserviceTemplate - the service template to useorg.gcube.common.core.faults.GCUBEFault - in case of error to contact the ResourceManagerRemoteException - in case of error to contact the ResourceManagerpublic String undeployLibraries(String vreGhnName, String vreGhnPort, String serviceTemplate) throws org.gcube.common.core.faults.GCUBEFault, RemoteException
vreGhnName - the ResourceManager host namevreGhnPort - the ResourceManager portserviceTemplate - the service template to useorg.gcube.common.core.faults.GCUBEFault - in case of error to contact the ResourceManagerRemoteException - in case of error to contact the ResourceManagerpublic String removeVRE(String vreGhnName, String vreGhnPort, String scope) throws org.gcube.common.core.faults.GCUBEFault, RemoteException
vreGhnName - the ResourceManager host namevreGhnPort - the ResourceManager portserviceTemplate - the service template to useorg.gcube.common.core.faults.GCUBEFault - in case of error to contact the ResourceManagerRemoteException - in case of error to contact the ResourceManagerpublic String undeployServices(String vreGhnName, String vreGhnPort, String serviceTemplate) throws org.gcube.common.core.faults.GCUBEFault, RemoteException
vreGhnName - the ResourceManager host namevreGhnPort - the ResourceManager portserviceTemplate - the service template to useorg.gcube.common.core.faults.GCUBEFault - in case of error to contact the ResourceManagerRemoteException - in case of error to contact the ResourceManagerpublic void undeploy(org.gcube.common.core.resources.GCUBEService service,
String ghnID,
String ghnName,
String rmGHNName,
String rmGHNPort,
String unDeploymentId)
throws Exception
Exceptionpublic String deploy(org.gcube.common.core.resources.GCUBEService service, String ghnID, String ghnName, String rmGHNName, String rmGHNPort) throws Exception
Exceptionpublic static void main(String[] args) throws Exception
args - Client input parameters (testName, GHNID, ResourceManager host, ResourceManager port)InterruptedExceptionExceptionCopyright © 2012. All Rights Reserved.