Examples of RmiConnectorAddress


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

Examples of com.sun.jdmk.comm.RmiConnectorAddress

      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
Copyright © 2018 www.massapi.com. 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.