org.sblim.cimclient
public class WBEMListenerSBLIM extends Object implements WBEMListener
Modifier and Type | Class and Description |
---|---|
static class |
WBEMListenerSBLIM.WBEMListenerImpl
The real implementation of a listener that starts a HTTP server and
processes incoming indications
|
Modifier and Type | Method and Description |
---|---|
int |
addListener(IndicationListener pListener,
int pPort,
String pTransport)
Add a new listener using the specified port.
|
int |
addListener(IndicationListener pListener,
int pPort,
String pTransport,
String pLocalAddr)
Add a new listener using the specified port.
|
int |
addListener(IndicationListener pListener,
int pPort,
String pTransport,
String pLocalAddr,
Properties pConfigurationProperties)
Add a new listener using the specified port.
|
static WBEMListenerSBLIM |
getInstance()
Returns the singleton instance
|
void |
removeListener(int pPort)
Remove the listener associated with the specified port.
|
public static WBEMListenerSBLIM getInstance()
public int addListener(IndicationListener pListener, int pPort, String pTransport) throws IOException
WBEMListener
addListener
in interface WBEMListener
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).IOException
- - This exception is thrown when binding to pPort fails.public int addListener(IndicationListener pListener, int pPort, String pTransport, String pLocalAddr) throws IOException
WBEMListener
addListener
in interface WBEMListener
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.IOException
- - This exception is thrown when binding to pPort fails.public int addListener(IndicationListener pListener, int pPort, String pTransport, String pLocalAddr, Properties pConfigurationProperties) throws IOException
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 listenerIOException
- - This exception is thrown when binding to pPort fails.public void removeListener(int pPort)
WBEMListener
removeListener
in interface WBEMListener
pPort
- - The port.Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.