public class OpcUaClient extends Object implements UaClient
| Modifier and Type | Field and Description |
|---|---|
static String |
SDK_VERSION |
| Constructor and Description |
|---|
OpcUaClient(OpcUaClientConfig config,
UaStackClient stackClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFaultListener(ServiceFaultListener faultListener) |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.AddNodesResponse> |
addNodes(List<org.eclipse.milo.opcua.stack.core.types.structured.AddNodesItem> nodesToAdd) |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.AddReferencesResponse> |
addReferences(List<org.eclipse.milo.opcua.stack.core.types.structured.AddReferencesItem> referencesToAdd) |
void |
addSessionActivityListener(SessionActivityListener listener) |
void |
addSessionInitializer(SessionFsm.SessionInitializer initializer) |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.BrowseResponse> |
browse(org.eclipse.milo.opcua.stack.core.types.structured.ViewDescription viewDescription,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger maxReferencesPerNode,
List<org.eclipse.milo.opcua.stack.core.types.structured.BrowseDescription> nodesToBrowse)
This service is used to discover the references of a specified node.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.BrowseNextResponse> |
browseNext(boolean releaseContinuationPoints,
List<org.eclipse.milo.opcua.stack.core.types.builtin.ByteString> continuationPoints)
This service is used to request the next set of Browse or BrowseNext response information that is too large to
be sent in a single response.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.CallResponse> |
call(List<org.eclipse.milo.opcua.stack.core.types.structured.CallMethodRequest> methodsToCall)
This service is used to call (invoke) a list of methods.
|
CompletableFuture<UaClient> |
connect()
Connect to the configured endpoint.
|
static OpcUaClient |
create(OpcUaClientConfig config)
Create an
OpcUaClient configured with config. |
static OpcUaClient |
create(String endpointUrl)
Select the first endpoint with no security that allows anonymous connections and create an
OpcUaClient with the default configuration. |
static OpcUaClient |
create(String endpointUrl,
Function<List<org.eclipse.milo.opcua.stack.core.types.structured.EndpointDescription>,Optional<org.eclipse.milo.opcua.stack.core.types.structured.EndpointDescription>> selectEndpoint,
Function<OpcUaClientConfigBuilder,OpcUaClientConfig> buildConfig)
Create and configure an
OpcUaClient by selecting an EndpointDescription from a list of endpoints
retrieved via the GetEndpoints service from the server at endpointUrl and building an
OpcUaClientConfig using that endpoint. |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.CreateMonitoredItemsResponse> |
createMonitoredItems(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId,
org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn timestampsToReturn,
List<org.eclipse.milo.opcua.stack.core.types.structured.MonitoredItemCreateRequest> itemsToCreate)
This service is used to create and add one or more monitored items to a subscription.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.CreateSubscriptionResponse> |
createSubscription(double requestedPublishingInterval,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestedLifetimeCount,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestedMaxKeepAliveCount,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger maxNotificationsPerPublish,
boolean publishingEnabled,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte priority)
This service is used to create a subscription.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.DeleteMonitoredItemsResponse> |
deleteMonitoredItems(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId,
List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> monitoredItemIds)
This service is used to remove one or more monitored items of a subscription.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.DeleteNodesResponse> |
deleteNodes(List<org.eclipse.milo.opcua.stack.core.types.structured.DeleteNodesItem> nodesToDelete) |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.DeleteReferencesResponse> |
deleteReferences(List<org.eclipse.milo.opcua.stack.core.types.structured.DeleteReferencesItem> referencesToDelete) |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.DeleteSubscriptionsResponse> |
deleteSubscriptions(List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> subscriptionIds)
This service is invoked to delete one or more subscriptions that belong to the client's session.
|
CompletableFuture<OpcUaClient> |
disconnect()
Disconnect from the configured endpoint.
|
AddressSpace |
getAddressSpace() |
OpcUaClientConfig |
getConfig() |
org.eclipse.milo.opcua.stack.core.types.DataTypeManager |
getDynamicDataTypeManager() |
org.eclipse.milo.opcua.stack.core.serialization.SerializationContext |
getDynamicSerializationContext() |
org.eclipse.milo.opcua.stack.core.NamespaceTable |
getNamespaceTable()
Get the local copy of the server's NamespaceTable.
|
ObjectTypeManager |
getObjectTypeManager() |
CompletableFuture<OpcUaSession> |
getSession() |
UaStackClient |
getStackClient() |
org.eclipse.milo.opcua.stack.core.types.DataTypeManager |
getStaticDataTypeManager() |
org.eclipse.milo.opcua.stack.core.serialization.SerializationContext |
getStaticSerializationContext() |
OpcUaSubscriptionManager |
getSubscriptionManager() |
VariableTypeManager |
getVariableTypeManager() |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.HistoryReadResponse> |
historyRead(org.eclipse.milo.opcua.stack.core.types.structured.HistoryReadDetails historyReadDetails,
org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn timestampsToReturn,
boolean releaseContinuationPoints,
List<org.eclipse.milo.opcua.stack.core.types.structured.HistoryReadValueId> nodesToRead)
This Service is used to read historical values or Events of one or more Nodes.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.HistoryUpdateResponse> |
historyUpdate(List<org.eclipse.milo.opcua.stack.core.types.structured.HistoryUpdateDetails> historyUpdateDetails)
This Service is used to update historical values or Events of one or more Nodes.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.ModifyMonitoredItemsResponse> |
modifyMonitoredItems(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId,
org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn timestampsToReturn,
List<org.eclipse.milo.opcua.stack.core.types.structured.MonitoredItemModifyRequest> itemsToModify)
This service is used to modify monitored items of a subscription.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.ModifySubscriptionResponse> |
modifySubscription(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId,
double requestedPublishingInterval,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestedLifetimeCount,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestedMaxKeepAliveCount,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger maxNotificationsPerPublish,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte priority)
This service is used to modify a subscription.
|
org.eclipse.milo.opcua.stack.core.types.structured.RequestHeader |
newRequestHeader()
Build a new
RequestHeader using a null authentication token. |
org.eclipse.milo.opcua.stack.core.types.structured.RequestHeader |
newRequestHeader(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId authToken)
Build a new
RequestHeader using authToken. |
org.eclipse.milo.opcua.stack.core.types.structured.RequestHeader |
newRequestHeader(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId authToken,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestTimeout)
Build a new
RequestHeader using authToken and a custom requestTimeout. |
org.eclipse.milo.opcua.stack.core.types.structured.RequestHeader |
newRequestHeader(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestTimeout)
Build a new
RequestHeader using a null authentication token and a custom requestTimeout. |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.PublishResponse> |
publish(List<org.eclipse.milo.opcua.stack.core.types.structured.SubscriptionAcknowledgement> subscriptionAcknowledgements)
This service is used for two purposes.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.ReadResponse> |
read(double maxAge,
org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn timestampsToReturn,
List<org.eclipse.milo.opcua.stack.core.types.structured.ReadValueId> readValueIds)
This service is used to read one or more attributes of one or more nodes.
|
org.eclipse.milo.opcua.stack.core.NamespaceTable |
readNamespaceTable()
Read the server's NamespaceTable and update the local copy.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.NamespaceTable> |
readNamespaceTableAsync()
Read the server's NamespaceTable and update the local copy.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.RegisterNodesResponse> |
registerNodes(List<org.eclipse.milo.opcua.stack.core.types.builtin.NodeId> nodesToRegister)
The RegisterNodes service can be used by clients to register the nodes that they know they will access repeatedly
(e.g.
|
void |
removeFaultListener(ServiceFaultListener faultListener) |
void |
removeSessionActivityListener(SessionActivityListener listener) |
void |
removeSessionInitializer(SessionFsm.SessionInitializer initializer) |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.RepublishResponse> |
republish(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger retransmitSequenceNumber)
This service requests the subscription to republish a notification message from its retransmission queue.
|
<T extends org.eclipse.milo.opcua.stack.core.serialization.UaResponseMessage> |
sendRequest(org.eclipse.milo.opcua.stack.core.serialization.UaRequestMessage request)
Send a
UaRequestMessage. |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.SetMonitoringModeResponse> |
setMonitoringMode(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId,
org.eclipse.milo.opcua.stack.core.types.enumerated.MonitoringMode monitoringMode,
List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> monitoredItemIds)
This service is used to set the
MonitoringMode for one or more monitored items of a subscription. |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.SetPublishingModeResponse> |
setPublishingMode(boolean publishingEnabled,
List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> subscriptionIds)
This service is used to enable sending of notifications on one or more subscriptions.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.SetTriggeringResponse> |
setTriggering(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger triggeringItemId,
List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> linksToAdd,
List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> linksToRemove)
This service is used to create and delete triggering links for a triggering item.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.TransferSubscriptionsResponse> |
transferSubscriptions(List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> subscriptionIds,
boolean sendInitialValues)
This service is used to transfer a subscription and its monitored items from one session to another.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.TranslateBrowsePathsToNodeIdsResponse> |
translateBrowsePaths(List<org.eclipse.milo.opcua.stack.core.types.structured.BrowsePath> browsePaths)
This service is used to request that the server translates one or more browse paths to
NodeIds. |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.UnregisterNodesResponse> |
unregisterNodes(List<org.eclipse.milo.opcua.stack.core.types.builtin.NodeId> nodesToUnregister)
This service is used to unregister
NodeIds that have been register via the RegisterNodes service. |
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.WriteResponse> |
write(List<org.eclipse.milo.opcua.stack.core.types.structured.WriteValue> writeValues)
This service is used to write values to one or more attributes of one or more nodes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitread, readValue, readValues, writeValue, writeValuescallbrowse, browse, browseNextpublic static final String SDK_VERSION
public OpcUaClient(OpcUaClientConfig config, UaStackClient stackClient)
public static OpcUaClient create(OpcUaClientConfig config) throws org.eclipse.milo.opcua.stack.core.UaException
OpcUaClient configured with config.config - the OpcUaClientConfig.OpcUaClient configured with config.org.eclipse.milo.opcua.stack.core.UaException - if the client could not be created (e.g. transport/encoding not supported).public static OpcUaClient create(String endpointUrl) throws org.eclipse.milo.opcua.stack.core.UaException
OpcUaClient with the default configuration.
If the server is not configured with an endpoint with no security or authentication you
must use create(String, Function, Function) to select an endpoint and configure
any certificates or identity provider that the selected endpoint would require.
endpointUrl - the endpoint URL of the server to connect to and get endpoints from.OpcUaClient configured to connect to the server identified by
endpointUrl.org.eclipse.milo.opcua.stack.core.UaException - if the endpoints could not be retrieved or the client could not be
created.public static OpcUaClient create(String endpointUrl, Function<List<org.eclipse.milo.opcua.stack.core.types.structured.EndpointDescription>,Optional<org.eclipse.milo.opcua.stack.core.types.structured.EndpointDescription>> selectEndpoint, Function<OpcUaClientConfigBuilder,OpcUaClientConfig> buildConfig) throws org.eclipse.milo.opcua.stack.core.UaException
OpcUaClient by selecting an EndpointDescription from a list of endpoints
retrieved via the GetEndpoints service from the server at endpointUrl and building an
OpcUaClientConfig using that endpoint.endpointUrl - the endpoint URL of the server to connect to and retrieve endpoints from.selectEndpoint - a function that selects the EndpointDescription to connect to from the list of
endpoints from the server.buildConfig - a function that configures an OpcUaClientConfigBuilder and then builds and returns
an OpcUaClientConfig.OpcUaClient.org.eclipse.milo.opcua.stack.core.UaException - if the endpoints could not be retrieved or the client could not be created.public OpcUaClientConfig getConfig()
getConfig in interface UaClientOpcUaClientConfig for this client.public UaStackClient getStackClient()
public AddressSpace getAddressSpace()
getAddressSpace in interface UaClientAddressSpace.public ObjectTypeManager getObjectTypeManager()
public VariableTypeManager getVariableTypeManager()
public org.eclipse.milo.opcua.stack.core.types.DataTypeManager getStaticDataTypeManager()
UaStackClient.getStaticDataTypeManager()public org.eclipse.milo.opcua.stack.core.types.DataTypeManager getDynamicDataTypeManager()
public org.eclipse.milo.opcua.stack.core.serialization.SerializationContext getStaticSerializationContext()
public org.eclipse.milo.opcua.stack.core.serialization.SerializationContext getDynamicSerializationContext()
public org.eclipse.milo.opcua.stack.core.NamespaceTable getNamespaceTable()
public org.eclipse.milo.opcua.stack.core.NamespaceTable readNamespaceTable()
throws org.eclipse.milo.opcua.stack.core.UaException
NamespaceTable.org.eclipse.milo.opcua.stack.core.UaException - if an operation- or service-level error occurs.public CompletableFuture<org.eclipse.milo.opcua.stack.core.NamespaceTable> readNamespaceTableAsync()
This call completes asynchronously.
CompletableFuture that completes successfully with the updated
NamespaceTable or completes exceptionally if a service- or operation-level error
occurs.public org.eclipse.milo.opcua.stack.core.types.structured.RequestHeader newRequestHeader()
RequestHeader using a null authentication token.RequestHeader with a null authentication token.public org.eclipse.milo.opcua.stack.core.types.structured.RequestHeader newRequestHeader(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId authToken)
RequestHeader using authToken.authToken - the authentication token (from the session) to use.RequestHeader.public org.eclipse.milo.opcua.stack.core.types.structured.RequestHeader newRequestHeader(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestTimeout)
RequestHeader using a null authentication token and a custom requestTimeout.requestTimeout - the custom request timeout to use.RequestHeader with a null authentication token and a custom request timeout.public org.eclipse.milo.opcua.stack.core.types.structured.RequestHeader newRequestHeader(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId authToken,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestTimeout)
RequestHeader using authToken and a custom requestTimeout.authToken - the authentication token (from the session) to use.requestTimeout - the custom request timeout to use.RequestHeader.public CompletableFuture<UaClient> connect()
UaClientconnect in interface UaClientCompletableFuture holding this client instance.public CompletableFuture<OpcUaClient> disconnect()
UaClientdisconnect in interface UaClientCompletableFuture holding this client instance.public OpcUaSubscriptionManager getSubscriptionManager()
getSubscriptionManager in interface UaClientOpcUaSubscriptionManager for this client.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.ReadResponse> read(double maxAge, org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn timestampsToReturn, List<org.eclipse.milo.opcua.stack.core.types.structured.ReadValueId> readValueIds)
AttributeServicesread in interface AttributeServicesmaxAge - the requested max age of the value, in milliseconds. If maxAge is set to 0, the Server
shall attempt to read a new value from the data source. If maxAge is set to the max
Int32 value or greater, the Server shall attempt to get a cached value. Negative values
are invalid for maxAge.timestampsToReturn - the requested TimestampsToReturn.readValueIds - the ReadValueIds identifying the nodes and attributes to read.CompletableFuture containing the ReadResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.WriteResponse> write(List<org.eclipse.milo.opcua.stack.core.types.structured.WriteValue> writeValues)
AttributeServiceswrite in interface AttributeServiceswriteValues - the list of nodes and their attributes to write.CompletableFuture containing the WriteResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.HistoryReadResponse> historyRead(org.eclipse.milo.opcua.stack.core.types.structured.HistoryReadDetails historyReadDetails, org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn timestampsToReturn, boolean releaseContinuationPoints, List<org.eclipse.milo.opcua.stack.core.types.structured.HistoryReadValueId> nodesToRead)
AttributeServiceshistoryRead in interface AttributeServiceshistoryReadDetails - defines the types of history read to be performed.timestampsToReturn - specifies the timestamps to be returned for each requested value attribute.releaseContinuationPoints - if true, passed continuationPoints shall be reset to free resources in
the Server. if false, passed continuationPoints shall be used to get the
next set of historical information.nodesToRead - the list of items upon which the historical retrieval is to be performed.CompletableFuture containing the HistoryReadResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.HistoryUpdateResponse> historyUpdate(List<org.eclipse.milo.opcua.stack.core.types.structured.HistoryUpdateDetails> historyUpdateDetails)
AttributeServiceshistoryUpdate in interface AttributeServiceshistoryUpdateDetails - the details defined for this update.CompletableFuture containing the HistoryUpdateResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.BrowseResponse> browse(org.eclipse.milo.opcua.stack.core.types.structured.ViewDescription viewDescription, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger maxReferencesPerNode, List<org.eclipse.milo.opcua.stack.core.types.structured.BrowseDescription> nodesToBrowse)
ViewServicesThe browse can be further limited by the use of a view. The Browse service also supports a primitive filtering capability.
browse in interface ViewServicesviewDescription - a description of the view to browse. An empty ViewDescription indicates a
view of the entire address space.maxReferencesPerNode - the maximum number of references to return for each starting node specified in the
request.nodesToBrowse - a list of nodes to browse.CompletableFuture containing the BrowseResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.BrowseNextResponse> browseNext(boolean releaseContinuationPoints, List<org.eclipse.milo.opcua.stack.core.types.builtin.ByteString> continuationPoints)
ViewServices“Too large” in this context means that the server is not able to return a larger response or that the number of results to return exceeds the maximum number of results to return that was specified by the client in the original Browse request.
browseNext in interface ViewServicesreleaseContinuationPoints - if true, passed continuationPoints shall be reset to free resources in
the server. If false, passed continuationPoints shall be used to get the
next set of browse information.continuationPoints - a list of server-defined opaque values that represent continuation points.CompletableFuture containing the BrowseNextResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.TranslateBrowsePathsToNodeIdsResponse> translateBrowsePaths(List<org.eclipse.milo.opcua.stack.core.types.structured.BrowsePath> browsePaths)
ViewServicesNodeIds.
Each browse path is constructed of a starting NodeId and a RelativePath. The specified starting
node identifies the node from which the RelativePath is based.
translateBrowsePaths in interface ViewServicesbrowsePaths - a list of browse paths for which NodeIds are being requested.CompletableFuture containing the TranslateBrowsePathsToNodeIdsResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.RegisterNodesResponse> registerNodes(List<org.eclipse.milo.opcua.stack.core.types.builtin.NodeId> nodesToRegister)
ViewServicesregisterNodes in interface ViewServicesnodesToRegister - a list of NodeIds to register.CompletableFuture containing the RegisterNodesResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.UnregisterNodesResponse> unregisterNodes(List<org.eclipse.milo.opcua.stack.core.types.builtin.NodeId> nodesToUnregister)
ViewServicesNodeIds that have been register via the RegisterNodes service.unregisterNodes in interface ViewServicesnodesToUnregister - a list of NodeIds to unregister.CompletableFuture containing the UnregisterNodesResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.CallResponse> call(List<org.eclipse.milo.opcua.stack.core.types.structured.CallMethodRequest> methodsToCall)
MethodServicescall in interface MethodServicesmethodsToCall - a list of methods to call.CompletableFuture containing the CallResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.CreateSubscriptionResponse> createSubscription(double requestedPublishingInterval, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestedLifetimeCount, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestedMaxKeepAliveCount, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger maxNotificationsPerPublish, boolean publishingEnabled, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte priority)
SubscriptionServicescreateSubscription in interface SubscriptionServicesrequestedPublishingInterval - this interval defines the cyclic rate that the subscription is being requested
to return notifications to the client. This interval is expressed in
milliseconds.requestedLifetimeCount - the requested lifetime count. The lifetime count shall be a minimum of three
times the keep keep-alive count.requestedMaxKeepAliveCount - the requested maximum keep-alive count. When the publishing timer has expired
this number of times without requiring any notification to be sent, the
subscription sends a keep-alive message to the client.maxNotificationsPerPublish - the maximum number of notifications that the client wishes to receive in a
single publish response. A value of zero indicates that there is no limit.publishingEnabled - if true, publishing is enabled for this subscription.priority - indicates the relative priority of the subscription.CompletableFuture containing the CreateSubscriptionResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.ModifySubscriptionResponse> modifySubscription(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId, double requestedPublishingInterval, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestedLifetimeCount, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger requestedMaxKeepAliveCount, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger maxNotificationsPerPublish, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte priority)
SubscriptionServicesmodifySubscription in interface SubscriptionServicessubscriptionId - the server-assigned identifier for the subscription.requestedPublishingInterval - this interval defines the cyclic rate that the subscription is being requested
to return notifications to the client. This interval is expressed in
milliseconds.requestedLifetimeCount - the requested lifetime count. The lifetime count shall be a minimum of three
times the keep keep-alive count.requestedMaxKeepAliveCount - the requested maximum keep-alive count. When the publishing timer has expired
this number of times without requiring any notification to be sent, the
subscription sends a keep-alive message to the client.maxNotificationsPerPublish - the maximum number of notifications that the client wishes to receive in a
single publish response. A value of zero indicates that there is no limit.priority - indicates the relative priority of the subscription.CompletableFuture containing the ModifySubscriptionResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.DeleteSubscriptionsResponse> deleteSubscriptions(List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> subscriptionIds)
SubscriptionServicesdeleteSubscriptions in interface SubscriptionServicessubscriptionIds - the server-assigned identifiers for the subscriptions.CompletableFuture containing the DeleteSubscriptionsResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.TransferSubscriptionsResponse> transferSubscriptions(List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> subscriptionIds, boolean sendInitialValues)
SubscriptionServicestransferSubscriptions in interface SubscriptionServicessubscriptionIds - the server-assigned identifiers for the subscriptions to transfer.sendInitialValues - if true, the first Publish response after the TransferSubscriptions service
call shall contain the current values of all monitored items in the
subscription where the MonitoringMode is MonitoringMode.Reporting.CompletableFuture containing the TransferSubscriptionsResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.SetPublishingModeResponse> setPublishingMode(boolean publishingEnabled, List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> subscriptionIds)
SubscriptionServicessetPublishingMode in interface SubscriptionServicespublishingEnabled - true if publishing of notification messages is to be enabled.subscriptionIds - a list of server-assigned subscription identifiers to enable or disable publishing on.CompletableFuture containing the SetPublishingModeResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.PublishResponse> publish(List<org.eclipse.milo.opcua.stack.core.types.structured.SubscriptionAcknowledgement> subscriptionAcknowledgements)
SubscriptionServicespublish in interface SubscriptionServicessubscriptionAcknowledgements - the list of acknowledgements for one or more subscriptions. This list may
contain multiple acknowledgements for the same subscription (multiple entries
with the same subscriptionId).CompletableFuture containing the PublishResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.RepublishResponse> republish(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger retransmitSequenceNumber)
SubscriptionServicesrepublish in interface SubscriptionServicessubscriptionId - the server-assigned identifier for the subscription to be republished.retransmitSequenceNumber - the sequence number of a specific notification message to be republished.CompletableFuture containing the RepublishResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.CreateMonitoredItemsResponse> createMonitoredItems(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId, org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn timestampsToReturn, List<org.eclipse.milo.opcua.stack.core.types.structured.MonitoredItemCreateRequest> itemsToCreate)
MonitoredItemServicescreateMonitoredItems in interface MonitoredItemServicessubscriptionId - the server-assigned identifier for the subscription that will report notifications for
the monitored items.timestampsToReturn - the TimestampsToReturn.itemsToCreate - a list of monitored items to be created and assigned to the specified subscription.CompletableFuture containing the CreateMonitoredItemsResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.ModifyMonitoredItemsResponse> modifyMonitoredItems(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId, org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn timestampsToReturn, List<org.eclipse.milo.opcua.stack.core.types.structured.MonitoredItemModifyRequest> itemsToModify)
MonitoredItemServicesmodifyMonitoredItems in interface MonitoredItemServicessubscriptionId - the server-assigned identifier of the subscription the items to modify belong to.timestampsToReturn - the TimestampsToReturn.itemsToModify - a list of monitored items to modify.CompletableFuture containing the ModifyMonitoredItemsResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.DeleteMonitoredItemsResponse> deleteMonitoredItems(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId, List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> monitoredItemIds)
MonitoredItemServicesdeleteMonitoredItems in interface MonitoredItemServicessubscriptionId - the server-assigned identifier of the subscription the items to delete belong to.monitoredItemIds - a list of server-assigned identifiers for the items to delete.CompletableFuture containing the DeleteMonitoredItemsResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.SetMonitoringModeResponse> setMonitoringMode(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId, org.eclipse.milo.opcua.stack.core.types.enumerated.MonitoringMode monitoringMode, List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> monitoredItemIds)
MonitoredItemServicesMonitoringMode for one or more monitored items of a subscription.
Setting the mode to MonitoringMode.Disabled causes all queued notifications to be deleted.
setMonitoringMode in interface MonitoredItemServicessubscriptionId - the server-assigned identifier of the subscription the items belong to.monitoringMode - the MonitoringMode to be set for the monitored items.monitoredItemIds - a list of server-assigned identifiers for the items whose MonitoringMode will
be set.CompletableFuture containing the SetMonitoringModeResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.SetTriggeringResponse> setTriggering(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger subscriptionId, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger triggeringItemId, List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> linksToAdd, List<org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> linksToRemove)
MonitoredItemServicessetTriggering in interface MonitoredItemServicessubscriptionId - the server-assigned identifier for the subscription that contains the triggering item and
the items to report.triggeringItemId - the server-assigned identifier for the monitored item used as the triggering item.linksToAdd - the list of server-assigned identifiers of the items to report that are to be added as
triggering links. The list of links to remove is processed before the links to add.linksToRemove - the list of server-assigned identifiers of the items to report for the triggering links
to be removed. The list of links to remove is processed before the links to add.CompletableFuture containing the SetTriggeringResponse.public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.AddNodesResponse> addNodes(List<org.eclipse.milo.opcua.stack.core.types.structured.AddNodesItem> nodesToAdd)
addNodes in interface NodeManagementServicespublic CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.AddReferencesResponse> addReferences(List<org.eclipse.milo.opcua.stack.core.types.structured.AddReferencesItem> referencesToAdd)
addReferences in interface NodeManagementServicespublic CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.DeleteNodesResponse> deleteNodes(List<org.eclipse.milo.opcua.stack.core.types.structured.DeleteNodesItem> nodesToDelete)
deleteNodes in interface NodeManagementServicespublic CompletableFuture<org.eclipse.milo.opcua.stack.core.types.structured.DeleteReferencesResponse> deleteReferences(List<org.eclipse.milo.opcua.stack.core.types.structured.DeleteReferencesItem> referencesToDelete)
deleteReferences in interface NodeManagementServicespublic CompletableFuture<OpcUaSession> getSession()
getSession in interface UaClientCompletableFuture holding the UaSession.public <T extends org.eclipse.milo.opcua.stack.core.serialization.UaResponseMessage> CompletableFuture<T> sendRequest(org.eclipse.milo.opcua.stack.core.serialization.UaRequestMessage request)
UaClientUaRequestMessage.sendRequest in interface UaClientrequest - the request to send.CompletableFuture holding the response.public void addFaultListener(ServiceFaultListener faultListener)
public void removeFaultListener(ServiceFaultListener faultListener)
public void addSessionActivityListener(SessionActivityListener listener)
public void removeSessionActivityListener(SessionActivityListener listener)
public void addSessionInitializer(SessionFsm.SessionInitializer initializer)
public void removeSessionInitializer(SessionFsm.SessionInitializer initializer)
Copyright © 2021. All rights reserved.