public class ScadaBRAPIImpl extends java.lang.Object implements ScadaBRAPI, APIConstants
| Modifier and Type | Field and Description |
|---|---|
private ScadaBRAPIDao |
dataDao |
ACCESS_DENIED, CONDITION_NOT_IMPLEMENTED, ERROR_OK, INSUFFICIENT_PARAMETER, INVALID_ID, INVALID_PARAMETER, MAX_ACTIVE_EVENTS_RETURN, MAX_BROWSE_TAGS_RETURN, MAX_DATA_HISTORY_RETURN, MAX_EVENTS_HISTORY_RETURN, MAX_READ_DATA_RETURN, NO_READ_TAG, NO_REGISTERED_DATAPOINT, NO_REGISTERED_DATASOURCE, NO_WRITE_TAG, NON_EXISTENT_TAG, THERE_ARE_MORE_RETURN_VALUES, UNKNOW_TAG_NAME, UNSPECIFIED_ERROR| Constructor and Description |
|---|
ScadaBRAPIImpl() |
private ScadaBRAPIDao dataDao
public GetStatusResponse getStatus() throws java.rmi.RemoteException
GetStatusResponse object
containing basic information about the host server, such as software
version, start up time, etc.getStatus in interface ScadaBRAPIGetStatusResponse(ReplyBase, ServerStatus
)java.rmi.RemoteExceptionGetStatusResponse,
ReplyBase,
ServerStatus,
ServerStateCodepublic ReadDataResponse readData(ReadDataParams parameters) throws java.rmi.RemoteException
readData in interface ScadaBRAPI{@link - ReadDataParams}(String[] itemPathList,
RequestOptions options)ReadDataResponse(ReplyBase, ItemValue[],
APIError[] )java.rmi.RemoteExceptionReadDataResponse,
ReplyBase,
ItemValue,
APIErrorpublic WriteDataResponse writeData(WriteDataParams parameters) throws java.rmi.RemoteException
writeData in interface ScadaBRAPI{@link - WriteDataParams}(ItemValue[] itemsList,
WriteDataOptions options)WriteDataResponse(ReplyBase, ItemValue ,
APIError )java.rmi.RemoteExceptionWriteDataResponse,
APIError,
ItemValue,
ReplyBasepublic WriteStringDataResponse writeStringData(WriteStringDataParams parameters) throws java.rmi.RemoteException
writeStringData in interface ScadaBRAPIjava.rmi.RemoteExceptionpublic BrowseTagsResponse browseTags(BrowseTagsParams parameters) throws java.rmi.RemoteException
browseTags in interface ScadaBRAPI{@link - BrowseTagsParams}(String itemsPath,
BrowseTagsOptions options)WriteDataResponse(ReplyBase,APIError )java.rmi.RemoteExceptionBrowseTagsResponse,
APIError,
ReplyBasepublic GetDataHistoryResponse getDataHistory(GetDataHistoryParams parameters) throws java.rmi.RemoteException
getDataHistory in interface ScadaBRAPI{@link - GetDataHistoryParams}(String itemName,
GetDataHistoryOptions options)GetDataHistoryResponse(ReplyBase,
ItemValue , APIError, boolean moreValues )java.rmi.RemoteExceptionGetDataHistoryResponse,
APIError,
ItemValue,
ReplyBasepublic GetActiveEventsResponse getActiveEvents(GetActiveEventsParams parameters) throws java.rmi.RemoteException
getActiveEvents in interface ScadaBRAPI{@link - GetActiveEventsParams}(String eventsPath,
ActiveEventsOptions options)GetActiveEventsResponse(ReplyBase,
EventNotification , APIError )java.rmi.RemoteExceptionGetActiveEventsResponse,
APIError,
EventNotification,
ReplyBasepublic AckEventsResponse ackEvents(AckEventsParams parameters) throws java.rmi.RemoteException
ackEvents in interface ScadaBRAPI{@link - AckEventsParams}(Integer[] eventsId,
AckEventsOptions options)WriteDataResponse(ReplyBase,
EventNotification , APIError )java.rmi.RemoteExceptionAckEventsResponse,
APIError,
EventNotification,
ReplyBasepublic GetEventsHistoryResponse getEventsHistory(GetEventsHistoryParams parameters) throws java.rmi.RemoteException
getEventsHistory in interface ScadaBRAPI{@link - GetEventsHistoryParams}(String eventsPath,
EventsHistoryOptions options)WriteDataResponse(ReplyBase,
EventNotification , APIError )java.rmi.RemoteExceptionGetEventsHistoryResponse,
APIError,
EventNotification,
ReplyBasepublic BrowseEventsResponse browseEventsDefinitions(BrowseEventsParams parameters) throws java.rmi.RemoteException
browseEventsDefinitions in interface ScadaBRAPI{@link - BrowseEventsParams}(String eventsPath,
BrowseEventsOptions options)BrowseEventsResponse(ReplyBase,
EventDefinition , APIError )java.rmi.RemoteExceptionBrowseEventsResponse,
APIError,
EventDefinition,
ReplyBasepublic AnnotateEventResponse annotateEvent(AnnotateEventParams parameters) throws java.rmi.RemoteException
annotateEvent in interface ScadaBRAPI{@link - AnnotateEventParams}(Integer eventId, EventMessage
message)AnnotateEventResponse(ReplyBase,
EventMessage , APIError )java.rmi.RemoteExceptionAnnotateEventResponse,
APIError,
EventMessage,
ReplyBasepublic BrowseDataSourcesResponse browseDataSources(BrowseDataSourcesParams parameters) throws java.rmi.RemoteException
browseDataSources in interface ScadaBRAPIjava.rmi.RemoteExceptionpublic ConfigureDataSourceResponse configureDataSource(ConfigureDataSourceParams parameters) throws java.rmi.RemoteException
configureDataSource in interface ScadaBRAPIjava.rmi.RemoteExceptionpublic RemoveDataSourceResponse removeDataSource(RemoveDataSourceParams parameters) throws java.rmi.RemoteException
removeDataSource in interface ScadaBRAPIjava.rmi.RemoteExceptionpublic BrowseDataPointsResponse browseDataPoints(BrowseDataPointsParams parameters) throws java.rmi.RemoteException
browseDataPoints in interface ScadaBRAPIjava.rmi.RemoteExceptionpublic ConfigureDataPointResponse configureDataPoint(ConfigureDataPointParams parameters) throws java.rmi.RemoteException
configureDataPoint in interface ScadaBRAPIjava.rmi.RemoteExceptionpublic RemoveDataPointResponse removeDataPoint(RemoveDataPointParams parameters) throws java.rmi.RemoteException
removeDataPoint in interface ScadaBRAPIjava.rmi.RemoteExceptionprivate java.util.List<?> limit(java.util.List<?> list,
int limitSize)
public GetFlexBuilderConfigResponse getFlexBuilderConfig(int projectId) throws java.rmi.RemoteException
getFlexBuilderConfig in interface ScadaBRAPIjava.rmi.RemoteExceptionpublic BrowseFlexProjectsResponse browseFlexProjects() throws java.rmi.RemoteException
browseFlexProjects in interface ScadaBRAPIjava.rmi.RemoteExceptionpublic SetFlexBuilderConfigResponse setFlexBuilderConfig(SetFlexBuilderConfigParams params) throws java.rmi.RemoteException
setFlexBuilderConfig in interface ScadaBRAPIjava.rmi.RemoteExceptionpublic RemoveFlexProjectResponse removeFlexProject(int id) throws java.rmi.RemoteException
removeFlexProject in interface ScadaBRAPIjava.rmi.RemoteException