Package ca.eandb.jdcp.hub

Examples of ca.eandb.jdcp.hub.JobHub


      ds.setDatabaseName("classes");

      JobHub.prepareDataSource(ds);

      logger.info("Initializing service");
      jobHub = new JobHub(ds);
      AuthenticationServer authServer = new AuthenticationServer(jobHub, JdcpUtil.DEFAULT_PORT);

      logger.info("Binding service");
      Registry registry = getRegistry();
      registry.bind("AuthenticationService", authServer);
View Full Code Here


  public void connect(
      @OptionArgument("host") String host,
      @OptionArgument("username") String username,
      @OptionArgument("password") String password) {

    JobHub hub = jobHub;
    if (hub == null) {
      System.err.println("Hub not running.");
    }
    if (host.equals("")) {
      host = "localhost";
    }
    if (username.equals("")) {
      username = "guest";
    }

    System.out.printf("Connecting hub to %s\n", host);
    hub.connect(host, username, password);
  }
View Full Code Here

    hub.connect(host, username, password);
  }

  @CommandArgument
  public void disconnect(@OptionArgument("host") String host) {
    JobHub hub = jobHub;
    if (hub == null) {
      System.err.println("Hub not running.");
    }
    if (host.equals("")) {
      host = "localhost";
    }

    System.out.printf("Disconnecting hub from %s\n", host);
    hub.disconnect(host);
  }
View Full Code Here

TOP

Related Classes of ca.eandb.jdcp.hub.JobHub

Copyright © 2018 www.massapicom. 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.