Examples of createClient()


Examples of org.jboss.as.controller.ModelController.createClient()

    }

    @Override
    public void start(StartContext startContext) throws StartException {
        ModelController modelController = injectedController.getValue();
        modelControllerClient = modelController.createClient(Executors.newCachedThreadPool());
        serverDeploymentManager = ServerDeploymentManager.Factory.create(modelControllerClient);

        ModuleContext syscontext = injectedModuleContext.getValue();
        registration = syscontext.registerService(ResourceInstaller.class, this, null);
    }
View Full Code Here

Examples of org.jboss.as.controller.ModelController.createClient()

    }

    @Override
    public void start(StartContext startContext) throws StartException {
        ModelController modelController = injectedController.getValue();
        modelControllerClient = modelController.createClient(Executors.newCachedThreadPool());
        serverDeploymentManager = ServerDeploymentManager.Factory.create(modelControllerClient);

        ModuleContext syscontext = injectedModuleContext.getValue();
        registration = syscontext.registerService(ResourceInstaller.class, this, null);
    }
View Full Code Here

Examples of org.jboss.as.controller.ModelController.createClient()

     * @throws StartException If any errors occur
     */
    public synchronized void start(StartContext context) throws StartException {
        final ModelController modelController = modelControllerValue.getValue();
        final ExecutorService executorService = executorServiceValue.getValue();
        final ModelControllerClient modelControllerClient = modelController.createClient(executorService);
        socketBindingManager = injectedSocketBindingManager.getOptionalValue();

        final SecurityRealmService securityRealmService = securityRealmServiceValue.getOptionalValue();

        InetSocketAddress bindAddress = null;
View Full Code Here

Examples of org.jboss.as.controller.ModelController.createClient()

                    serviceContainer = future.get();

                    final Value<ModelController> controllerService = (Value<ModelController>) serviceContainer.getRequiredService(Services.JBOSS_SERVER_CONTROLLER);
                    final ModelController controller = controllerService.getValue();
                    serverDeploymentManager = new ModelControllerServerDeploymentManager(controller);
                    modelControllerClient = controller.createClient(Executors.newCachedThreadPool());

                    context = new InitialContext();
                } catch (RuntimeException rte) {
                    throw rte;
                } catch (Exception ex) {
View Full Code Here

Examples of org.jclouds.chef.ChefApi.createClient()

      PrivateKey privateKey = createMock(PrivateKey.class);

      ClientForGroup fn = new ClientForGroup(chefApi);

      expect(chefApi.listClients()).andReturn(ImmutableSet.<String> of());
      expect(chefApi.createClient("foo-client-00")).andReturn(client);
      expect(client.getPrivateKey()).andReturn(privateKey);

      replay(client);
      replay(chefApi);
View Full Code Here

Examples of org.jclouds.chef.ChefApi.createClient()

      ClientForGroup fn = new ClientForGroup(chefApi);

      expect(chefApi.listClients()).andReturn(
            ImmutableSet.<String> of("foo-client-00", "foo-client-01", "foo-client-02"));
      expect(chefApi.createClient("foo-client-03")).andReturn(client);
      expect(client.getPrivateKey()).andReturn(privateKey);

      replay(client);
      replay(chefApi);
View Full Code Here

Examples of org.jclouds.chef.ChefApi.createClient()

      PrivateKey privateKey = createMock(PrivateKey.class);

      ClientForGroup fn = new ClientForGroup(chefApi);

      expect(chefApi.listClients()).andReturn(ImmutableSet.<String> of("foo-client-00", "foo-client-02"));
      expect(chefApi.createClient("foo-client-01")).andReturn(client);
      expect(client.getPrivateKey()).andReturn(privateKey);

      replay(client);
      replay(chefApi);
View Full Code Here

Examples of org.jibx.ws.protocol.Protocol.createClient()

            System.out.println("Connecting to service at " + path + " using protocol " + protocol);
            Protocol p = ProtocolDirectory.getProtocol(protocol);
            MessageOptions options = new MessageOptions();
            options.setOutMediaTypeCode(reqtype);
            options.setInMediaTypeCodes(rsptypes);
            return p.createClient(path, fact, options);
        } catch (Exception ex) {
            ex.printStackTrace(System.err);
            throw new RuntimeException("Error: " + ex.getMessage(), ex);
        }
    }
View Full Code Here

Examples of org.jtestserver.common.protocol.udp.UDPProtocol.createClient()

        Config config = new ConfigReader().read(ConfigurationUtils.getConfigurationFile());
        InetAddress serverAddress = InetAddress.getByName(config.getServerName());
        int serverPort = config.getServerPort();       
        Protocol<?> protocol = new UDPProtocol(); //TODO create protocol from a config parameter
       
        Client<?, ?> client = protocol.createClient(serverAddress, serverPort);
        client.setTimeout(config.getClientTimeout());
       
        return new TestDriver(config, client);
    }
   
View Full Code Here

Examples of org.jtestserver.common.protocol.udp.UDPProtocol.createClient()

                public void run() {
                    s.start();
                }
            } .start();

            client = protocol.createClient(InetAddress.getLocalHost(), port);
            TestClient testClient = new DefaultTestClient(client);
           
            RunResult result = testClient.runMauveTest(MAUVE_TEST);
            assertNotNull(result);
        } finally {
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.