org.gcube.tools.resourcemanager.client
Class ResourceManager

java.lang.Object
  extended by org.gcube.tools.resourcemanager.client.ResourceManager

public class ResourceManager
extends java.lang.Object

Author:
Andrea Manzi(CERN)

Field Summary
 int resourceManagerDelayMs
           
 int resourceManagerReportDelayMs
           
 
Constructor Summary
ResourceManager(GCUBEScope scope, java.io.File... proxy)
           
 
Method Summary
 java.lang.String addScope(java.lang.String[] resourceIds, java.lang.String type, GCUBEScope scope2)
           
 java.lang.String deployServices(java.util.ArrayList<org.gcube.tools.resourcemanager.util.ServiceDeployment> services, GCUBEScope scope)
          Contact the ResourceManager to deploy one/more services
 java.lang.String getDeploymentID()
           
 org.gcube.tools.resourcemanager.util.ParseDeploymentInformation getDeploymentInfo()
           
 java.lang.String getReport(java.lang.String id, boolean print)
          Contacts the ResourceManager to get a deployment report
 java.lang.String getUndeploymentID()
           
 java.lang.String removeScope(java.lang.String[] resourceIds, java.lang.String type, GCUBEScope scope2)
           
 void setDeploymentID(java.lang.String deploymentID)
           
 void setUndeploymentID(java.lang.String undeploymentID)
           
 java.util.ArrayList<org.gcube.tools.resourcemanager.util.ServiceDeployment> undeployRIs(java.lang.String[] ids, boolean redeploy)
          Contact the ResourceManager to undeploy one/more RIs
 java.lang.String undeploySAs(java.util.ArrayList<org.gcube.tools.resourcemanager.util.ServiceDeployment> services, GCUBEScope scope)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resourceManagerDelayMs

public int resourceManagerDelayMs

resourceManagerReportDelayMs

public int resourceManagerReportDelayMs
Constructor Detail

ResourceManager

public ResourceManager(GCUBEScope scope,
                       java.io.File... proxy)
                throws java.lang.Exception
Parameters:
scope -
proxy -
Throws:
java.lang.Exception
Method Detail

getDeploymentID

public java.lang.String getDeploymentID()

setDeploymentID

public void setDeploymentID(java.lang.String deploymentID)

getUndeploymentID

public java.lang.String getUndeploymentID()

setUndeploymentID

public void setUndeploymentID(java.lang.String undeploymentID)

deployServices

public java.lang.String deployServices(java.util.ArrayList<org.gcube.tools.resourcemanager.util.ServiceDeployment> services,
                                       GCUBEScope scope)
                                throws GCUBEFault,
                                       java.rmi.RemoteException
Contact the ResourceManager to deploy one/more services

Parameters:
serviceTemplate -
Returns:
Throws:
GCUBEFault
java.rmi.RemoteException

undeploySAs

public java.lang.String undeploySAs(java.util.ArrayList<org.gcube.tools.resourcemanager.util.ServiceDeployment> services,
                                    GCUBEScope scope)
                             throws GCUBEFault,
                                    java.rmi.RemoteException
Parameters:
services -
scope -
Returns:
Throws:
GCUBEFault
java.rmi.RemoteException

undeployRIs

public java.util.ArrayList<org.gcube.tools.resourcemanager.util.ServiceDeployment> undeployRIs(java.lang.String[] ids,
                                                                                               boolean redeploy)
                                                                                        throws GCUBEFault,
                                                                                               java.rmi.RemoteException
Contact the ResourceManager to undeploy one/more RIs

Parameters:
id -
scope -
Returns:
Throws:
GCUBEFault
java.rmi.RemoteException

addScope

public java.lang.String addScope(java.lang.String[] resourceIds,
                                 java.lang.String type,
                                 GCUBEScope scope2)
Parameters:
resourceIds -
type -
scope2 -
Returns:

removeScope

public java.lang.String removeScope(java.lang.String[] resourceIds,
                                    java.lang.String type,
                                    GCUBEScope scope2)

getReport

public java.lang.String getReport(java.lang.String id,
                                  boolean print)
Contacts the ResourceManager to get a deployment report

Parameters:
deploymentId - the related deployment id
Returns:
the Deployment report

getDeploymentInfo

public org.gcube.tools.resourcemanager.util.ParseDeploymentInformation getDeploymentInfo()