org.gcube.vremanagement.resourcemanager.impl.resources
Class ScopedResourceFactory
java.lang.Object
org.gcube.vremanagement.resourcemanager.impl.resources.ScopedResourceFactory
public class ScopedResourceFactory
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScopedResourceFactory
public ScopedResourceFactory()
setResourceList
public static void setResourceList(ScopeState list)
newResource
public static ScopedResource newResource(java.lang.String id,
java.lang.String type,
GCUBEScope scope)
throws java.lang.Exception
- Creates a new
ScopedResource
- Parameters:
id - the gCube Resource identifiertype - the resource typescope - the GCUBEScope assigned to the resource
- Returns:
- the resource
- Throws:
java.lang.Exception
getRelatedService
public static ScopedDeployedService getRelatedService(ScopedRunningInstance scopedRunningInstance)
throws ScopedResourceFactory.ServiceNotFoundException
- Gets the service that originates the RI, if any
- Parameters:
scopedRunningInstance -
- Returns:
- the service
- Throws:
ScopedResourceFactory.ServiceNotFoundException