Package com.sun.jdmk.comm

Examples of com.sun.jdmk.comm.CommunicationException


        try {
            this.socket = this.serverSocket.accept();
            this.socket.setSoTimeout(SOCKET_TIMEOUT);
        } catch (IOException e) {
            logger.log(e);
            throw new CommunicationException(e, "Error while accepting connection on server socket");
        }
    }
View Full Code Here


        InterruptedException {
        try {
            this.serverSocket.close();
        } catch (IOException e) {
            logger.log(e);
            throw new CommunicationException(e,"Error while closing socket");
        }
    }
View Full Code Here

    private Vector findCommunicators(boolean adp, String host) throws CommunicationException {
  // ----------------
  //  Check that the factory is not already connected
  // ----------------
  if (state != ONLINE) {
      throw new CommunicationException( "Not connected to " + multicastGroup + ":" + multicastPort ) ;
  }
 
  // ----------------
  // Call actual method
  // ----------------
  try {
      return discovery.findCommunicators(adp,host) ;
  } catch (IOException e) {
      if (logger.finestOn()) {
    logger.finest("findCommunicators " , "Get IOException exception " + e.getMessage() ) ;
      }
      throw new CommunicationException ("Unable to join group on " + multicastGroup + ":" + multicastPort) ;
  }
    }
View Full Code Here

TOP

Related Classes of com.sun.jdmk.comm.CommunicationException

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.