Package com.sun.jdmk.comm

Examples of com.sun.jdmk.comm.RmiConnectorAddress


// ----------------------------------------------------------
// Private method
// ----------------------------------------------------------
  private String toString(Object addr) {
  if ( addr instanceof RmiConnectorAddress ) {
    RmiConnectorAddress address = (RmiConnectorAddress) addr ;
    return "type:" + address.getConnectorType() + ";host:" + address.getHost() + ";port:" + address.getPort() + ";name:" + address.getName() ;
  }
 
  if ( addr instanceof HttpConnectorAddress ) {
    HttpConnectorAddress address = (HttpConnectorAddress) addr ;
    return "type:" + address.getConnectorType() + ";host:" + address.getHost() + ";port:" + address.getPort() ;
  }

  if ( addr instanceof HttpsConnectorAddress ) {
    HttpsConnectorAddress address = (HttpsConnectorAddress) addr ;
    return "type:" + address.getConnectorType() + ";host:" + address.getHost() + ";port:" + address.getPort() ;
  }

  return addr.toString()  ;
  }
View Full Code Here


      ObjectName objectName = (ObjectName) i.next();
      try {
          String host = (String) cmf.getAttribute(objectName,"Host") ;
          int port = (int) ((Integer)cmf.getAttribute(objectName,"Port")).intValue() ;
          String serviceName = (String) cmf.getAttribute(objectName,"ServiceName") ;
          RmiConnectorAddress addr = new RmiConnectorAddress(host,port,serviceName) ;
          pdu.addObjectList(objectName,addr);
      } catch (Exception e) {
          if (logger.finestOn()) {
        logger.finest("formatPdu " , e) ;
          }
View Full Code Here

TOP

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

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.