Package xcat.exceptions

Examples of xcat.exceptions.PortNotInUseException


    logger.finest("wake up sleeper waiting for port to be released");
    pInfo.notify();
    return;
  }
  else
    throw new PortNotInUseException("Port " + portName + " not in use");
      }
    }

    // For uses ports
    UsesPortInfo uInfo =
      (UsesPortInfo) usesPortMap.get(portName);
    if (uInfo != null) {
      synchronized(uInfo) {
  if (uInfo.isUnregistered())
    throw new PortNotDefinedException("Uses port: " + portName +
              " has been unregistered");
  if (uInfo.getInUse()) {
    uInfo.setInUse(false);
    logger.finest("wake up sleeper waiting for port to be released");
    uInfo.notify();
    return;
  }
  else
    throw new PortNotInUseException("Port " + portName + " not in use");
      }
    }

    logger.severe("Port " + portName + " not defined");
    throw new PortNotDefinedException("Port " + portName + " not defined");
View Full Code Here


    logger.finest("wake up sleeper waiting for port to be released");
    wsInfo.notify();
    return;
  }
  else
    throw new PortNotInUseException("WS Port " + portName + " not in use");
      }
    }

    // if it is not a WS port, check to see if it is regular CCA port
    releasePort(portName);
View Full Code Here

TOP

Related Classes of xcat.exceptions.PortNotInUseException

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.