|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.cimclient.WBEMListenerSBLIM
public class WBEMListenerSBLIM
Class WBEMListenerSBLIM is the SBLIM implementation of the WBEMListener interface.
Nested Class Summary | |
---|---|
static class |
WBEMListenerSBLIM.WBEMListenerImpl
The real implementation of a listener that starts a HTTP server and processes incoming indications |
Method Summary | |
---|---|
int |
addListener(IndicationListener pListener,
int pPort,
java.lang.String pTransport)
Add a new listener using the specified port. |
int |
addListener(IndicationListener pListener,
int pPort,
java.lang.String pTransport,
java.lang.String pLocalAddr)
Add a new listener using the specified port. |
int |
addListener(IndicationListener pListener,
int pPort,
java.lang.String pTransport,
java.lang.String pLocalAddr,
java.util.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static WBEMListenerSBLIM getInstance()
public int addListener(IndicationListener pListener, int pPort, java.lang.String pTransport) throws java.io.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).
java.io.IOException
- If the port is already in use.public int addListener(IndicationListener pListener, int pPort, java.lang.String pTransport, java.lang.String pLocalAddr) throws java.io.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.
java.io.IOException
- If the port is already in use.public int addListener(IndicationListener pListener, int pPort, java.lang.String pTransport, java.lang.String pLocalAddr, java.util.Properties pConfigurationProperties) throws java.io.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 listener
java.io.IOException
- - This exception is thrown when binding to pPort fails.public void removeListener(int pPort)
WBEMListener
removeListener
in interface WBEMListener
pPort
- The port.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |