javax.wbem.listener

Interface WBEMListener

public interface WBEMListener

The 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.
Method Summary
intaddListener(IndicationListener pListener, int pPort, String pTransport)
Add a new listener using the specified port.
intaddListener(IndicationListener pListener, int pPort, String pTransport, String localAddr)
Add a new listener using the specified port.
voidremoveListener(int port)
Remove the listener associated with the specified port.

Method Detail

addListener

public int addListener(IndicationListener pListener, int pPort, String pTransport)
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).

Returns: The port that was used.

Throws: IOException If the port is already in use.

addListener

public int addListener(IndicationListener pListener, int pPort, String pTransport, String localAddr)
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). localAddr The local IP address to bind to. This is only needed in multi-homed systems.

Returns: The port that was used.

Throws: IOException If the port is already in use.

removeListener

public void removeListener(int port)
Remove the listener associated with the specified port.

Parameters: port The port.

Copyright © 2005, 2010 IBM Corporation. All Rights Reserved.