|
||||||||||
| 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.IndexManagementWSResource
public abstract class IndexManagementWSResource
| Nested Class Summary |
|---|
| 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 |
MANAGER_STATUS_EMPTY
The list of possible management status values |
static String |
MANAGER_STATUS_FINISHED
|
static String |
MANAGER_STATUS_UPDATING
|
protected org.globus.wsrf.Topic |
sharedStateChangeTopic
The state change notification topic |
| 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 | |
|---|---|
IndexManagementWSResource()
|
|
| Method Summary | |
|---|---|
void |
addUpdater(int updater)
Adds a new value to the Updater Resource Property |
void |
deleteUpdater(int updater)
Deletes a value from the Updater Resource Property |
int |
getConnectionCount()
Getter method for the ConnectionCount Resource Property |
int |
getDocumentCount()
Getter method for the DocumentCount Resource Property |
String |
getIndexStatus()
Getter method for the IndexStatus Resource Property |
int[] |
getUpdater()
Getter method for the Updater Resource Property |
int |
getUpdaterCount()
Returns the number of values in the Updater Resource Property |
void |
initialise(String namespace,
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. |
protected void |
onStore(ObjectOutputStream oos)
Invoked when the state of the resource must be saved (resource serialization) |
void |
sendSharedStateChangeNotification(Object message)
Sends a state change notification message |
void |
setConnectionCount(int connectionCount)
Setter method for the ConnectionCount Resource Property |
void |
setDocumentCount(int docCount)
Setter method for the DocumentCount Resource Property |
void |
setIndexStatus(String indexStatus)
Setter method for the IndexStatus Resource Property |
void |
setUpdater(int[] updaters)
Setter method for the Updater 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, isInitializing, isTopicRegistered, onResourceRemoval, 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 MANAGER_STATUS_EMPTY
public static final String MANAGER_STATUS_UPDATING
public static final String MANAGER_STATUS_FINISHED
protected org.globus.wsrf.Topic sharedStateChangeTopic
| Constructor Detail |
|---|
public IndexManagementWSResource()
| Method Detail |
|---|
public void initialise(String namespace,
String indexID,
String indexTypeName,
String[] collectionID)
throws Exception
initialise in class IndexWSResourcenamespace - the namespace of the service that this resource belongs toindexID - 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 readindicates - if the resource is being loaded for the first time (hard load) or not (soft load)
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 void sendSharedStateChangeNotification(Object message)
message - the notification message to sendpublic String getIndexStatus()
String the requested status indicatorpublic int getConnectionCount()
int the requested ConnectionCountpublic int getDocumentCount()
int the requested DocumentCountpublic int[] getUpdater()
int[] the values of the requested Updater propertypublic int getUpdaterCount()
public void setIndexStatus(String indexStatus)
indexStatus - String the new status of the resourcepublic void setConnectionCount(int connectionCount)
ConnectionCount - int the new Connection countpublic void setDocumentCount(int docCount)
DocumentCount - int the new document countpublic void setUpdater(int[] updaters)
updater - int[] the new updater valuespublic void addUpdater(int updater)
updater - int the new updaterpublic void deleteUpdater(int updater)
updater - int the updater value to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||