|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.agmodel.metDriver.ClimDBApacheSOAP
Title:
Description:
Copyright: Copyright (c) 2002
Company:
| Field Summary | |
static Map |
climDBVar2MetBroker
|
static String |
objectURI
|
static URL |
rpcrouter
|
static TimeZone |
tz
|
| Constructor Summary | |
ClimDBApacheSOAP(MetSourceForDrivers metSource,
Properties properties)
|
|
| Method Summary | |
Vector[] |
call(Vector params,
String methodName)
|
void |
checkForDatabaseUpdates()
connect to database and check the metadata |
boolean |
connectForData(String username,
String password)
Called before data is retrieved from the AccessMechanism |
boolean |
connectForMetaData(String username,
String password)
Called before metadata is retrieved from the AccessMechanism |
void |
disconnectFromData()
Called after data is retrieved from the AccessMechanism using connectForData. |
void |
disconnectFromMetaData()
Called after meta data is retrieved from the AccessMechanism using connectForMetaData. |
TimeZone |
getDatabaseTimeZone()
|
Vector[] |
getVariablebySiteStationTime(String regionID,
String stationID,
Interval ofInterest,
String variable)
|
void |
queryForStation(MetRequest request,
String stationID,
StationDataSetImpl result)
Retrieve the relevant data from a single station. |
void |
stationsForRegion(String regionID)
|
void |
updateRegionList()
Update the list of regions (if any) held by the MetSource |
void |
updateStationList(String fromName)
Update the list of stations held by the MetSource |
Set |
variablesForStation(String regionID,
String stationID)
|
Period |
variableTimeRange(String regionID,
String stationID,
String variableID)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final TimeZone tz
public static URL rpcrouter
public static final Map climDBVar2MetBroker
public static final String objectURI
| Constructor Detail |
public ClimDBApacheSOAP(MetSourceForDrivers metSource,
Properties properties)
| Method Detail |
public void queryForStation(MetRequest request,
String stationID,
StationDataSetImpl result)
throws ConnectionException
MetAccessMechanism
queryForStation in interface MetAccessMechanismrequest - describes what data is requiredstationID - identifies which station from the met data source to queryresult - the skeletal query result (created by MetSourceImpl) for the driver fill in with data
hostID is the native identifier for the station on the host database system.ConnectionExceptionpublic TimeZone getDatabaseTimeZone()
getDatabaseTimeZone in interface MetAccessMechanism
public void updateRegionList()
throws GeneralException
MetAccessMechanism
updateRegionList in interface MetAccessMechanismGeneralException
public void updateStationList(String fromName)
throws GeneralException
MetAccessMechanism
updateStationList in interface MetAccessMechanismfromName - start the update from this station (the driver may ignore this value and update all stations)
The fromStation parameter is intended to help with large databases where, particularly during driver development, the
updating process may fail midway through. It avoids the need to start again from the beginning. Drivers are welcome to entirely ignore this parameter.
A null parameter value indicates that updating should start from the beginning.
GeneralExceptionpublic void stationsForRegion(String regionID)
public Set variablesForStation(String regionID,
String stationID)
public Period variableTimeRange(String regionID,
String stationID,
String variableID)
throws ParseException
ParseException
public boolean connectForData(String username,
String password)
throws ConnectionException
DBAccessMechanism
connectForData in interface DBAccessMechanismusername - a valid username for the database if it requires it, or null otherwise.password - the corresponding password (not encrypted) if required, or null otherwise.
ConnectionException - if a connection could not be established
public void disconnectFromData()
throws ConnectionException
DBAccessMechanism
disconnectFromData in interface DBAccessMechanismConnectionException - if a connection could not be disconnected
public boolean connectForMetaData(String username,
String password)
throws ConnectionException
DBAccessMechanism
connectForMetaData in interface DBAccessMechanismusername - a valid username for the database if it requires it, or null otherwise.password - the corresponding password (not encrypted) if required, or null otherwise.
ConnectionException - if a connection could not be established
public void disconnectFromMetaData()
throws ConnectionException
DBAccessMechanism
disconnectFromMetaData in interface DBAccessMechanismConnectionException - if a connection could not be disconnectedpublic void checkForDatabaseUpdates()
DBAccessMechanism
checkForDatabaseUpdates in interface DBAccessMechanism
public Vector[] getVariablebySiteStationTime(String regionID,
String stationID,
Interval ofInterest,
String variable)
public Vector[] call(Vector params,
String methodName)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||