use of org.jclouds.scriptbuilder.functionloader.osgi.BundleFunctionLoader in project whirr by apache.
the class Activator method start.
/**
* Called when this bundle is started so the Framework can perform the
* bundle-specific activities necessary to start this bundle. This method
* can be used to register services or to allocate any resources that this
* bundle needs.
* <p/>
* <p/>
* This method must complete and return to its caller in a timely manner.
*
* @param context The execution context of the bundle being started.
* @throws Exception If this method throws an exception, this
* bundle is marked as stopped and the Framework will remove this
* bundle's listeners, unregister all services registered by this
* bundle, and release all services used by this bundle.
*/
@Override
public void start(BundleContext context) throws Exception {
// Initialize OSGi based FunctionLoader
functionLoader = new BundleFunctionLoader(context);
functionLoader.start();
Properties nodeManagerProps = new Properties();
nodeManagerProps.put("name", "yarn-nodemanager");
nodeManagerRegistration = context.registerService(ClusterActionHandler.class.getName(), nodeManagerClusterActionHandler, nodeManagerProps);
Properties resourceManagerProps = new Properties();
resourceManagerProps.put("name", "yarn-resourcemanager");
resourceManagerRegistration = context.registerService(ClusterActionHandler.class.getName(), resourceManagerClusterActionHandler, resourceManagerProps);
}
use of org.jclouds.scriptbuilder.functionloader.osgi.BundleFunctionLoader in project whirr by apache.
the class Activator method start.
/**
* Called when this bundle is started so the Framework can perform the
* bundle-specific activities necessary to start this bundle. This method
* can be used to register services or to allocate any resources that this
* bundle needs.
* <p/>
* <p/>
* This method must complete and return to its caller in a timely manner.
*
* @param context The execution context of the bundle being started.
* @throws Exception If this method throws an exception, this
* bundle is marked as stopped and the Framework will remove this
* bundle's listeners, unregister all services registered by this
* bundle, and release all services used by this bundle.
*/
@Override
public void start(BundleContext context) throws Exception {
// Initialize OSGi based FunctionLoader
functionLoader = new BundleFunctionLoader(context);
functionLoader.start();
Properties props = new Properties();
props.put("name", "pig-client");
registration = context.registerService(ClusterActionHandler.class.getName(), clusterActionHandler, props);
}
use of org.jclouds.scriptbuilder.functionloader.osgi.BundleFunctionLoader in project whirr by apache.
the class Activator method start.
/**
* Called when this bundle is started so the Framework can perform the
* bundle-specific activities necessary to start this bundle. This method
* can be used to register services or to allocate any resources that this
* bundle needs.
* <p/>
* <p/>
* This method must complete and return to its caller in a timely manner.
*
* @param context The execution context of the bundle being started.
* @throws Exception If this method throws an exception, this
* bundle is marked as stopped and the Framework will remove this
* bundle's listeners, unregister all services registered by this
* bundle, and release all services used by this bundle.
*/
@Override
public void start(BundleContext context) throws Exception {
// Initialize OSGi based FunctionLoader
functionLoader = new BundleFunctionLoader(context);
functionLoader.start();
Properties props = new Properties();
props.put("name", "solr");
registration = context.registerService(ClusterActionHandler.class.getName(), clusterActionHandler, props);
}
use of org.jclouds.scriptbuilder.functionloader.osgi.BundleFunctionLoader in project whirr by apache.
the class Activator method start.
/**
* Called when this bundle is started so the Framework can perform the
* bundle-specific activities necessary to start this bundle. This method
* can be used to register services or to allocate any resources that this
* bundle needs.
* <p/>
* <p/>
* This method must complete and return to its caller in a timely manner.
*
* @param context The execution context of the bundle being started.
* @throws Exception If this method throws an exception, this
* bundle is marked as stopped and the Framework will remove this
* bundle's listeners, unregister all services registered by this
* bundle, and release all services used by this bundle.
*/
@Override
public void start(BundleContext context) throws Exception {
// Initialize OSGi based FunctionLoader
functionLoader = new BundleFunctionLoader(context);
functionLoader.start();
Properties props = new Properties();
props.put("name", "cassandra");
registration = context.registerService(ClusterActionHandler.class.getName(), clusterActionHandler, props);
}
use of org.jclouds.scriptbuilder.functionloader.osgi.BundleFunctionLoader in project whirr by apache.
the class Activator method start.
/**
* Called when this bundle is started so the Framework can perform the
* bundle-specific activities necessary to start this bundle. This method
* can be used to register services or to allocate any resources that this
* bundle needs.
* <p/>
* <p/>
* This method must complete and return to its caller in a timely manner.
*
* @param context The execution context of the bundle being started.
* @throws Exception If this method throws an exception, this
* bundle is marked as stopped and the Framework will remove this
* bundle's listeners, unregister all services registered by this
* bundle, and release all services used by this bundle.
*/
@Override
public void start(BundleContext context) throws Exception {
// Initialize OSGi based FunctionLoader
functionLoader = new BundleFunctionLoader(context);
functionLoader.start();
}
Aggregations