Package org.jamesii.core.distributed.masterserver

Examples of org.jamesii.core.distributed.masterserver.MasterServer


   *           the remote exception
   */
  private IMasterServer setUpServers() throws RemoteException {
    SimSystem.report(Level.CONFIG, "Master server runs at " + msAddress);
    LocateRegistry.createRegistry(MasterServer.DEFAULT_PORT);
    IMasterServer server = new MasterServer(masterServName);
    Host.publish(server, MasterServer.DEFAULT_PORT);

    for (int i = 0; i < numberOfServers; i++) {
      SimulationClientThread sct =
          new SimulationClientThread("-server=" + msAddress, "Client" + (i + 1));
View Full Code Here


    @Override
    public void execute() {
      try {
        // start new master server as thread
        LocateRegistry.createRegistry(MasterServer.DEFAULT_PORT);
        MasterServer server =
            new MasterServer(MasterServer.DEFAULT_BINDING_NAME);
        Host.publish(server, MasterServer.DEFAULT_PORT);
        ParameterBlock viewParams = new ParameterBlock();
        viewParams.addSubBlock(ServiceViewFactory.SERVICE, server);
        ServiceViewFactory factory =
            SimSystem.getRegistry().getFactory(
View Full Code Here

TOP

Related Classes of org.jamesii.core.distributed.masterserver.MasterServer

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.