SMILA (incubation) API documentation

org.eclipse.smila.connectivity.impl
Class ConnectivityManagerImpl

java.lang.Object
  extended by org.eclipse.smila.connectivity.impl.ConnectivityManagerImpl
All Implemented Interfaces:
ConnectivityManager

public class ConnectivityManagerImpl
extends java.lang.Object
implements ConnectivityManager

The Class ConnectivityManagerImpl.


Field Summary
 
Fields inherited from interface org.eclipse.smila.connectivity.ConnectivityManager
ATTRIBUTE_JOB_ID
 
Constructor Summary
ConnectivityManagerImpl()
          Default Constructor.
 
Method Summary
 int add(Record[] records)
          Put the given records for further processing to the ADD Queue.
 int delete(Record[] records)
          Put the the given records for Deletion from the system to the DELETE Queue.
 void setRouterService(Router router)
          Sets the RouterService.
 void unsetRouterService(Router router)
          Unsets the RouterService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectivityManagerImpl

public ConnectivityManagerImpl()
Default Constructor.

Method Detail

setRouterService

public void setRouterService(Router router)
Sets the RouterService. Used by OSGi.

Parameters:
router - the RouterService to set

unsetRouterService

public void unsetRouterService(Router router)
Unsets the RouterService. Used by OSGi.

Parameters:
router - the RouterService to unset

add

public int add(Record[] records)
        throws ConnectivityException
Put the given records for further processing to the ADD Queue.

Specified by:
add in interface ConnectivityManager
Parameters:
records - a list of Record objects
Returns:
the number of records successfully added to the ADD Queue
Throws:
ConnectivityException - if any error occurs
See Also:
org.eclipse.smila.connectivity.ConnectivityManager#add(org.eclipse.smila.datamodel.record.Record[])

delete

public int delete(Record[] records)
           throws ConnectivityException
Put the the given records for Deletion from the system to the DELETE Queue.

Specified by:
delete in interface ConnectivityManager
Parameters:
records - a list of records to delete
Returns:
the number of records successfully added to the DELETE Queue
Throws:
ConnectivityException - if any error occurs
See Also:
org.eclipse.smila.connectivity.ConnectivityManager#delete(org.eclipse.smila.datamodel.id.ID[])

SMILA (incubation) API documentation