Examples of activateComponent()


Examples of io.fabric8.service.jclouds.JcloudsContainerProvider.activateComponent()

            novafw.activateComponent();
            firewallManagerFactory.bindFirewallSupport(novafw);
           
          // create and activate provider
          JcloudsContainerProvider provider = new JcloudsContainerProvider();
          provider.activateComponent();
            provider.bindFirewallManagerFactory(firewallManagerFactory);

            // get and set the provider name
          String providerName = args.getProviderName();
          args = args.contextName(providerName);
View Full Code Here

Examples of io.fabric8.service.jclouds.firewall.internal.Ec2FirewallSupport.activateComponent()

          // create and activate firewall manager
          FirewallManagerFactoryImpl firewallManagerFactory = new FirewallManagerFactoryImpl();
          firewallManagerFactory.activateComponent();
          Ec2FirewallSupport ec2fw = new Ec2FirewallSupport();
          ec2fw.activateComponent();
            firewallManagerFactory.bindFirewallSupport(ec2fw);
            NovaFirewallSupport novafw = new NovaFirewallSupport();
            novafw.activateComponent();
            firewallManagerFactory.bindFirewallSupport(novafw);
           
View Full Code Here

Examples of io.fabric8.service.jclouds.firewall.internal.FirewallManagerFactoryImpl.activateComponent()

          FabricPlugin.getLogger().debug("============ proxy URI: " + args.getProxyUri());
          FabricPlugin.getLogger().debug("Create cloud fabric: " + fabricName + " container: " + agentName);

          // create and activate firewall manager
          FirewallManagerFactoryImpl firewallManagerFactory = new FirewallManagerFactoryImpl();
          firewallManagerFactory.activateComponent();
          Ec2FirewallSupport ec2fw = new Ec2FirewallSupport();
          ec2fw.activateComponent();
            firewallManagerFactory.bindFirewallSupport(ec2fw);
            NovaFirewallSupport novafw = new NovaFirewallSupport();
            novafw.activateComponent();
View Full Code Here

Examples of io.fabric8.service.jclouds.firewall.internal.NovaFirewallSupport.activateComponent()

          firewallManagerFactory.activateComponent();
          Ec2FirewallSupport ec2fw = new Ec2FirewallSupport();
          ec2fw.activateComponent();
            firewallManagerFactory.bindFirewallSupport(ec2fw);
            NovaFirewallSupport novafw = new NovaFirewallSupport();
            novafw.activateComponent();
            firewallManagerFactory.bindFirewallSupport(novafw);
           
          // create and activate provider
          JcloudsContainerProvider provider = new JcloudsContainerProvider();
          provider.activateComponent();
View Full Code Here

Examples of org.apache.servicemix.jbi.container.JBIContainer.activateComponent()

        trigger.setRepeatInterval(100);
        trigger.setName("trigger");
        trigger.afterPropertiesSet();
        endpoint.setTrigger(trigger);
        quartz.setEndpoints(new QuartzEndpoint[] {endpoint });
        jbi.activateComponent(quartz, "servicemix-quartz");
       
        ReceiverComponent receiver = new ReceiverComponent(new QName("receiver"), "endpoint");
        jbi.activateComponent(receiver, "receiver");
       
        jbi.start();
View Full Code Here

Examples of org.apache.servicemix.jbi.container.JBIContainer.activateComponent()

        endpoint.setTrigger(trigger);
        quartz.setEndpoints(new QuartzEndpoint[] {endpoint });
        jbi.activateComponent(quartz, "servicemix-quartz");
       
        ReceiverComponent receiver = new ReceiverComponent(new QName("receiver"), "endpoint");
        jbi.activateComponent(receiver, "receiver");
       
        jbi.start();

        Thread.sleep(200);
        assertTrue(receiver.getMessageList().flushMessages().size() > 0);
View Full Code Here

Examples of org.apache.servicemix.jbi.container.JBIContainer.activateComponent()

        container.init();
        container.start();
       
        EchoComponent component = new EchoComponent();
        component.setService(new QName("http://foo.bar.com", "myService"));
        container.activateComponent(component, "component");
        ServiceEndpoint ep = component.getContext().activateEndpoint(new QName("http://foo.bar.com", "myService"), "myEndpoint");
        DocumentFragment epr = ep.getAsReference(null);
        ServiceEndpoint ep2 = component.getContext().resolveEndpointReference(epr);
        assertSame(ep, ep2);
    }
View Full Code Here

Examples of org.apache.servicemix.jbi.container.JBIContainer.activateComponent()

        container.init();
        container.start();
       
        EchoComponent component = new EchoComponent();
        component.setService(new QName("http://foo.bar.com", "myService"));
        container.activateComponent(component, "component");
        ServiceEndpoint ep = component.getContext().activateEndpoint(new QName("http://foo.bar.com", "myService"), "myEndpoint");
        DocumentFragment epr = URIResolver.createWSAEPR("endpoint:http://foo.bar.com/myService/myEndpoint");
        ServiceEndpoint ep2 = component.getContext().resolveEndpointReference(epr);
        assertSame(ep, ep2);
    }
View Full Code Here

Examples of org.apache.servicemix.jbi.container.JBIContainer.activateComponent()

        trigger.setRepeatInterval(100);
        trigger.setName("trigger");
        trigger.afterPropertiesSet();
        endpoint.setTrigger(trigger);
        quartz.setEndpoints(new QuartzEndpoint[] {endpoint });
        jbi.activateComponent(quartz, "servicemix-quartz");
       
        ReceiverComponent receiver = new ReceiverComponent(new QName("receiver"), "endpoint");
        jbi.activateComponent(receiver, "receiver");
       
        jbi.start();
View Full Code Here

Examples of org.apache.servicemix.jbi.container.JBIContainer.activateComponent()

        endpoint.setTrigger(trigger);
        quartz.setEndpoints(new QuartzEndpoint[] {endpoint });
        jbi.activateComponent(quartz, "servicemix-quartz");
       
        ReceiverComponent receiver = new ReceiverComponent(new QName("receiver"), "endpoint");
        jbi.activateComponent(receiver, "receiver");
       
        jbi.start();

        Thread.sleep(1000);
        assertTrue(receiver.getMessageList().flushMessages().size() > 0);
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.