|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
net.agmodel.brokerImpl.GenericBrokerImpl
net.agmodel.metBroker.MetBrokerImpl
An implementation of MetBroker which maintains a list of the user's active connections
| Nested Class Summary |
| Nested classes inherited from class net.agmodel.brokerImpl.GenericBrokerImpl |
GenericBrokerImpl.DBCheckAndUpdate |
| Field Summary |
| Fields inherited from interface net.agmodel.weatherData.MetBroker |
AMEDAS, CLIDB, FAWN, GAEMN, HRI, PAWS, PREFMETDB, RMIHOSTPARAM, RMINAME, SASA |
| Fields inherited from interface net.agmodel.genericBroker.GenericBrokerRMI |
EMAIL, HOSTPARAMEXTENSION, NOLOGIN, PASSWORD |
| Fields inherited from interface net.agmodel.genericBroker.ServerRMI |
EXISTINGUSER, NEWUSER, SUPERUSER |
| Constructor Summary | |
MetBrokerImpl()
|
|
| Method Summary | |
String |
getConnection(String clientInfo,
String language,
String metBrokerUserName,
String metBrokerPassword,
int userType)
Establishes a session for the client application. |
boolean[][] |
getMetCatalog(String sessionID,
String metSourceID,
String stationID)
Check whether a station has ever recorded an element at a particular resolution. |
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. |
float |
getSourceSuggestedDailyOffset(String sessionID,
String metSourceID)
Provide client applications with a sensible default offset for building requests for daily data for displaying the resulting data. |
String |
getSourceSuggestedTimezone(String sessionID,
String metSourceID)
Provide client applications with a sensible default timezone for building requests to the database and for displaying the resulting data. |
Location |
getStationLocation(String sessionID,
String metSourceID,
String stationID)
Get the weather station's position on the globe. |
String |
getStationName(String sessionID,
String metSourceID,
String stationID)
Get the weather station's location's name. |
Period |
getStationOperational(String sessionID,
String metSourceID,
String stationID)
Get the period of operation of the weather station |
String |
getStationRegionID(String sessionID,
String metSourceID,
String stationID)
Get the weather station's current region ID. |
String |
getStationReport(String sessionID,
String metSourceID,
String stationID)
Provide a description of the station and the data it holds |
WeatherStation |
getWeatherStation(String sessionID,
String metSourceID,
String stationID)
Get the details of the weather station |
String[] |
listMatchingStationIDs(String sessionID,
String metSourceID,
SpatialMetRequest request)
|
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)
Get the IDs for all the MetSources in MetBroker. |
String[] |
listMetSources(String sessionID,
GeographicalArea ofInterest)
Get the IDs of the MetSources in MetBroker that coincide with the area specified. |
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)
Establish a connection to the specified database without identifying the user in any way |
boolean |
loginToMetDataSource(String sessionID,
String sourceID,
String emailAddress)
Establish a connection to the specified database using the e-mail address supplied as identification. |
boolean |
loginToMetDataSource(String sessionID,
String sourceID,
String usercode,
String password)
Establish a connection to the specified database using the usercode and password supplied |
static void |
main(String[] args)
|
boolean |
metCatalogCardExists(String sessionID,
String metSourceID,
String stationID,
MetElement element,
MetDuration resolution)
Check whether a station has ever recorded an element at a particular resolution. |
void |
registerSource(String sessionID,
MetSourceImpl source)
|
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 class net.agmodel.brokerImpl.GenericBrokerImpl |
alreadyLoggedIn, cleanup, DBMonitor, disconnect, enter, exit, getAccess, getConnection, getLanguage, getSourceDetail, getSourceGeographicalArea, getSourceID, getSourceImplAndRecordUse, getSourceLoginRequirements, getSourceName, listDataSources, listDataSources, listSourceDetails, listSourceDetails, loginToDataSource, loginToDataSource, loginToDataSource, logMessage, logOutOfAllSources, logOutOfSource, setDBNames, shutdown, start, stop, wait10 |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.agmodel.weatherData.MetBroker |
getSourceGeographicalArea, getSourceLoginRequirements, getSourceName |
| 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 |
| Constructor Detail |
public MetBrokerImpl()
throws RemoteException
| Method Detail |
public static void main(String[] args)
public String[] listMetSources(String sessionID)
throws RemoteException,
GeneralException
MetBroker
listMetSources in interface MetBrokersessionID - the ID returned by getConnection
RemoteException
GeneralException
public String[] listMetSources(String sessionID,
GeographicalArea ofInterest)
throws RemoteException,
GeneralException
MetBroker
listMetSources in interface MetBrokersessionID - the ID returned by getConnectionofInterest - the area from which weather data is required
RemoteException
GeneralException
public MetSourceDetail[] listMetSourceDetails(String sessionID)
throws RemoteException,
GeneralException
MetBroker
listMetSourceDetails in interface MetBrokersessionID - the ID returned by getConnection
RemoteException
GeneralExceptionfor a generic version
public MetSourceDetail[] listMetSourceDetails(String sessionID,
GeographicalArea ofInterest)
throws RemoteException,
GeneralException
MetBroker
listMetSourceDetails in interface MetBrokersessionID - 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
MetBroker
loginToMetDataSource in interface MetBrokersessionID - 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
GeneralExceptionMetBroker.getSourceLoginRequirements(String,String)
public boolean loginToMetDataSource(String sessionID,
String sourceID,
String emailAddress)
throws RemoteException,
GeneralException
MetBroker
loginToMetDataSource in interface MetBrokersessionID - the ID returned by getConnectionsourceID - the identifier assigned to the source by MetBroker - see listMetSourcesemailAddress - the user's e-mail address
RemoteException
GeneralExceptionMetBroker.getSourceLoginRequirements(String,String)
public boolean loginToMetDataSource(String sessionID,
String sourceID)
throws RemoteException,
GeneralException
MetBroker
loginToMetDataSource in interface MetBrokersessionID - the ID returned by getConnectionsourceID - the identifier assigned to the source by MetBroker - see listMetSources
RemoteException
GeneralExceptionMetBroker.getSourceLoginRequirements(String,String)
public SpatialMetSet supplyMetData(String sessionID,
SpatialMetRequest request)
throws RemoteException,
ConnectionException
MetBroker
supplyMetData in interface MetBrokersessionID - the ID returned by getConnectionrequest - specifies which area to get data for, and what data to get
RemoteException
ConnectionException
public StationDataSet supplyMetData(String sessionID,
StationMetRequest request)
throws RemoteException,
ConnectionException,
InvalidRequestException
MetBroker
supplyMetData in interface MetBrokersessionID - the ID returned by getConnectionrequest - specifies which station get data for, and what data to get
RemoteException
ConnectionException
InvalidRequestException
public MetSourceDetail getMetSourceDetail(String sessionID,
String metSourceID)
throws RemoteException
MetBroker
getMetSourceDetail in interface MetBrokersessionID - the ID returned by getConnection
RemoteExceptionfor a generic version
public String getSourceSuggestedTimezone(String sessionID,
String metSourceID)
throws RemoteException
MetBroker
getSourceSuggestedTimezone in interface MetBrokersessionID - the ID returned by getConnectionmetSourceID - the identifier assigned to the source by MetBroker
RemoteException
public float getSourceSuggestedDailyOffset(String sessionID,
String metSourceID)
throws RemoteException
MetBroker
getSourceSuggestedDailyOffset in interface MetBrokersessionID - the ID returned by getConnectionmetSourceID - the identifier assigned to the source by MetBroker
RemoteException
public Region[] listRegions(String sessionID,
String metSourceID)
throws RemoteException
MetBroker
listRegions in interface MetBrokersessionID - the ID returned by getConnectionmetSourceID - the identifier for the metsource
RemoteException
public Region getRegion(String sessionID,
String metSourceID,
String regionID)
throws RemoteException
MetBroker
getRegion in interface MetBrokersessionID - 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
MetBroker
listStations in interface MetBrokersessionID - the ID returned by getConnectionmetSourceID - the identifier for the metsource
RemoteException
public WeatherStation[] listStations(String sessionID,
String metSourceID,
String regionID)
throws RemoteException
MetBroker
listStations in interface MetBrokersessionID - 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
MetBroker
listMatchingStations in interface MetBrokersessionID - the ID returned by getConnectionrequest - specifies the data required
RemoteException
public WeatherStation getWeatherStation(String sessionID,
String metSourceID,
String stationID)
throws RemoteException
MetBroker
getWeatherStation in interface MetBrokersessionID - 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[] listMatchingStationIDs(String sessionID,
String metSourceID,
SpatialMetRequest request)
public String getStationReport(String sessionID,
String metSourceID,
String stationID)
throws RemoteException
MetBroker
getStationReport in interface MetBrokersessionID - 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
MetBroker
getStationName in interface MetBrokersessionID - 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
MetBroker
getStationLocation in interface MetBrokersessionID - 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
MetBroker
getStationRegionID in interface MetBrokersessionID - 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
MetBroker
getStationOperational in interface MetBrokersessionID - 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
MetBroker
metCatalogCardExists in interface MetBrokersessionID - 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
MetBroker
getMetCatalog in interface MetBrokersessionID - 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 void registerSource(String sessionID,
MetSourceImpl source)
public String getConnection(String clientInfo,
String language,
String metBrokerUserName,
String metBrokerPassword,
int userType)
throws RemoteException
ServerRMI
getConnection in interface ServerRMIgetConnection in class GenericBrokerImplRemoteException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||