public class DeltaListManagementHandler extends Object
| Constructor and Description |
|---|
DeltaListManagementHandler() |
DeltaListManagementHandler(org.gcube.indexmanagement.common.IndexManagementWSResource resource,
String stateFilename) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the delta list management handler by performing clean up.
|
int |
connectLookup() |
int |
connectUpdater() |
void |
disconnectUpdater(int connectionID) |
String |
getDeltaFileCollectionID() |
org.gcube.indexmanagement.storagehandling.stubs.DeltaFileInfoType |
getDeltaFileInfo(int idx) |
org.gcube.indexmanagement.storagehandling.stubs.DeltaFileInfoType[] |
getDeltaFileList() |
org.gcube.indexmanagement.common.IndexWSResource |
getResource() |
boolean |
isUpdating() |
void |
loadState(ObjectInputStream ois,
boolean firstLoad,
org.gcube.indexmanagement.common.IndexManagementWSResource resource)
Loads the current state of this DeltaListManagementHandler from an object stream.
|
protected void |
mergeDeltaFile(org.gcube.indexmanagement.storagehandling.stubs.DeltaFileInfoType deltaInfo,
boolean bSendUpdateNotification) |
void |
setIndexResourceScopeToDeltaListManagementScope()
Sets the scope of the current thread in the service context of the index resource to
the scope of the current thread as given by the DeltaListManagementHandler's ServiceContext.
|
void |
storeState(ObjectOutputStream oos)
Stores the current state of this DeltaListManagementHandler to an object stream.
|
public DeltaListManagementHandler()
public DeltaListManagementHandler(org.gcube.indexmanagement.common.IndexManagementWSResource resource,
String stateFilename)
throws org.gcube.indexmanagement.common.IndexException
org.gcube.indexmanagement.common.IndexExceptionpublic void storeState(ObjectOutputStream oos)
oos - the output streampublic void loadState(ObjectInputStream ois, boolean firstLoad, org.gcube.indexmanagement.common.IndexManagementWSResource resource) throws Exception
ois - the input streamfirstLoad - specifies whether this is the first load or notresource - the manager resource associated with this DeltaListManagementHandlerExceptionpublic int connectLookup()
throws org.gcube.indexmanagement.common.IndexException
org.gcube.indexmanagement.common.IndexExceptionpublic int connectUpdater()
throws org.gcube.indexmanagement.common.IndexException
org.gcube.indexmanagement.common.IndexExceptionpublic void disconnectUpdater(int connectionID)
protected void mergeDeltaFile(org.gcube.indexmanagement.storagehandling.stubs.DeltaFileInfoType deltaInfo,
boolean bSendUpdateNotification)
throws Exception
Exceptionpublic org.gcube.indexmanagement.storagehandling.stubs.DeltaFileInfoType getDeltaFileInfo(int idx)
public org.gcube.indexmanagement.storagehandling.stubs.DeltaFileInfoType[] getDeltaFileList()
public void close()
public void setIndexResourceScopeToDeltaListManagementScope()
public boolean isUpdating()
public org.gcube.indexmanagement.common.IndexWSResource getResource()
public String getDeltaFileCollectionID()
Copyright © 2014. All Rights Reserved.