Brooklyn

brooklyn.management.internal
[Java] Class AbstractManagementContext

java.lang.Object
  brooklyn.management.internal.AbstractManagementContext
All Implemented Interfaces:
ManagementContextInternal

public abstract class AbstractManagementContext

Field Summary
protected java.lang.ClassLoader baseClassLoader

protected java.lang.Iterable baseClassPathForScanning

protected BasicBrooklynCatalog catalog

protected BrooklynProperties configMap

protected BrooklynGarbageCollector gc

protected BasicLocationRegistry locationRegistry

 
Constructor Summary
AbstractManagementContext(BrooklynProperties brooklynProperties)

AbstractManagementContext(BrooklynProperties brooklynProperties, BrooklynStorageFactory storageFactory)

 
Method Summary
void addEntitySetListener(CollectionChangeListener listener)

java.lang.ClassLoader getBaseClassLoader()

Optional class-loader that this management context should use as its base, as the first-resort in the catalog, and for scanning (if scanning the default in the catalog).

java.lang.Iterable getBaseClassPathForScanning()

BrooklynProperties getBrooklynProperties()

BrooklynCatalog getCatalog()

StringConfigMap getConfig()

java.util.Collection getEntities()

Entity getEntity(java.lang.String id)

DownloadResolverManager getEntityDownloadsManager()

EntityDriverManager getEntityDriverFactory()

EntityDriverManager getEntityDriverManager()

ExecutionContext getExecutionContext(Entity e)

LocationRegistry getLocationRegistry()

RebindManager getRebindManager()

BrooklynStorage getStorage()

SubscriptionContext getSubscriptionContext(Entity e)

long getTotalEffectorInvocations()

Task invokeEffector(Entity entity, Effector eff, java.util.Map parameters)

protected java.lang.Object invokeEffectorMethodLocal(Entity entity, Effector eff, java.lang.Object args)

java.lang.Object invokeEffectorMethodSync(Entity entity, Effector eff, java.lang.Object args)

boolean isManaged(Entity e)

boolean isManagedLocally(Entity e)

Whether the master entity record is local, and sensors and effectors can be properly accessed locally.

boolean isRunning()

protected void loadCatalog()

void manage(Entity e)

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

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 setBaseClassLoader(java.lang.ClassLoader cl)

void setBaseClassPathForScanning(java.lang.Iterable urls)

@see #setBaseClassPathForScanning(Iterable)

void terminate()

void unmanage(Entity e)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

baseClassLoader

protected java.lang.ClassLoader baseClassLoader


baseClassPathForScanning

protected java.lang.Iterable baseClassPathForScanning


catalog

protected BasicBrooklynCatalog catalog


configMap

protected BrooklynProperties configMap


gc

protected BrooklynGarbageCollector gc


locationRegistry

protected BasicLocationRegistry locationRegistry


 
Constructor Detail

AbstractManagementContext

public AbstractManagementContext(BrooklynProperties brooklynProperties)


AbstractManagementContext

public AbstractManagementContext(BrooklynProperties brooklynProperties, BrooklynStorageFactory storageFactory)


 
Method Detail

addEntitySetListener

@Override
public void addEntitySetListener(CollectionChangeListener listener)


getBaseClassLoader

public java.lang.ClassLoader getBaseClassLoader()
Optional class-loader that this management context should use as its base, as the first-resort in the catalog, and for scanning (if scanning the default in the catalog). In most instances the default classloader (ManagementContext.class.getClassLoader(), assuming this was in the JARs used at boot time) is fine, and in those cases this method normally returns null. (Surefire does some weird stuff, but the default classloader is fine for loading; however it requires a custom base classpath to be set for scanning.)


getBaseClassPathForScanning

public java.lang.Iterable getBaseClassPathForScanning()


getBrooklynProperties

@Override
public BrooklynProperties getBrooklynProperties()


getCatalog

public BrooklynCatalog getCatalog()


getConfig

public synchronized LocationRegistry getLocationRegistry() {
public StringConfigMap getConfig()


getEntities

return getEntityManager().getEntity(id);
}
public java.util.Collection getEntities()


getEntity

return runAtEntity(entity, eff, parameters);
}
public Entity getEntity(java.lang.String id)


getEntityDownloadsManager

}
public DownloadResolverManager getEntityDownloadsManager()


getEntityDriverFactory

public EntityDriverManager getEntityDriverFactory()


getEntityDriverManager

public EntityDriverManager getEntityDriverManager()


getExecutionContext

public ExecutionContext getExecutionContext(Entity e)


getLocationRegistry

public LocationRegistry getLocationRegistry()


getRebindManager

}
public RebindManager getRebindManager()


getStorage

return rebindManager;
public BrooklynStorage getStorage()


getSubscriptionContext

public SubscriptionContext getSubscriptionContext(Entity e)


getTotalEffectorInvocations

public long getTotalEffectorInvocations()


invokeEffector

public Task invokeEffector(Entity entity, Effector eff,  java.util.Map parameters)


invokeEffectorMethodLocal

protected java.lang.Object invokeEffectorMethodLocal(Entity entity, Effector eff, java.lang.Object args)


invokeEffectorMethodSync

public java.lang.Object invokeEffectorMethodSync(Entity entity, Effector eff, java.lang.Object args)


isManaged

getEntityManager().manage(e);
}
public boolean isManaged(Entity e)


isManagedLocally

public boolean isManagedLocally(Entity e)
Whether the master entity record is local, and sensors and effectors can be properly accessed locally.


isRunning

public boolean isRunning()


loadCatalog

protected void loadCatalog()


manage

getEntityManager().unmanage(e);
}
public void manage(Entity e)


manageIfNecessary

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


removeEntitySetListener

}
public void removeEntitySetListener(CollectionChangeListener listener)


runAtEntity

@Override
public Task runAtEntity( java.util.Map flags, Entity entity, java.util.concurrent.Callable c)


runAtEntity

protected Task runAtEntity(Entity entity, Effector eff,  java.util.Map parameters)


setBaseClassLoader

public void setBaseClassLoader(java.lang.ClassLoader cl)


setBaseClassPathForScanning

public void setBaseClassPathForScanning(java.lang.Iterable urls)
See Also:
setBaseClassPathForScanning(Iterable)


terminate

public void terminate()


unmanage

return getEntityManager().getEntities();
}
public void unmanage(Entity e)


 

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