Brooklyn

brooklyn.management.internal
[Java] Class LocalManagementContext

java.lang.Object
  brooklyn.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()

 
Methods inherited from class AbstractManagementContext
addEntitySetListener, getBaseClassLoader, getBaseClassPathForScanning, getBrooklynProperties, getCatalog, getConfig, getEntities, getEntity, getEntityDownloadsManager, getEntityDriverFactory, getEntityDriverManager, getExecutionContext, getLocationRegistry, getRebindManager, getStorage, getSubscriptionContext, getTotalEffectorInvocations, invokeEffector, invokeEffectorMethodLocal, invokeEffectorMethodSync, isManaged, isManagedLocally, isRunning, loadCatalog, manage, manageIfNecessary, removeEntitySetListener, runAtEntity, runAtEntity, setBaseClassLoader, setBaseClassPathForScanning, terminate, unmanage
 

Constructor Detail

LocalManagementContext

public LocalManagementContext()
Creates a LocalManagement with default BrooklynProperties.


LocalManagementContext

public LocalManagementContext(BrooklynProperties brooklynProperties)


LocalManagementContext

super(brooklynProperties,storageFactory);
public LocalManagementContext(BrooklynProperties brooklynProperties, BrooklynStorageFactory storageFactory)
Creates a new LocalManagementContext.
Parameters:
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

addEntitySetListener

getEntityManager().addEntitySetListener(listener);
public void addEntitySetListener(CollectionChangeListener listener)


finalize

terminate();
protected void finalize()


getAccessController

return getAccessManager().getAccessController();
public AccessController getAccessController()


getAccessManager

if (!isRunning()) throw new IllegalStateException("Management context no longer running");
public LocalAccessManager getAccessManager()


getApplications

return getEntityManager().getApplications();
public java.util.Collection getApplications()


getEntityManager

if (!isRunning()) throw new IllegalStateException("Management context no longer running");
public LocalEntityManager getEntityManager()


getExecutionManager

if (!isRunning()) throw new IllegalStateException("Management context no longer running");
public ExecutionManager getExecutionManager()


getLocationManager

if (!isRunning()) throw new IllegalStateException("Management context no longer running");
public LocalLocationManager getLocationManager()


getSubscriptionManager

if (!isRunning()) throw new IllegalStateException("Management context no longer running");
public SubscriptionManager getSubscriptionManager()


getUsageManager

if (!isRunning()) throw new IllegalStateException("Management context no longer running");
public LocalUsageManager getUsageManager()


isManagedLocally

}
public boolean isManagedLocally(Entity e)


logAll

public static void logAll(Logger logger)


manageIfNecessary

getEntityManager().manageIfNecessary(entity, context);
protected void manageIfNecessary(Entity entity, java.lang.Object context)


prePreManage

public void prePreManage(Entity entity)


prePreManage

public void prePreManage(Location location)


removeEntitySetListener

getEntityManager().removeEntitySetListener(listener);
public void removeEntitySetListener(CollectionChangeListener listener)


runAtEntity

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)


runAtEntity

manageIfNecessary(entity, eff);
protected Task runAtEntity(Entity entity, Effector eff, correct cross-context chaining java.util.Map parameters)


terminate

INSTANCES.remove(this);
public void terminate()


terminateAll

public static void terminateAll()


toString

}
}
public java.lang.String toString()


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.