Package org.jamesii.core.hosts.system

Examples of org.jamesii.core.hosts.system.IMSSystemHost


        serverAdress = getServerAddress();
        if (serverAdress == null) {
          return;
        }

        IMSSystemHost server = (IMSSystemHost) Naming.lookup(serverAdress);
        BasicLogView logView =
            new BasicLogView(server.getName(), Contribution.EDITOR, null);
        IRemoteObserver listener = new RemoteLogObserver(logView, true);
        server.registerRemoteObserver(listener);
        getWindowManager().addWindow(logView);
      } catch (Exception e) {
        SimSystem.report(e);
      }
    }
View Full Code Here


          SimSystem.report(Level.INFO, "Error on connecting to " + address);
          SimSystem.report(e);
        }

        if (service instanceof IMSSystemHost) {
          IMSSystemHost host = (IMSSystemHost) service;

          BasicLogView logView;
          try {
            logView =
                new BasicLogView(service.getName(), Contribution.EDITOR, null);

            IRemoteObserver listener = new RemoteLogObserver(logView, true);
            host.registerRemoteObserver(listener);
            getWindowManager().addWindow(logView);
          } catch (RemoteException e) {
            SimSystem.report(e);
          }
        }
View Full Code Here

      String serverAdress = getServerAddress();
      // if (serverAdress == null)
      // return;

      IMSSystemHostInformation serverInfo = null;
      IMSSystemHost server = null;
      String serverName = "";
      try {
        serverInfo = (IMSSystemHostInformation) Naming.lookup(serverAdress);
        server = (IMSSystemHost) Naming.lookup(serverAdress);
        serverName = (server != null) ? server.getName() : "local host";
        getWindowManager().addWindow(
            new ServerInfoView(serverInfo, serverName, Contribution.EDITOR));
      } catch (Exception e) {
        SimSystem.report(e);
      }
View Full Code Here

TOP

Related Classes of org.jamesii.core.hosts.system.IMSSystemHost

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.