org.gcube.indexmanagement.incrementalindexupdater
Class IncrementalIndexUpdaterResource

java.lang.Object
  extended by GCUBEWSResource
      extended by org.gcube.indexmanagement.incrementalindexupdater.IncrementalIndexUpdaterResource

public class IncrementalIndexUpdaterResource
extends GCUBEWSResource

Contain the resource instances. More precisely index information like type, format, name, modified date and so on.


Field Summary
static java.lang.String RP_COLLECTION_ID
           
static java.lang.String RP_INDEX_ID
           
static java.lang.String RP_TYPEOFINDEX
           
 
Constructor Summary
IncrementalIndexUpdaterResource()
          The IncrementalIndexUpdater constructor.
 
Method Summary
 org.globus.wsrf.ResourceProperty createProperty(java.lang.String propName)
           
 java.lang.String[] getCollectionID()
          Getter method for the CollectionID list Resource Property
 java.lang.String getIndexID()
          Getter method for the IndexID Resource Property
 java.lang.String getTypeOfIndex()
          Getter method for the TypeOfIndex Resource Property
 void onLoad(java.io.ObjectInputStream ois, boolean firstLoad)
          Loads the state of the resource from disk
 void onStore(java.io.ObjectOutputStream oos)
          Stores the state of the resource to disk
 void setCollectionID(java.lang.String[] collectionIDs)
          Setter method for the CollectionID list Resource Property
 void setIndexID(java.lang.String indexID)
          Setter method for the IndexID Resource Property
 void setTypeOfIndex(java.lang.String type)
          Setter method for the TypeOfIndex Resource Property
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RP_INDEX_ID

public static final java.lang.String RP_INDEX_ID
See Also:
Constant Field Values

RP_COLLECTION_ID

public static final java.lang.String RP_COLLECTION_ID
See Also:
Constant Field Values

RP_TYPEOFINDEX

public static final java.lang.String RP_TYPEOFINDEX
See Also:
Constant Field Values
Constructor Detail

IncrementalIndexUpdaterResource

public IncrementalIndexUpdaterResource()
The IncrementalIndexUpdater constructor.

Method Detail

onStore

public void onStore(java.io.ObjectOutputStream oos)
             throws java.lang.Exception
Stores the state of the resource to disk

Parameters:
oos - the output stream to write to
Throws:
java.lang.Exception

onLoad

public void onLoad(java.io.ObjectInputStream ois,
                   boolean firstLoad)
            throws java.lang.Exception
Loads the state of the resource from disk

Parameters:
ois - the input stream to read from
firstLoad -
Throws:
java.lang.Exception

getIndexID

public java.lang.String getIndexID()
Getter method for the IndexID Resource Property

Returns:
String the requested indexID

setIndexID

public void setIndexID(java.lang.String indexID)
Setter method for the IndexID Resource Property

Parameters:
indexID - String the new IndexId

getTypeOfIndex

public java.lang.String getTypeOfIndex()
Getter method for the TypeOfIndex Resource Property

Returns:
String the requested TypeOfIndex

setTypeOfIndex

public void setTypeOfIndex(java.lang.String type)
Setter method for the TypeOfIndex Resource Property

Parameters:
indexID - String the new TypeOfIndex

getCollectionID

public java.lang.String[] getCollectionID()
Getter method for the CollectionID list Resource Property

Returns:
String[] the requested CollectionIDs

setCollectionID

public void setCollectionID(java.lang.String[] collectionIDs)
                     throws java.lang.Exception
Setter method for the CollectionID list Resource Property

Parameters:
String[] - the new CollectionIDs
Throws:
java.lang.Exception

createProperty

public org.globus.wsrf.ResourceProperty createProperty(java.lang.String propName)
                                                throws java.lang.Exception
Throws:
java.lang.Exception