|
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.jpa.impl.DeltaIndexingManagerImpl
public class DeltaIndexingManagerImpl
The Class DeltaIndexingManagerImpl.
| Field Summary | |
|---|---|
static java.lang.String |
CONFIGURATION_FILE
name of configuration file. |
static java.lang.String |
PERSISTENCE_UNIT_NAME
Constant for the eclipseLink persistence unit name. |
| 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 |
| Field Detail |
|---|
public static final java.lang.String PERSISTENCE_UNIT_NAME
public static final java.lang.String CONFIGURATION_FILE
| Constructor Detail |
|---|
public DeltaIndexingManagerImpl()
| Method Detail |
|---|
protected void activate(ComponentContext context)
throws java.lang.Exception
context - the context
java.lang.Exception - if any error occurs
protected void deactivate(ComponentContext context)
throws java.lang.Exception
context - OSGi service component context
java.lang.Exception - if any error occurs
public void init(java.lang.String dataSourceID)
throws DeltaIndexingException
init in interface DeltaIndexingManagerdataSourceID - dataSourceID
DeltaIndexingException - the delta indexing exceptionDeltaIndexingManager.init(java.lang.String)
public boolean checkForUpdate(Id id,
java.lang.String hash)
throws DeltaIndexingException
checkForUpdate in interface DeltaIndexingManagerid - the idhash - the hash
DeltaIndexingException - the delta indexing exceptionDeltaIndexingManager.checkForUpdate(org.eclipse.smila.datamodel.id.Id,
java.lang.String)
public void visit(Id id,
java.lang.String hash)
throws DeltaIndexingException
visit in interface DeltaIndexingManagerid - the idhash - the hash
DeltaIndexingException - the delta indexing exceptionDeltaIndexingManager.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
DeltaIndexingException - the delta indexing exceptionDeltaIndexingManager.obsoleteIdIterator(java.lang.String)
public java.util.Iterator<Id> obsoleteIdIterator(Id id)
throws DeltaIndexingException
obsoleteIdIterator in interface DeltaIndexingManagerid - the id
DeltaIndexingException - the delta indexing exceptionDeltaIndexingManager.obsoleteIdIterator(org.eclipse.smila.datamodel.id.Id)
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 void rollback(java.lang.String dataSourceID)
throws DeltaIndexingException
rollback in interface DeltaIndexingManagerdataSourceID - the data source id
DeltaIndexingException - the delta indexing exceptionDeltaIndexingManager.rollback(java.lang.String)
public void delete(Id id)
throws DeltaIndexingException
delete in interface DeltaIndexingManagerid - the id
DeltaIndexingException - the delta indexing exceptionDeltaIndexingManager.delete(org.eclipse.smila.datamodel.id.Id)
public void finish(java.lang.String dataSourceID)
throws DeltaIndexingException
finish in interface DeltaIndexingManagerdataSourceID - the data source id
DeltaIndexingException - the delta indexing exceptionDeltaIndexingManager.finish(java.lang.String)
public void unlockDatasources()
throws DeltaIndexingException
unlockDatasources in interface DeltaIndexingManagerDeltaIndexingException - the delta indexing exceptionDeltaIndexingManager.unlockDatasources()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 | ||||||||