public class NOAAWeatherCollector extends MultiThreadedCollector
client, debug, definition, depository| Constructor and Description |
|---|
NOAAWeatherCollector(String serverUri,
String username,
String orgId,
String password,
Sensor sensor,
Long pollingInterval,
Depository depository,
boolean debug) |
NOAAWeatherCollector(String serverUri,
String username,
String orgId,
String password,
String collectorId,
boolean debug)
Initializes the NOAAWeatherCollector.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid() |
static void |
main(String[] args)
Processes the command line arguments and starts the NOAA Weather Collector.
|
void |
run() |
startcancel, scheduledExecutionTimepublic NOAAWeatherCollector(String serverUri, String username, String orgId, String password, String collectorId, boolean debug) throws BadCredentialException, IdNotFoundException, BadSensorUriException
serverUri - The URI for the WattDepot server.username - The name of a user defined in the WattDepot server.orgId - the id of the organization.password - The password for the user.collectorId - The CollectorProcessDefinitionId used to initialize this
collector.debug - flag for debugging messages.BadCredentialException - if the user or password don't match the
credentials in WattDepot.IdNotFoundException - if the processId is not defined.BadSensorUriException - if the Sensor's URI isn't valid.public NOAAWeatherCollector(String serverUri, String username, String orgId, String password, Sensor sensor, Long pollingInterval, Depository depository, boolean debug) throws BadCredentialException, BadSensorUriException, IdNotFoundException
serverUri - The URI for the WattDepot server.username - The name of a user defined in the WattDepot server.orgId - the user's organization id.password - The password for the user.sensor - The Sensor to poll.pollingInterval - The polling interval in seconds.depository - The Depository to store the measurements.debug - flag for debugging messages.BadCredentialException - if the user or password don't match the
credentials in WattDepot.BadSensorUriException - if the Sensor's URI isn't valid.IdNotFoundException - if the processId is not defined.public boolean isValid()
isValid in class MultiThreadedCollectorpublic static void main(String[] args)
args - command line arguments.Copyright © 2015 Collaborative Software Development Laboratory. All rights reserved.