|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.indexmanagement.storagehandling.DeltaFileUploader
public class DeltaFileUploader
This class implements an uploader of delta files to the Content Management layer. Each time a new delta file is created as a result of new data added to (or removed from) the index, the file is added to the uploader queue in order to be stored in the CMS. After the file finally gets uploaded, a notification is sent to the index management resource, so that the delta file list is updated.
Nested Class Summary | |
---|---|
class |
DeltaFileUploader.ConsumerNotification
Class that handles the consuming of received notifications |
Constructor Summary | |
---|---|
DeltaFileUploader(java.lang.String indexID,
IndexUpdaterWSResource resource,
GCUBEServiceContext ctx)
Constructs a new DeltaFileUploader |
Method Summary | |
---|---|
void |
close()
Closes this DeltaFileUploader |
int |
getConnectionID()
Returns the current connection ID |
void |
upload(java.lang.String deltaFileName,
DeltaActionType action,
java.lang.String indexTypeID,
int documentCount)
Uploads a delta file to the CMS |
void |
upload(java.lang.String deltaFileName,
java.lang.String indexTypeID,
int documentCount)
Uploads a delta file to the CMS |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeltaFileUploader(java.lang.String indexID, IndexUpdaterWSResource resource, GCUBEServiceContext ctx) throws java.lang.Exception
indexID
- the ID of the index that this DeltaFileUploader feedsresource
- the index updater resource that uses this DeltaFileUploaderctx
- the service context used for security and scoping
java.lang.Exception
- an error occuredMethod Detail |
---|
public void upload(java.lang.String deltaFileName, java.lang.String indexTypeID, int documentCount)
deltaFileName
- the filename of the delta file to uploadindexTypeID
- the index type IDdocumentCount
- the number of documents in the delta file to be uploadedpublic void upload(java.lang.String deltaFileName, DeltaActionType action, java.lang.String indexTypeID, int documentCount)
deltaFileName
- the filename of the delta file to uploadaction
- the delta file action: addition or deletionindexTypeID
- the index type IDdocumentCount
- the number of documents in the delta file to be uploadedpublic int getConnectionID()
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |