|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.utils.handlers.GCUBEServiceClientImpl
org.gcube.common.core.state.GCUBEStatefulResource<org.gcube.common.core.state.GCUBEWSResourceKey>
org.gcube.common.core.state.GCUBEWSResource
org.gcube.indexmanagement.common.IndexWSResource
org.gcube.indexmanagement.common.IndexUpdaterWSResource
public abstract class IndexUpdaterWSResource
| Nested Class Summary | |
|---|---|
class |
IndexUpdaterWSResource.ConsumerNotification
Class that handles the consuming of received notifications |
| Nested classes/interfaces inherited from class org.gcube.indexmanagement.common.IndexWSResource |
|---|
IndexWSResource.DestructionMode |
| Nested classes/interfaces inherited from class org.gcube.common.core.state.GCUBEStatefulResource |
|---|
org.gcube.common.core.state.GCUBEStatefulResource.LOCK, org.gcube.common.core.state.GCUBEStatefulResource.TaskContext |
| Field Summary | |
|---|---|
static String |
RP_CONNECTION_ID
The list of standard resource properties defined by every index updater resource |
static String |
RP_DELTA_FILE_SIZE
|
static String |
RP_INDEX_STATUS
|
static String |
RP_IS_UPDATED
|
protected QName |
sharedStateChangeTopicName
The state change notification topic QName |
static String |
UPDATER_STATUS_EMPTY
The list of possible updater status values |
static String |
UPDATER_STATUS_FINISHED
|
static String |
UPDATER_STATUS_UPDATING
|
| Fields inherited from class org.gcube.indexmanagement.common.IndexWSResource |
|---|
bInitializing, destructionMode, initLock, namespace, propNames, RP_COLLECTION_ID, RP_CREATED, RP_FIELDS, RP_INDEX_ID, RP_INDEX_TYPE_NAME, RP_MODIFIED, topicRegistrar |
| Fields inherited from class org.gcube.common.core.state.GCUBEStatefulResource |
|---|
uuidGen |
| Constructor Summary | |
|---|---|
IndexUpdaterWSResource()
|
|
| Method Summary | |
|---|---|
void |
addConnectionID(int connID)
Adds a connection ID |
String |
getConnectionID()
Getter method for the ConnectionID Resource Property |
long |
getDeltaFileSize()
Getter method for the DeltaFileSize Resource Property |
String |
getIndexStatus()
Getter method for the IndexStatus Resource Property |
boolean |
getIsUpdated()
Getter method for the IsUpdated Resource Property |
String |
getManagementResourceNamespace()
Returns the namespace of the management resource associated with this updater resource |
void |
initialize(String namespace,
String managementServiceNamespace,
String indexID,
String indexTypeName,
String[] collectionID)
Initializes the index management resource. |
protected void |
onLoad(ObjectInputStream ois,
boolean firstLoad)
Invoked when a resource is being created from a serialized, previously saved state. |
void |
onResourceRemoval()
Performs clean-up operations before the resource is removed from the home |
protected void |
onStore(ObjectOutputStream oos)
Invoked when the state of the resource must be saved (resource serialization) |
abstract void |
onUpdaterNotificationReceived(Element message)
Invoked whenever a message is received for this consumer. |
void |
setConnectionID(String connectionID)
Setter method for the ConnectionID Resource Property |
void |
setDeltaFileSize(long mergeInterval)
Setter method for the DeltaFileSize Resource Property |
void |
setIndexStatus(String indexStatus)
Setter method for the IndexStatus Resource Property |
void |
setIsUpdated(boolean isUpdated)
Setter method for the IsUpdated Resource Property |
| Methods inherited from class org.gcube.indexmanagement.common.IndexWSResource |
|---|
addCollectionID, addField, createProperty, createProperty, createTopic, createTopic, filterFieldInfo, getCollectionID, getCreated, getDestructionMode, getFields, getIndexID, getIndexTypeName, getModified, getNamespace, getPropertyNames, initialise, isInitializing, isTopicRegistered, publish, setCollectionID, setCreated, setDestructionMode, setFields, setIndexID, setIndexTypeName, setIsInitializing, setModified, store, waitUntilInitialized |
| Methods inherited from class org.gcube.common.core.state.GCUBEWSResource |
|---|
getCurrentTime, getEPR, getPorttypeContext, getProperty, getPublisher, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, getTopicNames, initialise, initialise, initialiseContainers, inScope, load, setPortTypeContext, setTerminationTime, unpublish |
| Methods inherited from class org.gcube.common.core.state.GCUBEStatefulResource |
|---|
getID, getLock, getScheduledTasks, getScope, launchTask, onRemove, setID, setPersistenceDelegate, stopTask |
| Methods inherited from class org.gcube.common.core.utils.handlers.GCUBEServiceClientImpl |
|---|
getPortTypeMap, setPortTypeMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String RP_CONNECTION_ID
public static final String RP_INDEX_STATUS
public static final String RP_IS_UPDATED
public static final String RP_DELTA_FILE_SIZE
public static final String UPDATER_STATUS_EMPTY
public static final String UPDATER_STATUS_UPDATING
public static final String UPDATER_STATUS_FINISHED
protected QName sharedStateChangeTopicName
| Constructor Detail |
|---|
public IndexUpdaterWSResource()
| Method Detail |
|---|
public void initialize(String namespace,
String managementServiceNamespace,
String indexID,
String indexTypeName,
String[] collectionID)
throws Exception
namespace - the namespace of the service that this resource belongs tomanagementServiceNamespace - the namespace of the corresponding index management serviceindexID - the indexID of this resourceindexTypeName - the index type name of this resourcecollectionID - the list of collection IDs of this resource
Exception - an error occured
protected void onLoad(ObjectInputStream ois,
boolean firstLoad)
throws Exception
onLoad in class IndexWSResourceois - the input stream through which the state can be read
Exception - an error occured during resource deserialization
protected void onStore(ObjectOutputStream oos)
throws Exception
onStore in class IndexWSResourceoos - the output stream to write the resource state to
Exception - an error occured during resource serializationpublic String getIndexStatus()
String the requested status indicatorpublic long getDeltaFileSize()
long the requested DeltaFileSize valuepublic boolean getIsUpdated()
boolean the requested IsUpdated indicatorpublic void addConnectionID(int connID)
connID - - the connectionID to addpublic String getConnectionID()
String the requested ConnectionID
public void setConnectionID(String connectionID)
throws Exception
ConnectionID - String[] the new Connection identifier
Exceptionpublic void setDeltaFileSize(long mergeInterval)
mergeInterval - long the new DeltaFileSize in bytespublic void setIsUpdated(boolean isUpdated)
isUpdated - boolean the updated flagpublic void setIndexStatus(String indexStatus)
indexStatus - String the new status of the resourcepublic String getManagementResourceNamespace()
public void onResourceRemoval()
IndexWSResource
onResourceRemoval in class IndexWSResourcepublic abstract void onUpdaterNotificationReceived(Element message)
message - the received message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||