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 ScadaBRAPI
GetStatusResponse
(ReplyBase
, ServerStatus
)java.rmi.RemoteException
GetStatusResponse
,
ReplyBase
,
ServerStatus
,
ServerStateCode
public ReadDataResponse readData(ReadDataParams parameters) throws java.rmi.RemoteException
readData
in interface ScadaBRAPI
{@link
- ReadDataParams}(String[] itemPathList,
RequestOptions
options)ReadDataResponse
(ReplyBase
, ItemValue
[],
APIError
[] )java.rmi.RemoteException
ReadDataResponse
,
ReplyBase
,
ItemValue
,
APIError
public WriteDataResponse writeData(WriteDataParams parameters) throws java.rmi.RemoteException
writeData
in interface ScadaBRAPI
{@link
- WriteDataParams}(ItemValue[] itemsList,
WriteDataOptions
options)WriteDataResponse
(ReplyBase
, ItemValue
,
APIError
)java.rmi.RemoteException
WriteDataResponse
,
APIError
,
ItemValue
,
ReplyBase
public WriteStringDataResponse writeStringData(WriteStringDataParams parameters) throws java.rmi.RemoteException
writeStringData
in interface ScadaBRAPI
java.rmi.RemoteException
public BrowseTagsResponse browseTags(BrowseTagsParams parameters) throws java.rmi.RemoteException
browseTags
in interface ScadaBRAPI
{@link
- BrowseTagsParams}(String itemsPath,
BrowseTagsOptions
options)WriteDataResponse
(ReplyBase
,APIError
)java.rmi.RemoteException
BrowseTagsResponse
,
APIError
,
ReplyBase
public 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.RemoteException
GetDataHistoryResponse
,
APIError
,
ItemValue
,
ReplyBase
public GetActiveEventsResponse getActiveEvents(GetActiveEventsParams parameters) throws java.rmi.RemoteException
getActiveEvents
in interface ScadaBRAPI
{@link
- GetActiveEventsParams}(String eventsPath,
ActiveEventsOptions
options)GetActiveEventsResponse
(ReplyBase
,
EventNotification
, APIError
)java.rmi.RemoteException
GetActiveEventsResponse
,
APIError
,
EventNotification
,
ReplyBase
public AckEventsResponse ackEvents(AckEventsParams parameters) throws java.rmi.RemoteException
ackEvents
in interface ScadaBRAPI
{@link
- AckEventsParams}(Integer[] eventsId,
AckEventsOptions
options)WriteDataResponse
(ReplyBase
,
EventNotification
, APIError
)java.rmi.RemoteException
AckEventsResponse
,
APIError
,
EventNotification
,
ReplyBase
public GetEventsHistoryResponse getEventsHistory(GetEventsHistoryParams parameters) throws java.rmi.RemoteException
getEventsHistory
in interface ScadaBRAPI
{@link
- GetEventsHistoryParams}(String eventsPath,
EventsHistoryOptions
options)WriteDataResponse
(ReplyBase
,
EventNotification
, APIError
)java.rmi.RemoteException
GetEventsHistoryResponse
,
APIError
,
EventNotification
,
ReplyBase
public BrowseEventsResponse browseEventsDefinitions(BrowseEventsParams parameters) throws java.rmi.RemoteException
browseEventsDefinitions
in interface ScadaBRAPI
{@link
- BrowseEventsParams}(String eventsPath,
BrowseEventsOptions
options)BrowseEventsResponse
(ReplyBase
,
EventDefinition
, APIError
)java.rmi.RemoteException
BrowseEventsResponse
,
APIError
,
EventDefinition
,
ReplyBase
public AnnotateEventResponse annotateEvent(AnnotateEventParams parameters) throws java.rmi.RemoteException
annotateEvent
in interface ScadaBRAPI
{@link
- AnnotateEventParams}(Integer eventId, EventMessage
message)AnnotateEventResponse
(ReplyBase
,
EventMessage
, APIError
)java.rmi.RemoteException
AnnotateEventResponse
,
APIError
,
EventMessage
,
ReplyBase
public BrowseDataSourcesResponse browseDataSources(BrowseDataSourcesParams parameters) throws java.rmi.RemoteException
browseDataSources
in interface ScadaBRAPI
java.rmi.RemoteException
public ConfigureDataSourceResponse configureDataSource(ConfigureDataSourceParams parameters) throws java.rmi.RemoteException
configureDataSource
in interface ScadaBRAPI
java.rmi.RemoteException
public RemoveDataSourceResponse removeDataSource(RemoveDataSourceParams parameters) throws java.rmi.RemoteException
removeDataSource
in interface ScadaBRAPI
java.rmi.RemoteException
public BrowseDataPointsResponse browseDataPoints(BrowseDataPointsParams parameters) throws java.rmi.RemoteException
browseDataPoints
in interface ScadaBRAPI
java.rmi.RemoteException
public ConfigureDataPointResponse configureDataPoint(ConfigureDataPointParams parameters) throws java.rmi.RemoteException
configureDataPoint
in interface ScadaBRAPI
java.rmi.RemoteException
public RemoveDataPointResponse removeDataPoint(RemoveDataPointParams parameters) throws java.rmi.RemoteException
removeDataPoint
in interface ScadaBRAPI
java.rmi.RemoteException
private java.util.List<?> limit(java.util.List<?> list, int limitSize)
public GetFlexBuilderConfigResponse getFlexBuilderConfig(int projectId) throws java.rmi.RemoteException
getFlexBuilderConfig
in interface ScadaBRAPI
java.rmi.RemoteException
public BrowseFlexProjectsResponse browseFlexProjects() throws java.rmi.RemoteException
browseFlexProjects
in interface ScadaBRAPI
java.rmi.RemoteException
public SetFlexBuilderConfigResponse setFlexBuilderConfig(SetFlexBuilderConfigParams params) throws java.rmi.RemoteException
setFlexBuilderConfig
in interface ScadaBRAPI
java.rmi.RemoteException
public RemoveFlexProjectResponse removeFlexProject(int id) throws java.rmi.RemoteException
removeFlexProject
in interface ScadaBRAPI
java.rmi.RemoteException