javax.wbem.listener
public interface WBEMListener
WBEMListener
interface is used to add/remove WBEM Indication
Listeners. The implementation of a WBEMListener
can be retrieved
from the WBEMListenerFactor
by specifying the protocol to used
to listen for 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 localAddr)
Add a new listener using the specified port.
|
void |
removeListener(int port)
Remove the listener associated with the specified port.
|
int addListener(IndicationListener pListener, int pPort, String pTransport) 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).IOException
- - This exception is thrown when binding to pPort fails.int addListener(IndicationListener pListener, int pPort, String pTransport, String localAddr) 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).localAddr
- - 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.void removeListener(int port)
port
- - The port.Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.