Package org.jamesii.core.services

Examples of org.jamesii.core.services.IService


   * availability.
   *
   * @return the next service number
   */
  private synchronized IService getNextService() {
    IService result = null;
    try {
      result = management.get(getNextServiceIndex());
    } catch (ArrayIndexOutOfBoundsException e) {
      SimSystem.report(e);
    }
View Full Code Here


  @Override
  public void execute() {
    synchronized (this) {

      IService service = null;
      String address =
          "rmi://" + info.getHostAddress().getHostName() + ":"
              + MasterServer.DEFAULT_PORT + "/" + info.getName();
      try {
        service = (IService) Naming.lookup(address);
        int size = paramDescription.size();
        List<String[]> params = new ArrayList<>();
        for (int i = 0; i < size; i++) {
          String param = "";
          param =
              JOptionPane.showInputDialog(WindowManagerManager
                  .getWindowManager().getMainWindow(), "Please Enter the "
                  + paramDescription.get(i)[1], param);
          String[] parameter = new String[2];
          parameter[0] = paramDescription.get(i)[0];
          parameter[1] = param;
          params.add(parameter);
        }
        service.callMethodByName(getId(), params);
      } catch (Exception e) {
        SimSystem.report(Level.INFO, "Error on connecting to " + address);
        SimSystem.report(e);
      }
    }
View Full Code Here

    }

    @Override
    public void execute() {
      synchronized (this) {
        IService service = null;
        String address = getAddressForNode(getSelectedNodeInfo());
        try {

          service = (IService) Naming.lookup(address);
        } catch (Exception e) {
View Full Code Here

    }

    @Override
    public void execute() {
      synchronized (this) {
        IService service = null;
        String address = getAddressForNode(getSelectedNodeInfo());
        try {

          service = (IService) Naming.lookup(address);
        } catch (Exception e) {
          SimSystem.report(Level.INFO, "Error on connecting to " + address);
          SimSystem.report(e);
        }

        if (service instanceof IMSSystemHostInformation) {
          IMSSystemHostInformation host = (IMSSystemHostInformation) service;
          PlugInView view;
          try {
            String name = "";
            if (service instanceof IMSSystemHost) {
              name = service.getName();
            }
            view =
                new PlugInView(name, host.getPluginInfo(), Contribution.EDITOR);

            getWindowManager().addWindow(view);
View Full Code Here

    }

    @Override
    public void execute() {
      synchronized (this) {
        IService service = null;
        String address = getAddressForNode(getSelectedNodeInfo());
        try {

          service = (IService) Naming.lookup(address);
        } catch (Exception e) {
          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) {
View Full Code Here

      super(id, label, paths, window);
    }

    @Override
    public void execute() {
      IService server = null;
      try {
        String serverAdress = getServerAddress();
        if (serverAdress == null) {
          return;
        }
View Full Code Here

TOP

Related Classes of org.jamesii.core.services.IService

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.