public class LocalInstanceContext extends Object
| Modifier and Type | Method and Description |
|---|---|
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
|
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 - Exceptionpublic GCUBERunningInstance getInstance(String clazz, String name) throws Exception
clazz - the class of the instancename - the name of the instanceExceptionpublic Collection<GCUBERunningInstance> getAllInstances()
public List<GCUBERunningInstance> getAllInstancesForPlatform(PlatformDescription platform)
platform - the filtering platformCopyright © 2015. All Rights Reserved.