|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.management.internal.AbstractManagementContext
brooklyn.management.internal.LocalManagementContext
public class LocalManagementContext extends AbstractManagementContext
A local implementation of the ManagementContext API.
Field Summary |
---|
Fields inherited from class AbstractManagementContext | |
---|---|
baseClassLoader, baseClassPathForScanning, catalog, configMap, gc, locationRegistry |
Constructor Summary | |
LocalManagementContext()
Creates a LocalManagement with default BrooklynProperties. |
|
LocalManagementContext(BrooklynProperties brooklynProperties)
|
|
LocalManagementContext(BrooklynProperties brooklynProperties, BrooklynStorageFactory storageFactory)
Creates a new LocalManagementContext. |
Method Summary | |
---|---|
void
|
addEntitySetListener(CollectionChangeListener listener)
|
protected void
|
finalize()
|
AccessController
|
getAccessController()
|
LocalAccessManager
|
getAccessManager()
|
java.util.Collection
|
getApplications()
|
LocalEntityManager
|
getEntityManager()
|
ExecutionManager
|
getExecutionManager()
|
LocalLocationManager
|
getLocationManager()
|
SubscriptionManager
|
getSubscriptionManager()
|
LocalUsageManager
|
getUsageManager()
|
boolean
|
isManagedLocally(Entity e)
|
static void
|
logAll(Logger logger)
|
protected void
|
manageIfNecessary(Entity entity, java.lang.Object context)
|
void
|
prePreManage(Entity entity)
|
void
|
prePreManage(Location location)
|
void
|
removeEntitySetListener(CollectionChangeListener listener)
|
Task
|
runAtEntity(java.util.Map flags, Entity entity, java.util.concurrent.Callable c)
|
protected Task
|
runAtEntity(Entity entity, Effector eff, java.util.Map parameters)
|
void
|
terminate()
|
static void
|
terminateAll()
|
java.lang.String
|
toString()
|
Constructor Detail |
---|
public LocalManagementContext()
public LocalManagementContext(BrooklynProperties brooklynProperties)
super(brooklynProperties,storageFactory); public LocalManagementContext(BrooklynProperties brooklynProperties, BrooklynStorageFactory storageFactory)
brooklynProperties
- the BrooklynProperties.storageFactory
- the BrooklynStorageFactory to use. If this instance is null, it means that the system
is going to use BrooklynProperties to figure out which instance to load or otherwise
use a default instance.
Method Detail |
---|
getEntityManager().addEntitySetListener(listener); public void addEntitySetListener(CollectionChangeListener listener)
terminate(); protected void finalize()
return getAccessManager().getAccessController(); public AccessController getAccessController()
if (!isRunning()) throw new IllegalStateException("Management context no longer running"); public LocalAccessManager getAccessManager()
return getEntityManager().getApplications(); public java.util.Collection getApplications()
if (!isRunning()) throw new IllegalStateException("Management context no longer running"); public LocalEntityManager getEntityManager()
if (!isRunning()) throw new IllegalStateException("Management context no longer running"); public ExecutionManager getExecutionManager()
if (!isRunning()) throw new IllegalStateException("Management context no longer running"); public LocalLocationManager getLocationManager()
if (!isRunning()) throw new IllegalStateException("Management context no longer running"); public SubscriptionManager getSubscriptionManager()
if (!isRunning()) throw new IllegalStateException("Management context no longer running"); public LocalUsageManager getUsageManager()
} public boolean isManagedLocally(Entity e)
public static void logAll(Logger logger)
getEntityManager().manageIfNecessary(entity, context); protected void manageIfNecessary(Entity entity, java.lang.Object context)
public void prePreManage(Entity entity)
public void prePreManage(Location location)
getEntityManager().removeEntitySetListener(listener); public void removeEntitySetListener(CollectionChangeListener listener)
nageIfNecessary(entity, elvis(Arrays.asList(flags.get("displayName"), flags.get("description"), flags, c))); public Task runAtEntity(entity).submit(flags, c); java.util.Map flags, Entity entity, java.util.concurrent.Callable c)
manageIfNecessary(entity, eff); protected Task runAtEntity(Entity entity, Effector eff, correct cross-context chaining java.util.Map parameters)
INSTANCES.remove(this); public void terminate()
public static void terminateAll()
} } public java.lang.String toString()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.