|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectIndexUpdaterWSResource
org.gcube.indexmanagement.fulltextindexupdater.FullTextIndexUpdaterResource
public class FullTextIndexUpdaterResource
A class containing statefull information regarding an update process, which is used to update a FullText index.
Field Summary | |
---|---|
static java.lang.String |
RP_COMMITED_DOC_COUNT
|
static java.lang.String |
RP_CONTENT_TYPE
|
static java.lang.String |
RP_INDEX_FORMAT
|
static java.lang.String |
RP_MERGED_DOC_COUNT
|
static java.lang.String |
RP_NOT_COMMITED_DOC_COUNT
|
Constructor Summary | |
---|---|
FullTextIndexUpdaterResource()
Empty constructor. |
Method Summary | |
---|---|
void |
abort()
Abort the current update, discarding uncommited changes |
void |
commit()
Commit the current update, making the changes candidates for being merged into the main index. |
void |
deleteDocuments(java.lang.String[] IDs)
Deletes a list of documents from the local and main index. |
void |
finishCurrentUpdate()
Close the current update, commiting and merging the changes. |
int |
getCommitedDocCount()
Getter method for the CommitedDocCount Resource Property |
java.lang.String |
getIndexFormat()
Getter method for the IndexFormat Resource Property |
int |
getMergedDocCount()
Getter method for the MergedDocCount Resource Property |
int |
getNotCommitedDocCount()
Getter method for the NotCommitedDocCount Resource Property |
void |
insertRowSet(java.lang.String rowset)
Inserts a RowSet of documents into the local index. |
boolean |
isReadyToDie()
|
void |
onResourceRemoval()
|
void |
onUpdaterNotificationReceived(org.w3c.dom.Element message)
|
java.util.concurrent.FutureTask<java.lang.Boolean> |
processResultSet(java.lang.String resultSetLocation)
Inserts ResultSet of ROWSETS information into an index. |
void |
sendMerge()
Force a merge of the commited updates to the main index. |
void |
setCommitedDocCount(int commitedDocCount)
Setter method for the CommitedDocCount Resource Property |
void |
setContentType(java.lang.String contentType)
Sets the index content type |
void |
setIndexFormat(java.lang.String indexFormat)
Setter method for the IndexFormat Resource Property |
void |
setIndexTypeName(java.lang.String indexTypeName)
|
void |
setMergedDocCount(int mergedDocCount)
Setter method for the MergedDocCount Resource Property |
void |
setNotCommitedDocCount(int notCommitedDocCount)
Setter method for the NotCommitedDocCount Resource Property |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RP_INDEX_FORMAT
public static final java.lang.String RP_NOT_COMMITED_DOC_COUNT
public static final java.lang.String RP_COMMITED_DOC_COUNT
public static final java.lang.String RP_MERGED_DOC_COUNT
public static final java.lang.String RP_CONTENT_TYPE
Constructor Detail |
---|
public FullTextIndexUpdaterResource()
Method Detail |
---|
public java.lang.String getIndexFormat()
String
the requested IndexFormatpublic int getNotCommitedDocCount()
int
the number of documents which have not been
commited.public int getCommitedDocCount()
int
the number of documents which have been
commited but not merged.public int getMergedDocCount()
int
the number of documents which have been merged
into the main index.public void setContentType(java.lang.String contentType)
contentType
- the content typepublic void setIndexFormat(java.lang.String indexFormat)
indexFormat
- String
the new IndexFormatpublic void setIndexTypeName(java.lang.String indexTypeName) throws java.lang.Exception
java.lang.Exception
public void setNotCommitedDocCount(int notCommitedDocCount)
notCommitedDocCount
- int
the new number of documents which have not
been commitedpublic void setCommitedDocCount(int commitedDocCount)
commitedDocCount
- int
the new number of documents which have been
commited but not merged.public void setMergedDocCount(int mergedDocCount)
mergedDocCount
- int
the new number of documents which have been
merged with the main indexpublic java.util.concurrent.FutureTask<java.lang.Boolean> processResultSet(java.lang.String resultSetLocation) throws java.rmi.RemoteException
resultSetLocation
- String
- a String representation of the
ResultSet EPR
ProcessResultSetResponse
- empty object.
java.rmi.RemoteException
public void insertRowSet(java.lang.String rowset) throws IndexException
rowset
- String
a RowSet of documents to be inserted
IndexException
public void deleteDocuments(java.lang.String[] IDs) throws IndexException
IDs
- String[]
a list of the IDs of the documents to
be deleted
IndexException
public void abort() throws IndexException
IndexException
public void commit() throws IndexException
IndexException
public void finishCurrentUpdate() throws IndexException
IndexException
public void sendMerge()
public void onResourceRemoval()
public boolean isReadyToDie()
public void onUpdaterNotificationReceived(org.w3c.dom.Element message)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |