Examples of produce()


Examples of org.apache.karaf.cellar.core.event.EventProducer.produce()

        // broadcast the event
        EventProducer producer = eventTransportFactory.getEventProducer(groupName, true);
        RemoteBundleEvent event = new RemoteBundleEvent(symbolicName, version, null, BundleEvent.UNINSTALLED);
        event.setForce(true);
        event.setSourceGroup(group);
        producer.produce(event);
    }

    public void start(String groupName, String symbolicName, String version) throws Exception {
        Group group = groupManager.findGroupByName(groupName);
View Full Code Here

Examples of org.apache.karaf.cellar.core.event.EventProducer.produce()

        // broadcast the event
        EventProducer producer = eventTransportFactory.getEventProducer(groupName, true);
        RemoteBundleEvent event = new RemoteBundleEvent(symbolicName, version, null, BundleEvent.STARTED);
        event.setForce(true);
        event.setSourceGroup(group);
        producer.produce(event);
    }

    public void stop(String groupName, String symbolicName, String version) throws Exception {
        Group group = groupManager.findGroupByName(groupName);
View Full Code Here

Examples of org.apache.karaf.cellar.core.event.EventProducer.produce()

        // broadcast the event
        EventProducer producer = eventTransportFactory.getEventProducer(groupName, true);
        RemoteBundleEvent event = new RemoteBundleEvent(symbolicName, version, null, BundleEvent.STOPPED);
        event.setForce(true);
        event.setSourceGroup(group);
        producer.produce(event);
    }

    public TabularData getBundles(String groupName) throws Exception {
        CompositeType compositeType = new CompositeType("Bundle", "Karaf Cellar bundle",
                new String[]{"name", "version", "status", "location"},
View Full Code Here

Examples of org.apache.karaf.cellar.core.event.EventProducer.produce()

        Group group = groupManager.findGroupByName(groupName);
        EventProducer producer = eventTransportFactory.getEventProducer(groupName,true);
        RemoteFeaturesEvent event = new RemoteFeaturesEvent(name, version, FeatureEvent.EventType.FeatureInstalled);
        event.setForce(true);
        event.setSourceGroup(group);
        producer.produce(event);
    }

    public void install(String groupName, String name) throws Exception {
        this.install(groupName, name, null);
    }
View Full Code Here

Examples of org.apache.karaf.cellar.core.event.EventProducer.produce()

        Group group = groupManager.findGroupByName(groupName);
        EventProducer producer = eventTransportFactory.getEventProducer(groupName,true);
        RemoteFeaturesEvent event = new RemoteFeaturesEvent(name, version, FeatureEvent.EventType.FeatureUninstalled);
        event.setForce(true);
        event.setSourceGroup(group);
        producer.produce(event);
    }

    public void uninstall(String groupName, String name) throws Exception {
        this.uninstall(groupName, name, null);
    }
View Full Code Here

Examples of org.apache.karaf.cellar.core.event.EventProducer.produce()

        Group group = groupManager.findGroupByName(groupName);
        EventProducer producer = clusterManager.getEventProducer(groupName);
        RemoteFeaturesEvent event = new RemoteFeaturesEvent(feature, version, FeatureEvent.EventType.FeatureInstalled);
        event.setForce(true);
        event.setSourceGroup(group);
        producer.produce(event);

        updateFeatureStatus(groupName, feature, version, true);
        return null;
    }
View Full Code Here

Examples of org.apache.karaf.cellar.core.event.EventProducer.produce()

        Group group = groupManager.findGroupByName(groupName);
        EventProducer producer = clusterManager.getEventProducer(groupName);
        RemoteFeaturesEvent event = new RemoteFeaturesEvent(feature, version, FeatureEvent.EventType.FeatureUninstalled);
        event.setForce(true);
        event.setSourceGroup(group);
        producer.produce(event);

        updateFeatureStatus(groupName, feature, version, true);
        return null;
    }
View Full Code Here

Examples of org.apache.s4.comm.zk.ZkQueue.produce()

        if (args[2].equals("p")) {
            System.out.println("Producer");
            for (i = 0; i < max; i++)
                try {
                    q.produce(new Integer(10 + i));
                } catch (KeeperException e) {

                } catch (InterruptedException e) {

                }
View Full Code Here

Examples of org.apache.webbeans.test.component.literals.InstanceTypeLiteralBean.produce()

        Bean<InstanceTypeLiteralBean> bean =  defineManagedBean(InstanceTypeLiteralBean.class);
       
        Object object = getManager().getReference(bean, InstanceTypeLiteralBean.class,getManager().createCreationalContext(bean) );       
        Assert.assertTrue(object instanceof InstanceTypeLiteralBean);
        InstanceTypeLiteralBean beaninstance = (InstanceTypeLiteralBean)object;
        Object produce = beaninstance.produce(0);
        Assert.assertTrue(produce instanceof Instance);
       
        Instance<IntegerOrder> order = (Instance<IntegerOrder>)produce;
        Assert.assertTrue(order.get() instanceof IntegerOrder);
       
View Full Code Here

Examples of org.apache.webbeans.test.component.literals.InstanceTypeLiteralBean.produce()

        Assert.assertTrue(produce instanceof Instance);
       
        Instance<IntegerOrder> order = (Instance<IntegerOrder>)produce;
        Assert.assertTrue(order.get() instanceof IntegerOrder);
       
        produce = beaninstance.produce(1);
        Assert.assertTrue(produce instanceof Instance);

        Instance<StringOrder> order2 = (Instance<StringOrder>)produce;
        Assert.assertTrue(order2.get() instanceof StringOrder);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.