public class DepositoryMeasurementsIntervalServer extends WattDepotServerResource
| Modifier and Type | Field and Description |
|---|---|
protected String |
depositoryId |
protected Date |
endDate |
protected int |
interval |
protected String |
sensorId |
protected Date |
startDate |
protected String |
valueType |
depot, orgId| Constructor and Description |
|---|
DepositoryMeasurementsIntervalServer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInit() |
protected MeasurementList |
getMeasurements(String depositoryId,
String orgId,
String sensorId,
Date startDate,
Date endDate,
InterpolatedValue interpolatedValue) |
protected Date |
incrementMinutes(Date time,
int minutes) |
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, get, getAttribute, getInfo, getInfo, getOnSent, getPreferredVariant, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setProxyChallengeRequests, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensionsdoError, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMatrixValue, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getProxyChallengeRequests, getProxyChallengeResponse, getQuery, getQueryValue, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestCacheDirectives, getRequestEntity, getResponse, getResponseAttributes, getResponseCacheDirectives, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, isLoggable, release, setApplication, setQueryValue, setRequest, setResponse, toObject, toRepresentation, toStringprotected String depositoryId
protected String sensorId
protected Date startDate
protected Date endDate
protected int interval
protected String valueType
public DepositoryMeasurementsIntervalServer()
protected void doInit()
throws org.restlet.resource.ResourceException
doInit in class WattDepotServerResourceorg.restlet.resource.ResourceExceptionprotected MeasurementList getMeasurements(String depositoryId, String orgId, String sensorId, Date startDate, Date endDate, InterpolatedValue interpolatedValue) throws IdNotFoundException, MisMatchedOwnerException
depositoryId - The depository id.orgId - The organization id.sensorId - The sensor id.startDate - The start date.endDate - The end date.interpolatedValue - updates the defined and reporting sensors lists.IdNotFoundException - If any id is not defined.MisMatchedOwnerException - If the sensor and depository have
different organizations.Copyright © 2015 Collaborative Software Development Laboratory. All rights reserved.