Examples of ServerInfo


Examples of net.md_5.bungee.api.config.ServerInfo

                }
            }
            player.sendMessage( serverList );
        } else
        {
            ServerInfo server = servers.get( args[0] );
            if ( server == null )
            {
                player.sendMessage( ProxyServer.getInstance().getTranslation( "no_server" ) );
            } else if ( !server.canAccess( player ) )
            {
                player.sendMessage( ProxyServer.getInstance().getTranslation( "no_server_permission" ) );
            } else
            {
                player.connect( server );
View Full Code Here

Examples of net.sourceforge.queried.ServerInfo

  public @Override ServerQueryInformation queryServer(InetSocketAddress destination) {
    ServerQueryInformation query = new ServerQueryInformation();
    String ipStr = destination.getAddress().getHostAddress();
    int port = destination.getPort()+1; // UT2004 uses game port + 1 for server query
    long started = System.currentTimeMillis();
    ServerInfo serverInfo = QueriEd.serverQuery("UT2004",ipStr,port);
    query.ping = (int)(System.currentTimeMillis() - started);
    String serverName = null;
    if(serverInfo != null) {
      serverName = serverInfo.getName();
      query.mapName = serverInfo.getMap();
      int realport = Integer.parseInt(serverInfo.getPort());
      if(realport != destination.getPort())
        System.err.println("ERROR: real port from query: " + realport + "  is not the same as current destination port: " + destination.getPort());
      query.setPlayerCount(serverInfo.getPlayerCount());
      query.setMaxPlayerCount(serverInfo.getMaxPlayers());
      System.out.println("Queried server: " + serverName);
    } else
      System.err.println("Unable to query server.");
    query.serverName = serverName;
    return query;
View Full Code Here

Examples of org.apache.airavata.gsi.ssh.api.ServerInfo

        GSIAuthenticationInfo authenticationInfo
                = new MyProxyAuthenticationInfo(myProxyUserName, myProxyPassword, "myproxy.teragrid.org",
                7512, 17280000, certificateLocation);

        // Server info
        ServerInfo serverInfo = new ServerInfo("ogce", "trestles.sdsc.edu");
        Cluster pbsCluster = null;
        try {
            pbsCluster = new PBSCluster(serverInfo, authenticationInfo, app.getInstalledParentPath());
        } catch (SSHApiException e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
View Full Code Here

Examples of org.apache.aurora.gen.ServerInfo

    Injector injector = Guice.createInjector(
        new AbstractModule() {
          @Override
          protected void configure() {
            bind(CapabilityValidator.class).toInstance(capabilityValidator);
            bind(IServerInfo.class).toInstance(IServerInfo.build(new ServerInfo()));
            MockDecoratedThrift.bindForwardedMock(binder(), mockThrift);
          }
        },
        new AopModule(toggledMethods));
    return injector.getInstance(Iface.class);
View Full Code Here

Examples of org.apache.geronimo.main.ServerInfo

    public void start(BundleContext context) throws Exception {
        String config = System.getProperty(Log4jService.LOG4JSERVICE_CONFIG_PROPERTY);
        if (config != null) {
            ConfigurationAdmin configAdmin = getService(context, ConfigurationAdmin.class);
            if (configAdmin != null) {
                ServerInfo serverInfo = getService(context, ServerInfo.class);
                Configuration configuration = configAdmin.getConfiguration("org.ops4j.pax.logging");               
                service = new OSGiLog4jService(config, 60, serverInfo, configuration);
                service.start();
               
                context.registerService(SystemLog.class.getName(), service, null);
View Full Code Here

Examples of org.apache.geronimo.system.serverinfo.ServerInfo

    }

    protected void setUpSecurity() throws Exception {
        String domainName = "demo-properties-realm";

        ServerInfo serverInfo = new BasicServerInfo(".");

        new SecurityServiceImpl(cl, serverInfo, GeronimoPolicyConfigurationFactory.class.getName(), GeronimoPolicy.class.getName(), null, null, null, null);

        Map<String, Object> options = new HashMap<String, Object>();
        options.put("usersURI", new File(BASEDIR, "src/test/resources/data/users.properties").toURI().toString());
View Full Code Here

Examples of org.apache.geronimo.system.serverinfo.ServerInfo

                null,
                null,
                null);
        engine.doStart();

        ServerInfo serverInfo = new BasicServerInfo(".");
        container = new TomcatContainer(cl, new File(BASEDIR, "target/var/catalina").toString(), null, engine, null, serverInfo, null, null);
        container.doStart();

        connector = new Http11ConnectorGBean("HTTP", null, "localhost", port++, container, serverInfo);
        connector.doStart();
View Full Code Here

Examples of org.apache.geronimo.system.serverinfo.ServerInfo

    }

    protected void setUpSecurity() throws Exception {
        String domainName = "demo-properties-realm";

        ServerInfo serverInfo = new BasicServerInfo(".");

        new SecurityServiceImpl(cl, serverInfo, GeronimoPolicyConfigurationFactory.class.getName(), GeronimoPolicy.class.getName(), null, null, null, null);

        Map<String, Object> options = new HashMap<String, Object>();
        options.put("usersURI", new File(BASEDIR, "src/test/resources/data/users.properties").toURI().toString());
View Full Code Here

Examples of org.apache.geronimo.system.serverinfo.ServerInfo

    protected void setUp() throws Exception {
        cl = this.getClass().getClassLoader();

        configurationBaseURL = cl.getResource("deployables/");

        ServerInfo serverInfo = new BasicServerInfo(".");
        container = new JettyContainerImpl("test:name=JettyContainer", null, new File(BASEDIR, "target/var/jetty").toString(), serverInfo);
        container.doStart();
        connector = new HTTPSocketConnector(container, null);
        connector.setPort(5678);
        connector.setMaxThreads(50);
View Full Code Here

Examples of org.apache.geronimo.system.serverinfo.ServerInfo

        new JettyPOJOWebServiceHolder();
    }

    public void testJettyContainerImpl() throws Exception {
        JettyContainerImpl.getGBeanInfo();
        ServerInfo serverInfo = new BasicServerInfo(".");
        new JettyContainerImpl(null, null, null, serverInfo);
    }
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.