public class RemoteDeltaListManager extends Object implements DeltaListManagementWrapper
| Constructor and Description |
|---|
RemoteDeltaListManager(String indexManagementID,
org.apache.axis.message.addressing.EndpointReferenceType indexManagerEPR,
org.gcube.common.core.contexts.GCUBEServiceContext sctx)
Constructs a new RemoteDeltaListManager
|
RemoteDeltaListManager(String indexManagementID,
org.gcube.common.core.contexts.GCUBEServiceContext sctx,
String managementServiceNamespace)
Constructs a new RemoteDeltaListManager
|
| Modifier and Type | Method and Description |
|---|---|
int |
connectLookup()
Connects a lookup to the index management resource.
|
org.gcube.indexmanagement.storagehandling.stubs.ConnectUpdaterResponse |
connectUpdater()
Connects an updater to the index management resource.
|
void |
disconnectUpdater(int updaterID)
Disconnects an updater from the index management resource.
|
String |
getDeltaCollectionID()
Returns a ID of the collection with the delta related documents
|
org.gcube.indexmanagement.storagehandling.stubs.DeltaFileInfoType |
getDeltaFileInfo(int idx)
Returns info about a given delta file.
|
org.gcube.indexmanagement.storagehandling.stubs.DeltaFileInfoType[] |
getDeltaFileList()
Returns the delta file list.
|
org.apache.axis.message.addressing.EndpointReferenceType |
getIndexManagerEPR() |
boolean |
isEmpty() |
void |
mergeDeltaFile(org.gcube.indexmanagement.storagehandling.stubs.DeltaFileInfoType deltaInfo)
Merges a delta file with the main index.
|
void |
setIndexManagerEPR(org.apache.axis.message.addressing.EndpointReferenceType managerEPR)
Sets the EPR of the remote delta list manager
|
org.globus.wsrf.core.notification.SubscriptionManager |
subscribeForAdditions(org.gcube.indexmanagement.common.IndexNotificationConsumer consumer)
Subsribes this RemoteDeltaListManager for notifications concerning additions of data to the index.
|
org.globus.wsrf.core.notification.SubscriptionManager |
subscribeForDeletions(org.gcube.indexmanagement.common.IndexNotificationConsumer consumer)
Subsribes this RemoteDeltaListManager for notifications concerning deletions of data to the index.
|
org.globus.wsrf.core.notification.SubscriptionManager |
subscribeForIndexRemoval(org.gcube.indexmanagement.common.IndexNotificationConsumer consumer) |
org.globus.wsrf.core.notification.SubscriptionManager |
subscribeForManagerCreation(org.gcube.indexmanagement.common.IndexNotificationConsumer consumer) |
public RemoteDeltaListManager(String indexManagementID, org.gcube.common.core.contexts.GCUBEServiceContext sctx, String managementServiceNamespace) throws Exception
indexManagementID - the ID of the index whose delta list is to be managedsctx - the service context to be used for security and scopingorg.gcube.indexmanagement.common.IndexException - an error occurredExceptionpublic RemoteDeltaListManager(String indexManagementID, org.apache.axis.message.addressing.EndpointReferenceType indexManagerEPR, org.gcube.common.core.contexts.GCUBEServiceContext sctx) throws Exception
indexManagementID - the ID of the index whose delta list is to be managedindexManagerEPR - the EPR of the index managersctx - the service context to be used for security and scopingException - an error occurredpublic String getDeltaCollectionID() throws Exception
getDeltaCollectionID in interface DeltaListManagementWrapperException - when contacting the DeltaListManagementProviderPortTypepublic void setIndexManagerEPR(org.apache.axis.message.addressing.EndpointReferenceType managerEPR)
throws Exception
setIndexManagerEPR in interface DeltaListManagementWrappermanagerEPR - the EPR of the remote delta list managerExceptionpublic org.apache.axis.message.addressing.EndpointReferenceType getIndexManagerEPR()
getIndexManagerEPR in interface DeltaListManagementWrapperpublic boolean isEmpty()
isEmpty in interface DeltaListManagementWrapperpublic org.gcube.indexmanagement.storagehandling.stubs.ConnectUpdaterResponse connectUpdater()
throws Exception
connectUpdater in interface DeltaListManagementWrapperException - an error occuredpublic int connectLookup()
throws Exception
connectLookup in interface DeltaListManagementWrapperException - an error occurredpublic void disconnectUpdater(int updaterID)
throws Exception
disconnectUpdater in interface DeltaListManagementWrapperupdaterID - the ID of the updater to disconnectException - an error occurredpublic org.gcube.indexmanagement.storagehandling.stubs.DeltaFileInfoType getDeltaFileInfo(int idx)
throws Exception
getDeltaFileInfo in interface DeltaListManagementWrapperidx - the index of delta file in questionException - an error occurredpublic org.gcube.indexmanagement.storagehandling.stubs.DeltaFileInfoType[] getDeltaFileList()
throws Exception
getDeltaFileList in interface DeltaListManagementWrapperException - an error occurredpublic void mergeDeltaFile(org.gcube.indexmanagement.storagehandling.stubs.DeltaFileInfoType deltaInfo)
throws Exception
mergeDeltaFile in interface DeltaListManagementWrapperdeltaInfo - info about the delta file to mergeException - an error occurredpublic org.globus.wsrf.core.notification.SubscriptionManager subscribeForAdditions(org.gcube.indexmanagement.common.IndexNotificationConsumer consumer)
throws Exception
subscribeForAdditions in interface DeltaListManagementWrapperException - an error occuredpublic org.globus.wsrf.core.notification.SubscriptionManager subscribeForDeletions(org.gcube.indexmanagement.common.IndexNotificationConsumer consumer)
throws Exception
subscribeForDeletions in interface DeltaListManagementWrapperException - an error occuredpublic org.globus.wsrf.core.notification.SubscriptionManager subscribeForIndexRemoval(org.gcube.indexmanagement.common.IndexNotificationConsumer consumer)
throws Exception
subscribeForIndexRemoval in interface DeltaListManagementWrapperExceptionpublic org.globus.wsrf.core.notification.SubscriptionManager subscribeForManagerCreation(org.gcube.indexmanagement.common.IndexNotificationConsumer consumer)
throws Exception
subscribeForManagerCreation in interface DeltaListManagementWrapperExceptionCopyright © 2014. All Rights Reserved.