public interface StoreSession extends Session
Specifies the remote interaction with the store server.
Session.ConnectionMode
Modifier and Type | Method and Description |
---|---|
StoreValues |
deliver(int limit,
long timeout)
Delivers point value events.
|
PointBinding[] |
getPointBindings(PointBinding.Request[] bindingRequests)
Gets point binding informations on selected points.
|
State.Group[] |
getStateGroups()
Gets the state groups.
|
void |
impersonate(String user)
Impersonates an other user.
|
void |
interrupt()
Interrupts the current delivery.
|
boolean |
probe()
Probes the state of a session.
|
StoreValues |
pull(StoreValuesQuery query,
long timeout)
Pulls points values.
|
int |
purge(UUID[] pointUUIDs,
TimeInterval timeInterval)
Purges point values.
|
State |
resolve(State state,
UUID pointUUID)
Resolves a state for a point.
|
StoreValues[] |
select(StoreValuesQuery[] queries)
Selects point values.
|
StoreValues[] |
subscribe(UUID[] pointUUIDs)
Subscribes to point values events.
|
String |
supportedValueTypeCodes()
Returns a string of supported value type codes.
|
boolean |
supportsCount()
Asks if the server supports count.
|
boolean |
supportsDelete()
Asks if the server supports delete.
|
boolean |
supportsDeliver()
Asks if the server supports deliver.
|
boolean |
supportsPull()
Asks if the server supports pull.
|
boolean |
supportsPurge()
Asks if the server supports purge.
|
boolean |
supportsSubscribe()
Asks if the server supports subscribe.
|
Exception[] |
unsubscribe(UUID[] pointUUIDs)
Unsubscribes from point values events.
|
Exception[] |
update(PointValue[] pointValues)
Updates point values.
|
getConnectionMode, login, logout
@Nullable @CheckReturnValue StoreValues deliver(int limit, long timeout) throws RemoteException, SessionException
limit
- A limit for the number of values.timeout
- A time limit in millis to wait for the first message
(negative for infinite).SessionException
- From session security check.RemoteException
- From RMI RunTime.Store.deliver(int, long)
@Nullable @CheckReturnValue PointBinding[] getPointBindings(@Nonnull PointBinding.Request[] bindingRequests) throws RemoteException, SessionException
bindingRequests
- Selection specifications.SessionException
- From session security check.RemoteException
- From RMI RunTime.@Nullable @CheckReturnValue State.Group[] getStateGroups() throws RemoteException, SessionException
SessionException
- From session security check.RemoteException
- From RMI RunTime.void impersonate(@Nullable String user) throws RemoteException, SessionException
user
- The other user (empty for anonymous, null to cancel).RemoteException
- From RMI RunTime.SessionException
- From session security check.void interrupt() throws RemoteException, SessionException
RemoteException
- From RMI RunTime.SessionException
- From session security check.@CheckReturnValue boolean probe() throws RemoteException, SessionException
SessionException
- On session problems.RemoteException
- From RMI RunTime.@Nullable @CheckReturnValue StoreValues pull(@Nonnull StoreValuesQuery query, long timeout) throws RemoteException, ServiceNotAvailableException
query
- The store query.timeout
- A time limit in millis to wait for the first value
(negative for infinite).ServiceNotAvailableException
- When the service is not available.RemoteException
- From RMI RunTime.Store.pull(StoreValuesQuery, long)
@CheckReturnValue int purge(@Nonnull UUID[] pointUUIDs, @Nonnull TimeInterval timeInterval) throws RemoteException, SessionException
pointUUIDs
- The UUID of the points to purge.timeInterval
- A time interval.SessionException
- From session security check.RemoteException
- From RMI RunTime.Store.purge(UUID[], TimeInterval)
@Nullable @CheckReturnValue State resolve(@Nonnull State state, @Nullable UUID pointUUID) throws RemoteException, SessionException
state
- The state.pointUUID
- The optional point UUID.SessionException
- From session security check.RemoteException
- From RMI RunTime.@Nullable @CheckReturnValue StoreValues[] select(@Nonnull StoreValuesQuery[] queries) throws RemoteException, SessionException
queries
- An array of store queries.SessionException
- On session exception.RemoteException
- From RMI RunTime.@Nullable @CheckReturnValue StoreValues[] subscribe(@Nonnull UUID[] pointUUIDs) throws RemoteException, SessionException
pointUUIDs
- The point UUIDs.SessionException
- From session security check.RemoteException
- From RMI RunTime.@Nonnull @CheckReturnValue String supportedValueTypeCodes() throws RemoteException, ServiceNotAvailableException
ServiceNotAvailableException
- When the service is not available.RemoteException
- From RMI RunTime.@CheckReturnValue boolean supportsCount() throws RemoteException, SessionException
SessionException
- From session security check.RemoteException
- From RMI RunTime.@CheckReturnValue boolean supportsDelete() throws RemoteException, SessionException
SessionException
- From session security check.RemoteException
- From RMI RunTime.@CheckReturnValue boolean supportsDeliver() throws RemoteException, SessionException
SessionException
- From session security check.RemoteException
- From RMI RunTime.@CheckReturnValue boolean supportsPull() throws RemoteException, SessionException
SessionException
- From session security check.RemoteException
- From RMI RunTime.@CheckReturnValue boolean supportsPurge() throws RemoteException, SessionException
SessionException
- From session security check.RemoteException
- From RMI RunTime.@CheckReturnValue boolean supportsSubscribe() throws RemoteException, SessionException
SessionException
- From session security check.RemoteException
- From RMI RunTime.@Nullable @CheckReturnValue Exception[] unsubscribe(@Nonnull UUID[] pointUUIDs) throws RemoteException, SessionException
pointUUIDs
- The point UUIDs.SessionException
- From session security check.RemoteException
- From RMI RunTime.@Nullable @CheckReturnValue Exception[] update(@Nonnull PointValue[] pointValues) throws RemoteException, ServiceNotAvailableException
pointValues
- The point values.ServiceNotAvailableException
- When the service is not available.RemoteException
- From RMI RunTime.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.