public abstract class IndexLookupWSResource extends IndexWSResource
| Modifier and Type | Class and Description |
|---|---|
class |
IndexLookupWSResource.ConsumerNotification
Class that handles the consuming of received notifications
|
IndexWSResource.DestructionMode| Modifier and Type | Field and Description |
|---|---|
protected org.globus.wsrf.Topic |
indexChangeTopic
The index update notification topic
|
static String |
RP_CONNECTION_ID
The list of standard resource properties defined by every lookup index resource
|
static String |
RP_DOCCOUNT |
static String |
RP_SUPPORTED_RELATIONS |
protected QName |
sharedStateChangeTopicName
The state change notification topic QName
|
bInitializing, destructionMode, initLock, namespace, propNames, RP_COLLECTION_ID, RP_CREATED, RP_FIELDS, RP_INDEX_ID, RP_INDEX_TYPE_NAME, RP_MODIFIED, topicRegistrar| Constructor and Description |
|---|
IndexLookupWSResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionID(Integer connectionID)
Adds a connection ID.
|
void |
changeDocumentCount(int change)
Modifies the DocumentCount Resource Property
|
int |
getConnectionID()
Getter method for the ConnectionID Resource Property
|
int |
getDocumentCount()
Getter method for the DocumentCount Resource Property
|
String |
getIndexDataDirectory()
Returns the local directory where index data is stored
|
String |
getManagementResourceNamespace()
Returns the namespace of the management resource associated with this lookup resource
|
String[] |
getSupportedRelations()
Getter method for the SupportedRelations list Resource Property
|
void |
initialise(String namespace,
String managementServiceNamespace,
String indexID,
String indexTypeName,
String[] collectionID,
String dataDir,
String[] supportedRelations)
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.
|
abstract void |
onLookupNotificationReceived(Element message)
Invoked whenever a message is received for this consumer.
|
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)
|
void |
sendIndexChangeNotification(Object message)
Sends a state change notification message
|
void |
setConnectionID(int connectionID)
Setter method for the ConnectionID Resource Property.
|
void |
setDocumentCount(int documentCount)
Setter method for the DocumentCount Resource Property
|
void |
setSupportedRelations(String[] relations)
Setter method for the SupportedRelations list Resource Property
|
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, waitUntilInitializedgetCurrentTime, getEPR, getPorttypeContext, getProperty, getPublisher, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, getTopicNames, initialise, initialise, initialiseContainers, inScope, load, setPortTypeContext, setTerminationTime, unpublishgetID, getLock, getScheduledTasks, getScope, launchTask, onRemove, setID, setPersistenceDelegate, stopTaskpublic static final String RP_CONNECTION_ID
public static final String RP_DOCCOUNT
public static final String RP_SUPPORTED_RELATIONS
protected QName sharedStateChangeTopicName
protected org.globus.wsrf.Topic indexChangeTopic
public void initialise(String namespace, String managementServiceNamespace, String indexID, String indexTypeName, String[] collectionID, String dataDir, String[] supportedRelations) 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 resourcedataDir - the local directory where index data is storedException - an error occuredprotected 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 deserializationprotected void onStore(ObjectOutputStream oos) throws Exception
onStore in class IndexWSResourceoos - the output stream to write the resource state toException - an error occured during resource serializationpublic void sendIndexChangeNotification(Object message)
message - the notification message to sendpublic int getConnectionID()
int the requested connection numberpublic void setConnectionID(int connectionID)
connectionID - - the id of the connectionpublic void addConnectionID(Integer connectionID)
connectionID - public void setDocumentCount(int documentCount)
documentCount - int the new document countpublic int getDocumentCount()
int.public String[] getSupportedRelations()
String[] the requested SupportedRelationspublic void setSupportedRelations(String[] relations) throws Exception
String[] - the new SupportedRelationsExceptionpublic void changeDocumentCount(int change)
public String getIndexDataDirectory()
public String getManagementResourceNamespace()
public void onResourceRemoval()
IndexWSResourceonResourceRemoval in class IndexWSResourcepublic abstract void onLookupNotificationReceived(Element message)
message - the received messageCopyright © 2014. All Rights Reserved.