SMILA (incubation) API documentation

org.eclipse.smila.connectivity.bulkbuilder
Class ConnectivityManagerImpl

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

public class ConnectivityManagerImpl
extends java.lang.Object
implements ConnectivityManager

JobManager/Bulkbuilder based implementation of ConnectivityManager interface.


Field Summary
 
Fields inherited from interface org.eclipse.smila.connectivity.ConnectivityManager
ATTRIBUTE_IMPORT_RUN_ID
 
Constructor Summary
ConnectivityManagerImpl()
          Default Constructor.
 
Method Summary
 int add(Record[] records, java.lang.String jobName)
          Push the given records to the given job.
 void checkJobIsActive(java.lang.String jobName)
          check if records can be added or deleted using this job name.
 int delete(Record[] records, java.lang.String jobName)
          Delete the given records for the given job.
 void setBulkbuilderService(BulkbuilderService service)
          Sets the bulkbuilder.
 void setJobManager(JobManager jobManager)
          set jobmanager reference.
 void unsetBulkbuilderService(BulkbuilderService service)
          Unset the bulkbuilder.
 void unsetJobManager(JobManager jobManager)
          unset jobmanager reference.
 
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

checkJobIsActive

public void checkJobIsActive(java.lang.String jobName)
                      throws ConnectivityException
check if records can be added or deleted using this job name.

Specified by:
checkJobIsActive in interface ConnectivityManager
Parameters:
jobName - name of job to check.
Throws:
ConnectivityException - if job is not active currently, message and cause may contain further details.

add

public int add(Record[] records,
               java.lang.String jobName)
        throws ConnectivityException
Push the given records to the given job.

Specified by:
add in interface ConnectivityManager
Parameters:
records - a list of Record objects
jobName - name of the jobs for which to push the records.
Returns:
the number of records successfully added.
Throws:
ConnectivityException - if any error occurs

delete

public int delete(Record[] records,
                  java.lang.String jobName)
           throws ConnectivityException
Delete the given records for the given job.

Specified by:
delete in interface ConnectivityManager
Parameters:
records - a list of records to delete
Returns:
the number of records successfully deleted.
Throws:
ConnectivityException - if any error occurs

setBulkbuilderService

public void setBulkbuilderService(BulkbuilderService service)
Sets the bulkbuilder.

Parameters:
service - the new bulkbuilder

unsetBulkbuilderService

public void unsetBulkbuilderService(BulkbuilderService service)
Unset the bulkbuilder.

Parameters:
service - the bulkbuilder to unset

setJobManager

public void setJobManager(JobManager jobManager)
set jobmanager reference. Used by OSGi DS.


unsetJobManager

public void unsetJobManager(JobManager jobManager)
unset jobmanager reference. Used by OSGi DS.


SMILA (incubation) API documentation