In file ../../src/Pegasus/Listener/CIMListener.h:

class PEGASUS_LISTENER_LINKAGE CIMListener

CIMListener provides the interfaces that allows CIMListeners to be created and managed.

Documentation

CIMListener provides the interfaces that allows CIMListeners to be created and managed. CIMListeners are the receivers for cim/xml indications. ATTN: KS needs to be completed.TBD

Inheritance:


Public Methods

[more] CIMListener (Uint32 portNumber, SSLContext* sslContext=NULL)
Constructs a CIMListener object.
[more] ~CIMListener ()
Destructor of a CIMLIstener object
[more]Uint32 getPortNumber () const
Returns the socket port number
[more]SSLContext* getSSLContext () const
Returns the SSL context
[more]void setSSLContext (SSLContext* sslContext)
Sets the SSL context
[more]void start ()
Starts for listening
[more]void stop ()
Stops listening
[more]Boolean isAlive () const
Returns if the listener is active
[more]Boolean addConsumer (CIMIndicationConsumer* consumer)
Adds a CIMIndicationConsumer to the listener
[more]Boolean removeConsumer (CIMIndicationConsumer* consumer)
Removes a CIMIndicationConsumer from the listener.

o CIMListener(Uint32 portNumber, SSLContext* sslContext=NULL)
Constructs a CIMListener object.

Parameters:
portNumber - the specified socket port the listener will listen to
sslContext - the specifed SSL context

o ~CIMListener()
Destructor of a CIMLIstener object

oUint32 getPortNumber() const
Returns the socket port number

Returns:
the socket port number.

oSSLContext* getSSLContext() const
Returns the SSL context

Returns:
the SSL context.

ovoid setSSLContext(SSLContext* sslContext)
Sets the SSL context

Parameters:
the - SSL context.

ovoid start()
Starts for listening

ovoid stop()
Stops listening

oBoolean isAlive() const
Returns if the listener is active

Returns:
true if the listener is active; false otherwise.

oBoolean addConsumer(CIMIndicationConsumer* consumer)
Adds a CIMIndicationConsumer to the listener

Parameters:
consumer - the CIMIndicationConsumer to add.
Returns:
true if the indication consumer has been added successfully false otherwise.

oBoolean removeConsumer(CIMIndicationConsumer* consumer)
Removes a CIMIndicationConsumer from the listener.

Parameters:
the - CIMIndicationConsumer to remove.
Returns:
true if the indication consumer has been removed successfully false otherwise.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java