public class DeltaFileUploader extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
DeltaFileUploader.ConsumerNotification
Class that handles the consuming of received notifications
|
| Constructor and Description |
|---|
DeltaFileUploader(String indexID,
org.gcube.indexmanagement.common.IndexUpdaterWSResource resource,
org.gcube.common.core.contexts.GCUBEServiceContext ctx)
Constructs a new DeltaFileUploader
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this DeltaFileUploader
|
int |
getConnectionID()
Returns the current connection ID
|
void |
upload(String deltaFileName,
org.gcube.indexmanagement.storagehandling.stubs.DeltaActionType action,
String indexTypeID,
int documentCount)
Uploads a delta file to the CMS
|
void |
upload(String deltaFileName,
String indexTypeID,
int documentCount)
Uploads a delta file to the CMS
|
public DeltaFileUploader(String indexID, org.gcube.indexmanagement.common.IndexUpdaterWSResource resource, org.gcube.common.core.contexts.GCUBEServiceContext ctx) throws 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 scopingException - an error occuredpublic void upload(String deltaFileName, 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(String deltaFileName, org.gcube.indexmanagement.storagehandling.stubs.DeltaActionType action, 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()
Copyright © 2014. All Rights Reserved.