Package xcat.exceptions

Examples of xcat.exceptions.UnexpectedException


      // initialize the properties
      compProperties = createTypeMap();
    } catch (Exception e) {
      logger.severe("Can not instantiate ComponentID", e);
      throw new UnexpectedException("Can not instantiate ComponentID", e);
    }
  }
View Full Code Here


      // create an instance of mStatus
      mStatus = new MigrationStatus();
    } catch (Exception e) {
      logger.severe("Can not instantiate ComponentID", e);
      throw new UnexpectedException("Can not instantiate ComponentID", e);
    }
  }
View Full Code Here

      pInfo.removePort();
   
    // export this port as a grid service
    String portImpl = tMap.getString("cca.portImpl", "None");
    if (portImpl.equals("None"))
      throw new UnexpectedException("Can't find FQN for provides port: " + portName);
    Class portClass = Class.forName(portImpl);
    // assumption here that a void constructor exists
    Object portInstance = portClass.newInstance();
    String intfClassName = tMap.getString("portClass", "None");
    UnicastRemoteObject.exportObject((XCATPort) portInstance,
             new Class[]{Class.forName(intfClassName)});
   
    // add a reference to the Handle Resolver
    String portGSH = pInfo.getProvidesPortHandle();
    ((XCATPort) portInstance).setGSH(portGSH);
    HandleResolver.addReference(portGSH, (XCATPort) portInstance);
   
    // add this provides port to the hashMap
    providesPortMap.put(portName, pInfo);
        }
      }
    }
  }
      }
    } catch (Exception e) {
      logger.severe("Can't convert state of Services Object to XML", e);
      throw new UnexpectedException("Can't convert state of Services Object to XML", e);
    }
  }
View Full Code Here

    AppCoordinatorCallback coord = (AppCoordinatorCallback)
      HandleResolver.resolveHandle(coordinatorHandle,
           AppCoordinatorCallback.class.getName());
    coord.componentFrozen(getComponentID().getInstanceName(),
        AppCoordinatorCallback.EXCEPTION);
    throw new UnexpectedException("Caught exception while waiting on mStatus", e);
  }
      } else {
  // set that the component is frozen
  mStatus.setIsFrozen(true)
      }
View Full Code Here

      if (mStatus.getIsFrozen()) {
  try {
    mStatus.wait();
  } catch (Exception e) {
    logger.severe("Caught exception while waiting on mStatus", e);
    throw new UnexpectedException("Caught exception while waiting on mStatus", e);
  }
      }
      // increment number of unreleased ports
      mStatus.incrNumUnreleasedPorts();
    }
View Full Code Here

      if (mStatus.getIsFrozen()) {
  try {
    mStatus.wait();
  } catch (Exception e) {
    logger.severe("Caught exception while waiting on mStatus", e);
    throw new UnexpectedException("Caught exception while waiting on mStatus", e);
  }
      }
      // increment number of unreleased ports
      mStatus.incrNumUnreleasedPorts();
    }
View Full Code Here

TOP

Related Classes of xcat.exceptions.UnexpectedException

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.