ilog.ds
Interface IlConnection


public interface IlConnection

Interface that represents a connection to a back-end system. Provides support for managing the status of the connection, and for listeners to receive notification about changes in the status.


Field Summary
static int CONNECTED
          There is a connection to the back-end.
static int CONNECTING
          A connection to the back-end is being established.
static int CONNECTION_FAILED
          There was a failure while trying to establish a connection to the back-end.
static String CONNECTION_STATUS_PROPERTY
           
static int DISCONNECTING
          The connection to the back-end is being broken.
static int NOT_CONNECTED
          There is no connection to the back-end.
 
Method Summary
abstract  void addPropertyChangeListener(PropertyChangeListener l)
          Adds a listener for property-change events.
abstract  void addPropertyChangeListener(String propName, PropertyChangeListener l)
          Adds a listener for specific property-change events.
abstract  int getConnectionStatus()
          Accesses the status of the connection.
abstract  void removePropertyChangeListener(PropertyChangeListener l)
          Removes a listener for all property-change events.
abstract  void removePropertyChangeListener(String propName, PropertyChangeListener l)
          Removes a listener for all property-change events.
 

Field Detail

NOT_CONNECTED

public static final int NOT_CONNECTED
There is no connection to the back-end.

CONNECTING

public static final int CONNECTING
A connection to the back-end is being established.

CONNECTED

public static final int CONNECTED
There is a connection to the back-end.

DISCONNECTING

public static final int DISCONNECTING
The connection to the back-end is being broken.

CONNECTION_FAILED

public static final int CONNECTION_FAILED
There was a failure while trying to establish a connection to the back-end.

CONNECTION_STATUS_PROPERTY

public static final String CONNECTION_STATUS_PROPERTY
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
Adds a listener for property-change events. The only property specified by the IlConnection interface is CONNECTION_STATUS_PROPERTY.
Parameters:
l - The listener

addPropertyChangeListener

public void addPropertyChangeListener(String propName,
                                      PropertyChangeListener l)
Adds a listener for specific property-change events. The only property specified by the IlConnection interface is CONNECTION_STATUS_PROPERTY.
Parameters:
propName - The property name
l - The listener

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Removes a listener for all property-change events.
Parameters:
l - The listener

removePropertyChangeListener

public void removePropertyChangeListener(String propName,
                                         PropertyChangeListener l)
Removes a listener for all property-change events.
Parameters:
propName - The property name
l - The listener

getConnectionStatus

public int getConnectionStatus()
Accesses the status of the connection.
Returns:
the current status of the connection