public class PutTask extends PerformanceTimedTask
client, debug, definition, depository, sensor
Constructor and Description |
---|
PutTask(String serverUri,
String username,
String orgId,
String password,
boolean debug)
Initializes the PutTask.
|
PutTask(String serverUri,
String username,
String orgId,
String password,
boolean debug,
String cpd)
Initializes the PutTask.
|
Modifier and Type | Method and Description |
---|---|
void |
clientTask()
The client task to time.
|
getAverageTime, getMaxTime, getMinTime, getNumberOfRuns, getTotalTime, run
cancel, scheduledExecutionTime
public PutTask(String serverUri, String username, String orgId, String password, 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 the user is in.password
- The password for the user.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 PutTask(String serverUri, String username, String orgId, String password, boolean debug, String cpd) 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 the user is in.password
- The password for the user.debug
- flag for debugging messages.cpd
- the CollectorProcessDefinition id.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 void clientTask()
PerformanceTimedTask
clientTask
in class PerformanceTimedTask
Copyright © 2015 Collaborative Software Development Laboratory. All rights reserved.