Package xcat.exceptions

Examples of xcat.exceptions.PortNotDefinedException


    UsesPortInfo uInfo =
      (UsesPortInfo) usesPortMap.get(usingPortName);
    if (uInfo != null) {
      synchronized(uInfo) {
  if (uInfo.isUnregistered())
    throw new PortNotDefinedException("Uses port: " + usingPortName +
              " has been unregistered");
  if (uInfo.getConnectionID() != null)
    throw new NonstandardException("Uses Port : " + usingPortName +
           " is already connected");
  XCATConnectionID connectionID =
    new XCATConnectionIDImpl(provider,
           user,
           providingPortName,
           usingPortName,
           providesPortHandle);
  uInfo.setConnectionID(connectionID);
      }
    } else
      throw new PortNotDefinedException("Uses Port : " + usingPortName +
          " not defined");
  }
View Full Code Here


    UsesPortInfo uInfo =
      (UsesPortInfo) usesPortMap.get(usingPortName);
    if (uInfo != null) {
      synchronized(uInfo) {
  if (uInfo.isUnregistered())
    throw new PortNotDefinedException("Uses port: " + usingPortName +
              " has been unregistered");
  if (uInfo.getInUse())
    throw new NonstandardException("Uses Port : " + usingPortName +
           " still in use");
  uInfo.setConnectionID(null);
      }
    } else
      throw new PortNotDefinedException("Uses Port : " + usingPortName +
          " not defined");
  }
View Full Code Here

    ProvidesPortInfo pInfo =
      (ProvidesPortInfo) providesPortMap.get(providingPortName);
    if (pInfo != null) {
      synchronized(pInfo) {
  if (pInfo.isRemoved())
    throw new PortNotDefinedException("Provides Port : " + providingPortName +
              " has been removed");
  pInfo.decrNumConnections();
      }
    } else
      throw new PortNotDefinedException("Provides Port : " + providingPortName +
          " not defined");
  }
View Full Code Here

    wsInfo.unregisterPort();
    wsPortMap.remove(portName);
  }
      }
    } else
      throw new PortNotDefinedException("Port " + portName + " not defined");
  }
View Full Code Here

    WSPortInfo wsInfo =
      (WSPortInfo) wsPortMap.get(wsPortName);
    if (wsInfo != null) {
      synchronized(wsInfo) {
  if (wsInfo.isUnregistered())
    throw new PortNotDefinedException("WS port: " + wsPortName +
              " has been unregistered");
  if (wsInfo.isConnected())
    throw new NonstandardException("WS Port : " + wsPortName +
           " is already connected");
  wsInfo.setEndPointLocation(endPointLocation);
      }
    } else
      throw new PortNotDefinedException("WS Port : " + wsPortName +
          " not defined");
  }
View Full Code Here

    WSPortInfo wsInfo =
      (WSPortInfo) wsPortMap.get(wsPortName);
    if (wsInfo != null) {
      synchronized(wsInfo) {
  if (wsInfo.isUnregistered())
    throw new PortNotDefinedException("WS port: " + wsPortName +
              " has been unregistered");
  if (wsInfo.getInUse())
    throw new NonstandardException("WS Port : " + wsPortName +
           " still in use");
  wsInfo.disconnectPort();
      }
    } else
      throw new PortNotDefinedException("WS Port : " + wsPortName +
          " not defined");
  }
View Full Code Here

    } catch (InterruptedException ie) {
      logger.severe("Exception while waiting for port to be released", ie);
    }
  }
  if (wsInfo.isUnregistered())
    throw new PortNotDefinedException("WS port: " + portName +
              " has been unregistered");
  if (!wsInfo.isConnected())
    throw new PortNotConnectedException("WS Port " + portName
                + " not connected");
  wsInfo.setInUse(true);
View Full Code Here

    WSPortInfo wsInfo =
      (WSPortInfo) wsPortMap.get(portName);
    if (wsInfo != null) {
      synchronized(wsInfo) {
  if (wsInfo.isUnregistered())
    throw new PortNotDefinedException("WS port: " + portName +
              " has been unregistered");
  if (wsInfo.getInUse()) {
    wsInfo.setInUse(false);
    logger.finest("wake up sleeper waiting for port to be released");
    wsInfo.notify();
View Full Code Here

    UsesPortInfo uInfo = (UsesPortInfo) usesPortMap.get(usingPortName);
    if (uInfo != null) {
      synchronized(uInfo) {
  if (uInfo.isUnregistered())
    throw new PortNotDefinedException("Uses port: " + usingPortName +
              " has been unregistered");

  // confirm that this port is migrating
  uInfo.confirmMigration();
      }
    } else {
      logger.severe("Port " + usingPortName + " not defined");
      throw new PortNotDefinedException("Port " + usingPortName + " not defined");
    }
  }
View Full Code Here

    UsesPortInfo uInfo = (UsesPortInfo) usesPortMap.get(usingPortName);
    if (uInfo != null) {
      synchronized(uInfo) {
  if (uInfo.isUnregistered())
    throw new PortNotDefinedException("Uses port: " + usingPortName +
              " has been unregistered");

  // confirm that this port has finished migrating
  uInfo.migrationComplete();

  // notify sleepers waiting for this port to finish migrating
  uInfo.notify();
      }
    } else {
      logger.severe("Port " + usingPortName + " not defined");
      throw new PortNotDefinedException("Port " + usingPortName + " not defined");
    }
  }
View Full Code Here

TOP

Related Classes of xcat.exceptions.PortNotDefinedException

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.