|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.connectivity.deltaindexing.impl.DeltaIndexingManagerImpl
public class DeltaIndexingManagerImpl
The Class DeltaIndexingManagerImpl. It was done only for testing purposes.
| Constructor Summary | |
|---|---|
DeltaIndexingManagerImpl()
|
|
| Method Summary | |
|---|---|
protected void |
activate(ComponentContext context)
Activate. |
boolean |
checkForUpdate(Id id,
java.lang.String hash)
checks for the hash of the current id is new or has changed (true) or not (false). // to reduce method calls mark entry as visited on return value false |
void |
clear()
Clear. |
void |
clear(java.lang.String dataSourceID)
Clear. |
protected void |
deactivate(ComponentContext context)
OSGi Declarative Services service deactivation method. |
void |
delete(Id id)
Delete. |
boolean |
exists(java.lang.String dataSourceId)
Exists. |
void |
finish(java.lang.String dataSourceID)
removes the lock. |
void |
init(java.lang.String dataSourceID)
initializes the internal state for an import of a dataSourceID and establishes a lock to avoid that the same. |
java.util.Iterator<Id> |
obsoleteIdIterator(Id id)
Obsolete id iterator for id fragments. |
java.util.Iterator<Id> |
obsoleteIdIterator(java.lang.String dataSourceID)
Obsolete id iterator. |
void |
rollback(java.lang.String dataSourceID)
rollbacks changes was made inside init() and finish(), it should be called before finishing process. |
void |
unlockDatasources()
Unlock all datasources. |
void |
visit(Id id,
java.lang.String hash)
updates the hash and marks this id as visited. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeltaIndexingManagerImpl()
| Method Detail |
|---|
protected void activate(ComponentContext context)
context - the contextprotected void deactivate(ComponentContext context)
context - OSGi service component context.
public boolean checkForUpdate(Id id,
java.lang.String hash)
throws DeltaIndexingException
checkForUpdate in interface DeltaIndexingManagerid - the idhash - the hash
DeltaIndexingExceptioncheckForUpdate(org.eclipse.smila.datamodel.id.Id, java.lang.String)
public void finish(java.lang.String dataSourceID)
throws DeltaIndexingException
finish in interface DeltaIndexingManagerdataSourceID - the data source id
DeltaIndexingExceptionDeltaIndexingManager.finish(java.lang.String)
public void init(java.lang.String dataSourceID)
throws DeltaIndexingException
init in interface DeltaIndexingManagerdataSourceID - dataSourceID
DeltaIndexingExceptionDeltaIndexingManager.init(java.lang.String)
public void visit(Id id,
java.lang.String hash)
throws DeltaIndexingException
visit in interface DeltaIndexingManagerid - the idhash - the hash
DeltaIndexingExceptionDeltaIndexingManager.visit(org.eclipse.smila.datamodel.id.Id,
java.lang.String)
public java.util.Iterator<Id> obsoleteIdIterator(java.lang.String dataSourceID)
throws DeltaIndexingException
obsoleteIdIterator in interface DeltaIndexingManagerdataSourceID - the data source id
DeltaIndexingExceptionDeltaIndexingManager.obsoleteIdIterator(java.lang.String)
public void rollback(java.lang.String dataSourceID)
throws DeltaIndexingException
rollback in interface DeltaIndexingManagerdataSourceID - the data source id
DeltaIndexingExceptionDeltaIndexingManager.rollback(java.lang.String)
public void delete(Id id)
throws DeltaIndexingException
delete in interface DeltaIndexingManagerid - the id
DeltaIndexingExceptionDeltaIndexingManager.delete(org.eclipse.smila.datamodel.id.Id)public java.util.Iterator<Id> obsoleteIdIterator(Id id)
obsoleteIdIterator in interface DeltaIndexingManagerid - the id
obsoleteIdIterator(org.eclipse.smila.datamodel.id.Id)public void unlockDatasources()
unlockDatasources in interface DeltaIndexingManagerDeltaIndexingManager.unlockDatasources()
public void clear()
throws DeltaIndexingException
clear in interface DeltaIndexingManagerDeltaIndexingException - the delta indexing exceptionDeltaIndexingManager.clear()
public void clear(java.lang.String dataSourceID)
throws DeltaIndexingException
clear in interface DeltaIndexingManagerdataSourceID - the data source id
DeltaIndexingException - the delta indexing exceptionDeltaIndexingManager.clear(java.lang.String)public boolean exists(java.lang.String dataSourceId)
exists in interface DeltaIndexingManagerdataSourceId - the data source id
DeltaIndexingManager.exists(java.lang.String)
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||