Package net.solarnetwork.node.service
Interface UploadService
- All Known Subinterfaces:
BulkUploadService
public interface UploadService
API for posting local SolarNode data to a remote server.
- Version:
- 1.2
- Author:
- matt.magoffin
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Get a unique key for this service.uploadDatum(NodeDatum data) Upload Datum data.
-
Field Details
-
EVENT_TOPIC_DATUM_UPLOADED
An event topic for when aNodeDatumhas been uploaded.The properties of the event shall be
Datum.asSimpleMap().- Since:
- 1.2
- See Also:
-
-
Method Details
-
getKey
String getKey()Get a unique key for this service.This key can be used as the
destinationvalue forNodeDatumobjects. It need be unique across other UploadService implementations only.- Returns:
- unique key
-
uploadDatum
Upload Datum data.The returned primary key can be used as the
trackingIdvalue forNodeDatumobjects.If the supplied Datum object is not supported by an implementation this method will throw an
IllegalArgumentException.- Parameters:
data- the data to upload- Returns:
- the remote primary key
-