|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.contexts.LocalInstanceContext
public class LocalInstanceContext
| Method Summary | |
|---|---|
Collection<GCUBERunningInstance> |
getAllInstances()
Gets all the instances registered in this context |
List<GCUBERunningInstance> |
getAllInstancesForPlatform(PlatformDescription platform)
Gets all the instances belonging to the platform |
static LocalInstanceContext |
getContext()
|
GCUBERunningInstance |
getInstance(String id)
Gets the registered instance given its ID |
GCUBERunningInstance |
getInstance(String clazz,
String name)
Gets a registered instance |
void |
registerInstance(GCUBERunningInstance instance)
Registers the instance in the context |
void |
unregisterInstance(GCUBERunningInstance instance)
Unregisters the instance from the context |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static LocalInstanceContext getContext()
public void registerInstance(GCUBERunningInstance instance)
throws Exception
instance -
Exceptionpublic void unregisterInstance(GCUBERunningInstance instance)
instance -
public GCUBERunningInstance getInstance(String id)
throws Exception
id -
Exception
public GCUBERunningInstance getInstance(String clazz,
String name)
throws Exception
clazz - the class of the instancename - the name of the instance
Exceptionpublic Collection<GCUBERunningInstance> getAllInstances()
public List<GCUBERunningInstance> getAllInstancesForPlatform(PlatformDescription platform)
platform - the filtering platform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||