public CimListener(CimListenerInfo info,CimIndicationConsumerList indicationConsumers){
  String hostIP=info.getHostIP();
  if ((hostIP != null) && (hostIP.length() != 0)) {
    String protocol=info.getProtocol();
    int port=info.getPort();
    try {
      _url=new URL(protocol,hostIP,port,"");
    }
 catch (    Exception e) {
      s_logger.error("Error forming listener URL. Indications will not be received.",e);
    }
  }
 else {
    s_logger.error("Could not determine listener host. Indications will not be received.");
  }
  defaultSMISSSLPort=info.getDefaultSMISSSLPort();
  int queueSize=info.getQueueSize();
  _queue=new LinkedBlockingQueue<CimQueuedIndication>(queueSize);
  _connections=new ConcurrentHashMap<String,CimConnection>();
  _indicationConsumers=indicationConsumers;
}

public CimListener ( CimListenerInfo info , CimIndicationConsumerList indicationConsumers ) { String hostIP = info . getHostIP ( ) ; if ( ( hostIP != null ) && ( hostIP . length ( ) != 0 ) ) { String protocol = info . getProtocol ( ) ; int port = info . getPort ( ) ; try { _url = new URL ( protocol , hostIP , port , "" ) ; } catch ( Exception e ) { s_logger . error ( "Error forming listener URL. Indications will not be received." , e ) ; } } else { s_logger . error ( "Could not determine listener host. Indications will not be received." ) ; } defaultSMISSSLPort = info . getDefaultSMISSSLPort ( ) ; int queueSize = info . getQueueSize ( ) ; _queue = new LinkedBlockingQueue < CimQueuedIndication > ( queueSize ) ; _connections = new ConcurrentHashMap < String , CimConnection > ( ) ; _indicationConsumers = indicationConsumers ; }
constructs a listener given the passed configuration .
