|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cumulocity.sdk.client.measurement.MeasurementApiImpl
public class MeasurementApiImpl
Constructor Summary | |
---|---|
MeasurementApiImpl(RestConnector restConnector,
TemplateUrlParser templateUrlParser,
String platformUrl)
Deprecated. |
|
MeasurementApiImpl(RestConnector restConnector,
TemplateUrlParser templateUrlParser,
String platformUrl,
int pageSize)
|
Method Summary | |
---|---|
MeasurementRepresentation |
create(MeasurementRepresentation measurementRepresentation)
Creates measurement in the platform. |
void |
deleteMeasurement(MeasurementRepresentation measurement)
Deletes measurement from the platform. |
MeasurementRepresentation |
getMeasurement(GId measurementId)
Gets measurement by id |
PagedCollectionResource<MeasurementCollectionRepresentation> |
getMeasurements()
Gets the all the measurement in the platform |
PagedCollectionResource<MeasurementCollectionRepresentation> |
getMeasurementsByFilter(MeasurementFilter filter)
Gets the measurements from the platform based on specified filter |
protected String |
getSelfUri()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public MeasurementApiImpl(RestConnector restConnector, TemplateUrlParser templateUrlParser, String platformUrl)
public MeasurementApiImpl(RestConnector restConnector, TemplateUrlParser templateUrlParser, String platformUrl, int pageSize)
Method Detail |
---|
public MeasurementRepresentation getMeasurement(GId measurementId) throws SDKException
MeasurementApi
getMeasurement
in interface MeasurementApi
measurementId
- id of the measurement to search for
SDKException
- if the measurement is not found or if the query failedpublic void deleteMeasurement(MeasurementRepresentation measurement) throws SDKException
MeasurementApi
deleteMeasurement
in interface MeasurementApi
measurement
- to be deleted
SDKException
- if the measurement could not be deletedpublic PagedCollectionResource<MeasurementCollectionRepresentation> getMeasurementsByFilter(MeasurementFilter filter) throws SDKException
MeasurementApi
getMeasurementsByFilter
in interface MeasurementApi
filter
- the filter criteria(s)
SDKException
- if the query failedpublic PagedCollectionResource<MeasurementCollectionRepresentation> getMeasurements() throws SDKException
MeasurementApi
getMeasurements
in interface MeasurementApi
SDKException
- if the query failedpublic MeasurementRepresentation create(MeasurementRepresentation measurementRepresentation) throws SDKException
MeasurementApi
create
in interface MeasurementApi
measurementRepresentation
- measurement to be created
SDKException
- if the measurement could not be createdprotected String getSelfUri() throws SDKException
SDKException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |