SMILA (incubation) API documentation

org.eclipse.smila.connectivity.queue.worker.internal.recycler
Class RecordRecyclerImpl

java.lang.Object
  extended by org.eclipse.smila.connectivity.queue.worker.internal.AbstractLoggedComponent
      extended by org.eclipse.smila.connectivity.queue.worker.internal.AbstractQueueServicesAccessPoint
          extended by org.eclipse.smila.connectivity.queue.worker.internal.recycler.RecordRecyclerImpl
All Implemented Interfaces:
ServicesAccessPoint, RecordRecycler

public class RecordRecyclerImpl
extends AbstractQueueServicesAccessPoint
implements RecordRecycler

The Class RecordRecyclerImpl.


Field Summary
 
Fields inherited from class org.eclipse.smila.connectivity.queue.worker.internal.AbstractQueueServicesAccessPoint
_brokerConnections
 
Fields inherited from class org.eclipse.smila.connectivity.queue.worker.internal.AbstractLoggedComponent
_id, _log
 
Constructor Summary
RecordRecyclerImpl()
          Instantiates a new record recycler impl.
 
Method Summary
 java.lang.String[] getConfigurations()
          Gets the configurations.
 long getRecordsRecycled(java.lang.String dataSourceId)
          Gets the records recycled.
 RecordRecyclerStatus getStatus(java.lang.String dataSourceId)
          Gets the status.
 void recycle(java.lang.String configurationId, java.lang.String dataSourceId)
          Recycle.
 void recycleAsync(java.lang.String configurationId, java.lang.String dataSourceId)
          Recycle async.
 void stopRecycle(java.lang.String dataSourceId)
          Stop.
 
Methods inherited from class org.eclipse.smila.connectivity.queue.worker.internal.AbstractQueueServicesAccessPoint
getBlackboardService, getBrokerConnections, getRecordStorage, getTaskListExecutionService, getWorkflowProcessor, setBlackboardFactory, setBrokerConnections, setRecordStorage, setWorkflowProcessor, unsetBlackboardFactory, unsetBrokerConnections, unsetRecordStorage, unsetWorkflowProcessor
 
Methods inherited from class org.eclipse.smila.connectivity.queue.worker.internal.AbstractLoggedComponent
msg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordRecyclerImpl

public RecordRecyclerImpl()
Instantiates a new record recycler impl.

Method Detail

recycle

public void recycle(java.lang.String configurationId,
                    java.lang.String dataSourceId)
             throws RecordRecyclerException
Recycle.

Specified by:
recycle in interface RecordRecycler
Parameters:
configurationId - the configuration id
dataSourceId - the data source id
Throws:
RecordRecyclerException - the record recycler exception
See Also:
RecordRecycler.recycle(java.lang.String, java.lang.String)

recycleAsync

public void recycleAsync(java.lang.String configurationId,
                         java.lang.String dataSourceId)
                  throws RecordRecyclerException
Recycle async.

Specified by:
recycleAsync in interface RecordRecycler
Parameters:
configurationId - the configuration id
dataSourceId - the data source id
Throws:
RecordRecyclerException - the record recycler exception
See Also:
org.eclipse.smila.connectivity.queue.worker.RecordRecycler#recycleAsync(java.lang.String, java.lang.String, java.lang.String)

stopRecycle

public void stopRecycle(java.lang.String dataSourceId)
                 throws RecordRecyclerException
Stop.

Specified by:
stopRecycle in interface RecordRecycler
Parameters:
dataSourceId - the data source id
Throws:
RecordRecyclerException - the record recycler exception
See Also:
RecordRecycler.stopRecycle(java.lang.String)

getRecordsRecycled

public long getRecordsRecycled(java.lang.String dataSourceId)
Gets the records recycled.

Specified by:
getRecordsRecycled in interface RecordRecycler
Parameters:
dataSourceId - the data source id
Returns:
the records recycled
See Also:
RecordRecycler.getRecordsRecycled(java.lang.String)

getStatus

public RecordRecyclerStatus getStatus(java.lang.String dataSourceId)
Gets the status.

Specified by:
getStatus in interface RecordRecycler
Parameters:
dataSourceId - the data source id
Returns:
the status
See Also:
RecordRecycler.getStatus(java.lang.String)

getConfigurations

public java.lang.String[] getConfigurations()
                                     throws RecordRecyclerException
Gets the configurations.

Specified by:
getConfigurations in interface RecordRecycler
Returns:
the configurations
Throws:
RecordRecyclerException - the record recycler exception
See Also:
RecordRecycler.getConfigurations()

SMILA (incubation) API documentation