Examples of hostname()


Examples of org.jclouds.docker.compute.options.DockerTemplateOptions.hostname()

        if (useHostDns != null && useHostDns) {
            // FIXME does not seem to work on Softlayer, should set HOSTNAME or SUBNET_HOSTNAME
            String hostname = getDockerHost().getAttribute(Attributes.HOSTNAME);
            String address = getDockerHost().getAttribute(Attributes.ADDRESS);
            if (hostname.equalsIgnoreCase(address)) {
                options.hostname(getDockerContainerName());
            } else {
                options.hostname(hostname);
            }
        }
View Full Code Here

Examples of org.jclouds.docker.compute.options.DockerTemplateOptions.hostname()

            String hostname = getDockerHost().getAttribute(Attributes.HOSTNAME);
            String address = getDockerHost().getAttribute(Attributes.ADDRESS);
            if (hostname.equalsIgnoreCase(address)) {
                options.hostname(getDockerContainerName());
            } else {
                options.hostname(hostname);
            }
        }

        // CPU shares
        Integer cpuShares = entity.getConfig(DOCKER_CPU_SHARES);
View Full Code Here

Examples of org.qi4j.library.http.JettyConfiguration.hostName()

            new JettyServiceAssembler().withConfig( configModule, Visibility.layer ).assemble( module );
            // END SNIPPET: assembly

            port = FreePortFinder.findFreePortOnLoopback();
            JettyConfiguration config = module.forMixin( JettyConfiguration.class ).declareDefaults();
            config.hostName().set( "127.0.0.1" );
            config.port().set( port );

            // START SNIPPET: assembly
            new HttpShiroAssembler().
                withConfig( configModule, Visibility.layer ).
View Full Code Here

Examples of org.qi4j.library.http.JettyConfiguration.hostName()

            new JettyServiceAssembler().withConfig( configModule, Visibility.layer ).assemble( module );
            // END SNIPPET: assembly

            port = FreePortFinder.findFreePortOnLoopback();
            JettyConfiguration config = module.forMixin( JettyConfiguration.class ).declareDefaults();
            config.hostName().set( "127.0.0.1" );
            config.port().set( port );

            // START SNIPPET: assembly
            new HttpShiroAssembler().
                withConfig( configModule, Visibility.layer ).
View Full Code Here

Examples of sos.spooler.Supervisor_client.hostname()

        schedulerCommand.setProtocol("tcp");
        spooler_log.debug1(".. connecting to Job Scheduler " + schedulerCommand.getHost() + ":" + schedulerCommand.getPort());
              schedulerCommand.connect();
              schedulerCommand.sendRequest(xml);
              answer = schedulerCommand.getResponse();
      } else if (supervisor!=null && supervisor.hostname()!=null && supervisor.hostname().length()>0){
        SOSSchedulerCommand schedulerCommand = new SOSSchedulerCommand();
        schedulerCommand.setHost(supervisor.hostname());
        schedulerCommand.setPort(supervisor.tcp_port());
        schedulerCommand.setProtocol("tcp");
        spooler_log.debug1(".. connecting to Job Scheduler " + schedulerCommand.getHost() + ":" + schedulerCommand.getPort());
View Full Code Here

Examples of sos.spooler.Supervisor_client.hostname()

        schedulerCommand.setProtocol("tcp");
        spooler_log.debug1(".. connecting to Job Scheduler " + schedulerCommand.getHost() + ":" + schedulerCommand.getPort());
              schedulerCommand.connect();
              schedulerCommand.sendRequest(xml);
              answer = schedulerCommand.getResponse();
      } else if (supervisor!=null && supervisor.hostname()!=null && supervisor.hostname().length()>0){
        SOSSchedulerCommand schedulerCommand = new SOSSchedulerCommand();
        schedulerCommand.setHost(supervisor.hostname());
        schedulerCommand.setPort(supervisor.tcp_port());
        schedulerCommand.setProtocol("tcp");
        spooler_log.debug1(".. connecting to Job Scheduler " + schedulerCommand.getHost() + ":" + schedulerCommand.getPort());
View Full Code Here

Examples of sos.spooler.Supervisor_client.hostname()

              schedulerCommand.connect();
              schedulerCommand.sendRequest(xml);
              answer = schedulerCommand.getResponse();
      } else if (supervisor!=null && supervisor.hostname()!=null && supervisor.hostname().length()>0){
        SOSSchedulerCommand schedulerCommand = new SOSSchedulerCommand();
        schedulerCommand.setHost(supervisor.hostname());
        schedulerCommand.setPort(supervisor.tcp_port());
        schedulerCommand.setProtocol("tcp");
        spooler_log.debug1(".. connecting to Job Scheduler " + schedulerCommand.getHost() + ":" + schedulerCommand.getPort());
              schedulerCommand.connect();
              schedulerCommand.sendRequest(xml);
View Full Code Here

Examples of sos.spooler.Supervisor_client.hostname()

               
                if (this.getParameters().value("supervisor_host") != null && this.getParameters().value("supervisor_host").length() > 0) {
                    this.setEventSupervisorSchedulerHost(this.getParameters().value("supervisor_host"));
                    spooler_log.debug1(".. parameter [supervisor_host]: " + this.getEventSupervisorSchedulerHost());
                } else {
                  if (supervisor.hostname() != null && supervisor.hostname().length() > 0) {
                    this.setEventSupervisorSchedulerHost(supervisor.hostname());
                  } else {
                    this.setEventSupervisorSchedulerHost(spooler.hostname());
                  }
                }
View Full Code Here

Examples of sos.spooler.Supervisor_client.hostname()

               
                if (this.getParameters().value("supervisor_host") != null && this.getParameters().value("supervisor_host").length() > 0) {
                    this.setEventSupervisorSchedulerHost(this.getParameters().value("supervisor_host"));
                    spooler_log.debug1(".. parameter [supervisor_host]: " + this.getEventSupervisorSchedulerHost());
                } else {
                  if (supervisor.hostname() != null && supervisor.hostname().length() > 0) {
                    this.setEventSupervisorSchedulerHost(supervisor.hostname());
                  } else {
                    this.setEventSupervisorSchedulerHost(spooler.hostname());
                  }
                }
View Full Code Here

Examples of sos.spooler.Supervisor_client.hostname()

                if (this.getParameters().value("supervisor_host") != null && this.getParameters().value("supervisor_host").length() > 0) {
                    this.setEventSupervisorSchedulerHost(this.getParameters().value("supervisor_host"));
                    spooler_log.debug1(".. parameter [supervisor_host]: " + this.getEventSupervisorSchedulerHost());
                } else {
                  if (supervisor.hostname() != null && supervisor.hostname().length() > 0) {
                    this.setEventSupervisorSchedulerHost(supervisor.hostname());
                  } else {
                    this.setEventSupervisorSchedulerHost(spooler.hostname());
                  }
                }
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.