|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.management.internal.AbstractManagementContext
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)
|
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()
|
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()
|
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)
Method for entity to make effector happen with correct semantics (right place, right task context), when a method is called on that entity. |
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)
Causes the indicated runnable to be run at the right location for the given entity. |
void
|
setBaseClassLoader(java.lang.ClassLoader cl)
See getBaseClassLoader(). |
void
|
setBaseClassPathForScanning(java.lang.Iterable urls)
Optional mechanism for setting the classpath which should be scanned by the catalog, if the catalog is scanning the default classpath. |
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 |
---|
protected java.lang.ClassLoader baseClassLoader
protected java.lang.Iterable baseClassPathForScanning
protected BasicBrooklynCatalog catalog
protected BrooklynProperties configMap
protected BrooklynGarbageCollector gc
protected BasicLocationRegistry locationRegistry
Constructor Detail |
---|
public AbstractManagementContext(BrooklynProperties brooklynProperties)
Method Detail |
---|
public void addEntitySetListener(CollectionChangeListener listener)
public java.lang.ClassLoader getBaseClassLoader()
public java.lang.Iterable getBaseClassPathForScanning()
@Override public BrooklynCatalog getCatalog()
@Override public StringConfigMap getConfig()
@Deprecated @Override public java.util.Collection getEntities()
@Deprecated @Override public Entity getEntity(java.lang.String id)
@Override public DownloadResolverManager getEntityDownloadsManager()
@Override public EntityDriverManager getEntityDriverFactory()
@Override public EntityDriverManager getEntityDriverManager()
public ExecutionContext getExecutionContext(Entity e)
@Override public LocationRegistry getLocationRegistry()
@Override public RebindManager getRebindManager()
public SubscriptionContext getSubscriptionContext(Entity e)
public long getTotalEffectorInvocations()
public Task invokeEffector(Entity entity, Effector eff, @SuppressWarnings("rawtypes") java.util.Map parameters)
protected java.lang.Object invokeEffectorMethodLocal(Entity entity, Effector eff, java.lang.Object args)
public java.lang.Object invokeEffectorMethodSync(Entity entity, Effector eff, java.lang.Object args)
@Deprecated @Override public boolean isManaged(Entity e)
public boolean isManagedLocally(Entity e)
public boolean isRunning()
protected void loadCatalog()
@Deprecated @Override public void manage(Entity e)
protected void manageIfNecessary(Entity entity, java.lang.Object context)
public void removeEntitySetListener(CollectionChangeListener listener)
public Task runAtEntity(@SuppressWarnings("rawtypes") java.util.Map flags, Entity entity, java.util.concurrent.Callable c)
public void setBaseClassLoader(java.lang.ClassLoader cl)
public void setBaseClassPathForScanning(java.lang.Iterable urls)
Only settable once, before catalog is loaded.
ClasspathHelper.forJavaClassPath() is often a good argument to pass.
public void terminate()
@Deprecated @Override public void unmanage(Entity e)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.