org.sblim.cimclient

Class WBEMListenerSBLIM

public class WBEMListenerSBLIM extends Object implements WBEMListener

Class WBEMListenerSBLIM is the SBLIM implementation of the WBEMListener interface.
Nested Class Summary
static classWBEMListenerSBLIM.WBEMListenerImpl
The real implementation of a listener that starts a HTTP server and processes incoming indications
Method Summary
intaddListener(IndicationListener pListener, int pPort, String pTransport)
intaddListener(IndicationListener pListener, int pPort, String pTransport, String pLocalAddr)
intaddListener(IndicationListener pListener, int pPort, String pTransport, String pLocalAddr, Properties pConfigurationProperties)
Add a new listener using the specified port.
static WBEMListenerSBLIMgetInstance()
Returns the singleton instance
voidremoveListener(int pPort)

Method Detail

addListener

public int addListener(IndicationListener pListener, int pPort, String pTransport)

addListener

public int addListener(IndicationListener pListener, int pPort, String pTransport, String pLocalAddr)

addListener

public int addListener(IndicationListener pListener, int pPort, String pTransport, String pLocalAddr, Properties pConfigurationProperties)
Add a new listener using the specified port.

Parameters: pListener - The Indication Listener that will be called when an indication is received. pPort - The port to listen on. Use 0 to specify any available port. pTransport - The transport to use (e.g. http or https). pLocalAddr - The local IP address to bind to. This is only needed in multi homed systems. A value of null will bind to all IP addresses. pConfigurationProperties - The individual configuration properties for this listener

Returns: The port that was used.

Throws: IOException - This exception is thrown when binding to pPort fails.

getInstance

public static WBEMListenerSBLIM getInstance()
Returns the singleton instance

Returns: The instance

removeListener

public void removeListener(int pPort)
Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.