public class SiteWhereContext extends java.lang.Object implements ISiteWhereContext
Constructor and Description |
---|
SiteWhereContext() |
Modifier and Type | Method and Description |
---|---|
void |
addDeviceEvent(IDeviceEvent event)
Helper function for add an arbitrary device event.
|
java.util.List<IDeviceAlert> |
getDeviceAlerts()
Get the
IDeviceAlert events. |
IDeviceAssignment |
getDeviceAssignment()
Get current assignment for device associated with the request.
|
java.util.List<IDeviceCommandInvocation> |
getDeviceCommandInvocations()
Get the
IDeviceCommandInvocation events. |
java.util.List<IDeviceCommandResponse> |
getDeviceCommandResponses()
Get the
IDeviceCommandResponse events. |
java.util.List<IDeviceLocation> |
getDeviceLocations()
Get the
IDeviceLocation events. |
java.util.List<IDeviceMeasurements> |
getDeviceMeasurements()
Get the
IDeviceMeasurements events. |
java.lang.String |
getReplyTo()
Get information for replying to originator.
|
java.util.List<IDeviceAlertCreateRequest> |
getUnsavedDeviceAlerts()
Get a list of device alerts that have not been persisted.
|
java.util.List<IDeviceLocationCreateRequest> |
getUnsavedDeviceLocations()
Get a list of device locations that have not been persisted.
|
java.util.List<IDeviceMeasurementsCreateRequest> |
getUnsavedDeviceMeasurements()
Get a list of device measurements that have not been persisted.
|
void |
setDeviceAlerts(java.util.List<IDeviceAlert> deviceAlerts) |
void |
setDeviceAssignment(IDeviceAssignment deviceAssignment) |
void |
setDeviceCommandInvocations(java.util.List<IDeviceCommandInvocation> deviceCommandInvocations) |
void |
setDeviceCommandResponses(java.util.List<IDeviceCommandResponse> deviceCommandResponses) |
void |
setDeviceLocations(java.util.List<IDeviceLocation> deviceLocations) |
void |
setDeviceMeasurements(java.util.List<IDeviceMeasurements> deviceMeasurements) |
void |
setReplyTo(java.lang.String replyTo) |
void |
setUnsavedDeviceAlerts(java.util.List<IDeviceAlertCreateRequest> unsavedDeviceAlerts) |
void |
setUnsavedDeviceLocations(java.util.List<IDeviceLocationCreateRequest> unsavedDeviceLocations) |
void |
setUnsavedDeviceMeasurements(java.util.List<IDeviceMeasurementsCreateRequest> unsavedDeviceMeasurements) |
public IDeviceAssignment getDeviceAssignment()
ISiteWhereContext
getDeviceAssignment
in interface ISiteWhereContext
public void setDeviceAssignment(IDeviceAssignment deviceAssignment)
public java.util.List<IDeviceMeasurementsCreateRequest> getUnsavedDeviceMeasurements()
ISiteWhereContext
getUnsavedDeviceMeasurements
in interface ISiteWhereContext
public void setUnsavedDeviceMeasurements(java.util.List<IDeviceMeasurementsCreateRequest> unsavedDeviceMeasurements)
public java.util.List<IDeviceLocationCreateRequest> getUnsavedDeviceLocations()
ISiteWhereContext
getUnsavedDeviceLocations
in interface ISiteWhereContext
public void setUnsavedDeviceLocations(java.util.List<IDeviceLocationCreateRequest> unsavedDeviceLocations)
public java.util.List<IDeviceAlertCreateRequest> getUnsavedDeviceAlerts()
ISiteWhereContext
getUnsavedDeviceAlerts
in interface ISiteWhereContext
public void setUnsavedDeviceAlerts(java.util.List<IDeviceAlertCreateRequest> unsavedDeviceAlerts)
public java.util.List<IDeviceMeasurements> getDeviceMeasurements()
ISiteWhereContext
IDeviceMeasurements
events.getDeviceMeasurements
in interface ISiteWhereContext
public void setDeviceMeasurements(java.util.List<IDeviceMeasurements> deviceMeasurements)
public java.util.List<IDeviceLocation> getDeviceLocations()
ISiteWhereContext
IDeviceLocation
events.getDeviceLocations
in interface ISiteWhereContext
public void setDeviceLocations(java.util.List<IDeviceLocation> deviceLocations)
public java.util.List<IDeviceAlert> getDeviceAlerts()
ISiteWhereContext
IDeviceAlert
events.getDeviceAlerts
in interface ISiteWhereContext
public void setDeviceAlerts(java.util.List<IDeviceAlert> deviceAlerts)
public java.util.List<IDeviceCommandInvocation> getDeviceCommandInvocations()
ISiteWhereContext
IDeviceCommandInvocation
events.getDeviceCommandInvocations
in interface ISiteWhereContext
public void setDeviceCommandInvocations(java.util.List<IDeviceCommandInvocation> deviceCommandInvocations)
public java.util.List<IDeviceCommandResponse> getDeviceCommandResponses()
ISiteWhereContext
IDeviceCommandResponse
events.getDeviceCommandResponses
in interface ISiteWhereContext
public void setDeviceCommandResponses(java.util.List<IDeviceCommandResponse> deviceCommandResponses)
public java.lang.String getReplyTo()
ISiteWhereContext
getReplyTo
in interface ISiteWhereContext
public void setReplyTo(java.lang.String replyTo)
public void addDeviceEvent(IDeviceEvent event) throws SiteWhereException
event
- SiteWhereException