All Downloads are FREE. Search and download functionalities are using the official Maven repository.

brooklyn.management.internal.ManagementContextInternal Maven / Gradle / Ivy

There is a newer version: 0.7.0-M1
Show newest version
package brooklyn.management.internal;

import java.net.URL;
import java.util.Map;
import java.util.concurrent.ExecutionException;

import brooklyn.config.ConfigKey;
import brooklyn.entity.Effector;
import brooklyn.entity.Entity;
import brooklyn.entity.basic.ConfigKeys;
import brooklyn.internal.storage.BrooklynStorage;
import brooklyn.management.ManagementContext;
import brooklyn.management.Task;

public interface ManagementContextInternal extends ManagementContext {

    public static final String EFFECTOR_TAG = "EFFECTOR";
    public static final String NON_TRANSIENT_TASK_TAG = "NON-TRANSIENT";

    public static final ConfigKey BROOKLYN_CATALOG_URL = ConfigKeys.newStringConfigKey("brooklyn.catalog.url",
            "The URL of a catalog.xml descriptor; absent for default (~/.brooklyn/catalog.xml), " +
            "or empty for no URL (use default scanner)", "file://~/.brooklyn/catalog.xml");
    
    ClassLoader getBaseClassLoader();

    Iterable getBaseClassPathForScanning();

    void setBaseClassPathForScanning(Iterable urls);

    void addEntitySetListener(CollectionChangeListener listener);

    void removeEntitySetListener(CollectionChangeListener listener);

    void terminate();
    
    long getTotalEffectorInvocations();

     T invokeEffectorMethodSync(final Entity entity, final Effector eff, final Object args) throws ExecutionException;
    
     Task invokeEffector(final Entity entity, final Effector eff, @SuppressWarnings("rawtypes") final Map parameters);

    BrooklynStorage getStorage();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy