|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Handles:
database connections,
requests for details of databases and weather stations, and
requests for weather data.
Typically a client establishes a MetBroker session through a call to ServerRMI.getConnection(String,String).
The session manages connections to data sources, and also provides lists of available MetDataSources.
MetBroker decides how to deal with requests for met data either from single stations, or over geographical areas.
The session only exists for the duration of a user session, and doesn't serve any other clients.
| Field Summary | |
static String |
AMEDAS
MAFF's database of AMeDAS data accessed via HTML |
static String |
CLIDB
The New Zealand National Climate Database |
static String |
FAWN
Florida Agricultural Weather Network |
static String |
GAEMN
The Georgia Agricultural Environment Monitoring Network |
static String |
HRI
Horticulture Research International (UK) database of two sites |
static String |
PAWS
Pacific Automatic Weather Service |
static String |
PREFMETDB
A small database containing data from various individual sites |
static String |
RMIHOSTPARAM
|
static String |
RMINAME
The name that MetBroker is registered under in rmiregistry |
static String |
SASA
South African Sugar Association |
| Fields inherited from interface net.agmodel.genericBroker.GenericBrokerRMI |
EMAIL, HOSTPARAMEXTENSION, NOLOGIN, PASSWORD |
| Fields inherited from interface net.agmodel.genericBroker.ServerRMI |
EXISTINGUSER, NEWUSER, SUPERUSER |
| Method Summary | |
boolean[][] |
getMetCatalog(String sessionID,
String metSourceID,
String stationID)
Deprecated. Use getWeatherStation instead |
MetSourceDetail |
getMetSourceDetail(String sessionID,
String metSourceID)
Gets details about the MetSource in one object. |
Region |
getRegion(String sessionID,
String metSourceID,
String regionID)
Gets details of a region associated with a data source. |
GeographicalArea |
getSourceGeographicalArea(String sessionID,
String metSourceID)
Deprecated. Use getMetSourceDetails or getSourceDetail |
int |
getSourceLoginRequirements(String sessionID,
String metSourceID)
Deprecated. Use getMetSourceDetails or getSourceDetail |
String |
getSourceName(String sessionID,
String metSourceID)
Deprecated. Use getMetSourceDetail or getSourceDetail |
float |
getSourceSuggestedDailyOffset(String sessionID,
String metSourceID)
Deprecated. Use getMetSourceDetails or getSourceDetail |
String |
getSourceSuggestedTimezone(String sessionID,
String metSourceID)
Deprecated. Use getMetSourceDetails or getSourceDetail |
Location |
getStationLocation(String sessionID,
String metSourceID,
String stationID)
Deprecated. Use getWeatherStation instead |
String |
getStationName(String sessionID,
String metSourceID,
String stationID)
Deprecated. Use getWeatherStation instead |
Period |
getStationOperational(String sessionID,
String metSourceID,
String stationID)
Deprecated. Use getWeatherStation instead |
String |
getStationRegionID(String sessionID,
String metSourceID,
String stationID)
Deprecated. Use getWeatherStation instead |
String |
getStationReport(String sessionID,
String metSourceID,
String stationID)
Deprecated. Use getWeatherStation instead |
WeatherStation |
getWeatherStation(String sessionID,
String metSourceID,
String stationID)
Get the details of the weather station |
WeatherStation[] |
listMatchingStations(String sessionID,
SpatialMetRequest request)
Get an array of all the stations that can potentially contribute to the request. |
MetSourceDetail[] |
listMetSourceDetails(String sessionID)
Get the details for all the MetSources in MetBroker. |
MetSourceDetail[] |
listMetSourceDetails(String sessionID,
GeographicalArea ofInterest)
Get the details of the MetSources in MetBroker that coincide with the area specified. |
String[] |
listMetSources(String sessionID)
Deprecated. Use listMetSourceDetails or listSourceDetails |
String[] |
listMetSources(String sessionID,
GeographicalArea ofInterest)
Deprecated. Use listMetSourceDetails or listSourceDetails |
Region[] |
listRegions(String sessionID,
String metSourceID)
Get a list of all regions for which the database holds data. |
WeatherStation[] |
listStations(String sessionID,
String metSourceID)
Get an array of all the stations in a source Typically used by a client application to get a subset of the entire list of stations for a large database. |
WeatherStation[] |
listStations(String sessionID,
String metSourceID,
String regionID)
Get an array of all the stations that can potentially contribute to the request Typically used by a client application to get a subset of the entire list of stations for a large database. |
boolean |
loginToMetDataSource(String sessionID,
String sourceID)
Deprecated. Use loginToDataSource instead |
boolean |
loginToMetDataSource(String sessionID,
String sourceID,
String emailAddress)
Deprecated. Use loginToDataSource instead |
boolean |
loginToMetDataSource(String sessionID,
String sourceID,
String usercode,
String password)
Deprecated. Use loginToDataSource instead |
boolean |
metCatalogCardExists(String sessionID,
String metSourceID,
String stationID,
MetElement element,
MetDuration resolution)
Deprecated. Use getWeatherStation instead |
SpatialMetSet |
supplyMetData(String sessionID,
SpatialMetRequest request)
Get the relevant data from multiple stations. |
StationDataSet |
supplyMetData(String sessionID,
StationMetRequest request)
Get the relevant data from a single station. |
| Methods inherited from interface net.agmodel.genericBroker.GenericBrokerRMI |
alreadyLoggedIn, getSourceDetail, getSourceID, listSourceDetails, listSourceDetails, loginToDataSource, loginToDataSource, loginToDataSource, logOutOfAllSources, logOutOfSource |
| Methods inherited from interface net.agmodel.genericBroker.ServerRMI |
disconnect, getConnection, getConnection |
| Field Detail |
public static final String RMINAME
public static final String RMIHOSTPARAM
public static final String PREFMETDB
public static final String GAEMN
public static final String CLIDB
public static final String HRI
public static final String AMEDAS
public static final String FAWN
public static final String SASA
public static final String PAWS
| Method Detail |
public String[] listMetSources(String sessionID)
throws RemoteException,
GeneralException
sessionID - the ID returned by getConnection
RemoteException
GeneralException
public String[] listMetSources(String sessionID,
GeographicalArea ofInterest)
throws RemoteException,
GeneralException
sessionID - the ID returned by getConnectionofInterest - the area from which weather data is required
RemoteException
GeneralException
public MetSourceDetail[] listMetSourceDetails(String sessionID)
throws RemoteException,
GeneralException
sessionID - the ID returned by getConnection
RemoteException
GeneralExceptionfor a generic version
public MetSourceDetail[] listMetSourceDetails(String sessionID,
GeographicalArea ofInterest)
throws RemoteException,
GeneralException
sessionID - the ID returned by getConnectionofInterest - the area from which weather data is required
RemoteException
GeneralExceptionfor a generic version
public boolean loginToMetDataSource(String sessionID,
String sourceID,
String usercode,
String password)
throws RemoteException,
GeneralException
sessionID - the ID returned by getConnectionsourceID - the identifier assigned to the source by MetBroker - see listMetSourcesusercode - a valid usercode on the sourcepassword - the corresponding password (warning - may be transmitted without encryption)
RemoteException
GeneralExceptiongetSourceLoginRequirements(String,String)
public boolean loginToMetDataSource(String sessionID,
String sourceID,
String emailAddress)
throws RemoteException,
GeneralException
sessionID - the ID returned by getConnectionsourceID - the identifier assigned to the source by MetBroker - see listMetSourcesemailAddress - the user's e-mail address
RemoteException
GeneralExceptiongetSourceLoginRequirements(String,String)
public boolean loginToMetDataSource(String sessionID,
String sourceID)
throws RemoteException,
GeneralException
sessionID - the ID returned by getConnectionsourceID - the identifier assigned to the source by MetBroker - see listMetSources
RemoteException
GeneralExceptiongetSourceLoginRequirements(String,String)
public StationDataSet supplyMetData(String sessionID,
StationMetRequest request)
throws RemoteException,
GeneralException
sessionID - the ID returned by getConnectionrequest - specifies which station get data for, and what data to get
RemoteException
GeneralException
public SpatialMetSet supplyMetData(String sessionID,
SpatialMetRequest request)
throws RemoteException,
GeneralException
sessionID - the ID returned by getConnectionrequest - specifies which area to get data for, and what data to get
RemoteException
GeneralException
public MetSourceDetail getMetSourceDetail(String sessionID,
String metSourceID)
throws RemoteException
sessionID - the ID returned by getConnection
IllegalArgumentException - if the language is not known
RemoteExceptionfor a generic version
public String getSourceName(String sessionID,
String metSourceID)
throws RemoteException,
IllegalArgumentException
sessionID - the ID returned by getConnection
IllegalArgumentException - if the source is not known
RemoteException
public GeographicalArea getSourceGeographicalArea(String sessionID,
String metSourceID)
throws RemoteException
sessionID - the ID returned by getConnectionmetSourceID - the identifier assigned to the source by MetBroker
RemoteException
public int getSourceLoginRequirements(String sessionID,
String metSourceID)
throws RemoteException
sessionID - the ID returned by getConnectionmetSourceID - the identifier assigned to the source by MetBroker
GenericBrokerRMI.NOLOGIN, GenericBrokerRMI.EMAIL, GenericBrokerRMI.PASSWORD)
RemoteException
public String getSourceSuggestedTimezone(String sessionID,
String metSourceID)
throws RemoteException
sessionID - the ID returned by getConnectionmetSourceID - the identifier assigned to the source by MetBroker
RemoteException
public float getSourceSuggestedDailyOffset(String sessionID,
String metSourceID)
throws RemoteException
sessionID - the ID returned by getConnectionmetSourceID - the identifier assigned to the source by MetBroker
RemoteException
public Region[] listRegions(String sessionID,
String metSourceID)
throws RemoteException
sessionID - the ID returned by getConnectionmetSourceID - the identifier for the metsource
RemoteException
public Region getRegion(String sessionID,
String metSourceID,
String regionID)
throws RemoteException
sessionID - the ID returned by getConnectionmetSourceID - the identifier for the metsourceregionID - the identifier for the region
RemoteException
public WeatherStation[] listStations(String sessionID,
String metSourceID)
throws RemoteException
sessionID - the ID returned by getConnectionmetSourceID - the identifier for the metsource
RemoteException
public WeatherStation[] listStations(String sessionID,
String metSourceID,
String regionID)
throws RemoteException
sessionID - the ID returned by getConnectionmetSourceID - the identifier for the metsourceregionID - specifies the region for which data is required
RemoteException
public WeatherStation[] listMatchingStations(String sessionID,
SpatialMetRequest request)
throws RemoteException
sessionID - the ID returned by getConnectionrequest - specifies the data required
RemoteException
public WeatherStation getWeatherStation(String sessionID,
String metSourceID,
String stationID)
throws RemoteException
sessionID - the ID returned by getConnectionmetSourceID - the identifier assigned to the source by MetBrokerstationID - the identifier for the station used by the host database.
RemoteException
public Period getStationOperational(String sessionID,
String metSourceID,
String stationID)
throws RemoteException
sessionID - the ID returned by getConnectionmetSourceID - the identifier assigned to the source by MetBrokerstationID - the identifier for the station used by the host database.
RemoteException
public boolean metCatalogCardExists(String sessionID,
String metSourceID,
String stationID,
MetElement element,
MetDuration resolution)
throws RemoteException
sessionID - the ID returned by getConnectionmetSourceID - the identifier assigned to the source by MetBrokerstationID - the identifier for the station used by the host database.element - the weather element of interestresolution - the temporal resolution (eg hourly or daily)
RemoteException
public boolean[][] getMetCatalog(String sessionID,
String metSourceID,
String stationID)
throws RemoteException
sessionID - the ID returned by getConnectionmetSourceID - the identifier assigned to the source by MetBrokerstationID - the identifier for the station used by the host database.
RemoteException
public String getStationReport(String sessionID,
String metSourceID,
String stationID)
throws RemoteException
sessionID - the ID returned by getConnectionmetSourceID - the identifier assigned to the source by MetBrokerstationID - the identifier for the station used by the host database.
RemoteException
public String getStationName(String sessionID,
String metSourceID,
String stationID)
throws RemoteException
sessionID - the ID returned by getConnectionmetSourceID - the identifier assigned to the source by MetBrokerstationID - the identifier for the station used by the host database.
RemoteException
public String getStationRegionID(String sessionID,
String metSourceID,
String stationID)
throws RemoteException
sessionID - the ID returned by getConnectionmetSourceID - the identifier assigned to the source by MetBrokerstationID - the identifier for the station used by the host database.
RemoteException
public Location getStationLocation(String sessionID,
String metSourceID,
String stationID)
throws RemoteException
sessionID - the ID returned by getConnectionmetSourceID - the identifier assigned to the source by MetBrokerstationID - the identifier for the station used by the host database.
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||