SMILA (incubation) API documentation

org.eclipse.smila.connectivity
Interface ConnectivityManager

All Known Implementing Classes:
ConnectivityManagerImpl

public interface ConnectivityManager

The Interface ConnectivityManager.


Field Summary
static java.lang.String ATTRIBUTE_IMPORT_RUN_ID
          Record attribute '_importRunId'.
 
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.
 

Field Detail

ATTRIBUTE_IMPORT_RUN_ID

static final java.lang.String ATTRIBUTE_IMPORT_RUN_ID
Record attribute '_importRunId'.

See Also:
Constant Field Values
Method Detail

checkJobIsActive

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

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

add

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

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

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

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

SMILA (incubation) API documentation