|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectIndexUpdaterWSResource
org.gcube.indexmanagement.geoindexupdater.GeoIndexUpdaterResource
public class GeoIndexUpdaterResource
A class which is used to update a Geo index, containing stateful information regarding the update process .
Field Summary | |
---|---|
static java.lang.String |
RP_GEOGRAPHICAL_SYSTEM
|
static java.lang.String |
RP_NUMBER_OF_DECIMALS
|
static java.lang.String |
RP_UNIT_OF_MEASUREMENT
|
Constructor Summary | |
---|---|
GeoIndexUpdaterResource()
Empty constructor. |
Method Summary | |
---|---|
void |
add(AddEnvelope[] envelopes)
Adds an geographical objects into the index by means of an AddEnvelope (stub) array. |
void |
closeCurrentDeltaFile()
Closes and uploads the current delta file, and creates a new one. |
java.lang.String |
getGeographicalSystem()
Getter method for the GeographicalSystem Resource Property |
GCUBEWSResourceKey |
getKey()
Method returning the key (unique id) of the resource as a ResourceKey. |
java.lang.Integer |
getNumberOfDecimals()
Getter method for the NumberOfDecimals Resource Property |
java.lang.String |
getUnitOfMeasurement()
Getter method for the UnitOfMeasurement Resource Property |
void |
initialise(java.lang.Object... args)
This method is used to initialize the resource instance, and must be called before using the resource instance. |
boolean |
isDeltaComplete()
A method indicating whether the current delta file is full/complete |
void |
onResourceRemoval()
|
void |
onUpdaterNotificationReceived(org.w3c.dom.Element arg0)
|
java.util.concurrent.FutureTask<java.lang.Boolean> |
processResultSet(java.lang.String resultSetLocation)
Inserts ResultSet of ROWSETS information into an index. |
void |
setGeographicalSystem(java.lang.String geographicalSystem)
Setter method for the GeographicalSystem Resource Property |
void |
setIndexTypeName(java.lang.String indexTypeName)
|
void |
setNumberOfDecimals(java.lang.Integer numberOfDecimals)
Setter method for the NumberOfDecimals Resource Property |
void |
setUnitOfMeasurement(java.lang.String unitOfMeasurement)
Setter method for the UnitOfMeasurement Resource Property |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RP_GEOGRAPHICAL_SYSTEM
public static final java.lang.String RP_UNIT_OF_MEASUREMENT
public static final java.lang.String RP_NUMBER_OF_DECIMALS
Constructor Detail |
---|
public GeoIndexUpdaterResource()
Method Detail |
---|
public GCUBEWSResourceKey getKey()
ResourceKey
- the key/UniqueID of the resourcepublic void initialise(java.lang.Object... args) throws java.lang.Exception
args[0]
- - key GCUBEWSResourceKey
- the key of the resourceargs[1]
- - indexID String
- the ID of the index to updateargs[2]
- - indexTypeID String
- the ID of the IndexType of the indexargs[3]
- - geographicalSystem String
- the geographical system used for the Index (WGS_1984, none...)args[4]
- - unitOfMeasurement String
- the unit of measurement used in the Index (DD, DecimalDegrees, cm, CentiMeters...)args[5]
- - numberOfDecimals Integer
- the maximum number of decimals in the coordinates of objects (usually 4 for decimal degrees).
java.lang.Exception
public java.lang.String getGeographicalSystem()
String
the requested GeographicalSystem identifierpublic java.lang.String getUnitOfMeasurement()
String
the requested UnitOfMeasurementpublic java.lang.Integer getNumberOfDecimals()
Integer
the requested NumberOfDecimals valuepublic void setGeographicalSystem(java.lang.String geographicalSystem)
indexID
- String
the new GeographicalSystem identifierpublic void setUnitOfMeasurement(java.lang.String unitOfMeasurement)
indexID
- String
the new UnitOfMeasurementpublic void setNumberOfDecimals(java.lang.Integer numberOfDecimals)
numberOfDecimals
- Integer
the new NumberOfDecimalspublic void setIndexTypeName(java.lang.String indexTypeName) throws java.lang.Exception
java.lang.Exception
public void add(AddEnvelope[] envelopes) throws java.lang.Exception
envelopes
- AddEnvelope[]
- the array of envelopes to insert
java.lang.Exception
public java.util.concurrent.FutureTask<java.lang.Boolean> processResultSet(java.lang.String resultSetLocation) throws java.rmi.RemoteException
resultSetLocation
- String
- a String representation of the ResultSet EPR
ProcessResultSetResponse
- empty object.
java.rmi.RemoteException
public boolean isDeltaComplete()
boolean
an indicater of whether the current delta file is full/completepublic void closeCurrentDeltaFile()
public void onResourceRemoval()
public void onUpdaterNotificationReceived(org.w3c.dom.Element arg0)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |