Package jade.core

Examples of jade.core.IMTPException


    thePlatformManager = pm;
    String actualPlatformName  = thePlatformManager.getPlatformName();
    if (platformName != null) {
      // PlatformName already set --> Check that it is consistent with the actual name of the platform
      if (!platformName.equals(actualPlatformName)) {
        throw new IMTPException("Wrong platform name "+platformName+". It should be "+actualPlatformName);
      }
    }
    else {
      platformName = actualPlatformName;
    }
View Full Code Here


      stub.bind(this);
      stub.addTA(ta);
      return stub;
    }
    catch (DispatcherException de) {
      throw new IMTPException("Invalid address for a Platform Manager", de);
    }
   
  }
View Full Code Here

     
      return mainTA;
     
    }
    catch (Exception e) {
      throw new IMTPException("Error getting Main Container address", e);
    }
   
  }
View Full Code Here

    Integer id = (Integer) ids.get(remoteObject);
    if (id != null) {
      return id.intValue();
    }
   
    throw new IMTPException("specified object is not remotized by this command dispatcher.");
  }
View Full Code Here

    }
    else if (remotizedObject instanceof PlatformManager) {
      stub = new PlatformManagerStub(platformName);
    }
    else {
      throw new IMTPException("can't create a stub for object "+remotizedObject+".");
    }
   
    stub.bind(this);
   
    // Add the local addresses.
View Full Code Here

  public Object accept(HorizontalCommand cmd) throws RemoteException, IMTPException {

    try {
      if(terminating) {
        throw new IMTPException("Dead node");
      }
      return myNode.serveHorizontalCommand(cmd);
    }
    catch(ServiceException se) {
      throw new IMTPException("Service Error", se);
    }
  }
View Full Code Here

    }
  }

  public void platformManagerDead(String deadPmAddress, String notifyingPmAddr) throws RemoteException, IMTPException {
    if(terminating) {
      throw new IMTPException("Dead node");
    }
    myNode.platformManagerDead(deadPmAddress, notifyingPmAddr);
  }
View Full Code Here

  public Object accept(HorizontalCommand cmd) throws IMTPException {
    try {
      return adaptee.accept(cmd);
    }
    catch(RemoteException re) {
      throw new IMTPException("An RMI error occurred", re);
    }
  }
View Full Code Here

  public boolean ping(boolean hang) throws IMTPException {
    try {
      return adaptee.ping(hang);
    }
    catch(RemoteException re) {
      throw new IMTPException("RMI exception", re);
    }
  }
View Full Code Here

  public void exit() throws IMTPException {
    try {
      adaptee.exit();
    }
    catch(RemoteException re) {
      throw new IMTPException("RMI exception", re);
    }
  }
View Full Code Here

TOP

Related Classes of jade.core.IMTPException

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.