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 use 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.
|
String |
getProperty(String pName)
Get a property value.
|
void |
removeListener(int pPort)
Remove the listener associated with the specified port.
|
void |
setProperty(String pName,
String pValue)
Set a property for the WBEM Listener.
|
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
- If the port is already in use.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
- If the port is already in use.String getProperty(String pName)
pName
- The name of the property.void removeListener(int pPort)
pPort
- The port.void setProperty(String pName, String pValue)
pName
- The name of the property.pValue
- The value of the property.IllegalArgumentException
- If the name is not a supported property name.Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.