public interface OPCManager extends ExtensionPointManager
Modifier and Type | Method and Description |
---|---|
void |
addOPCServerType(OPCServerType type)
Adds a new kind of OPC Server to the system.
|
java.util.List<OPCBrowseElement> |
browse(ServerNodeId nodeId)
Browse the nodes immediately under the given node
|
void |
cancelSubscription(java.lang.String subscriptionName)
Cancels the subscription.
|
void |
enableAutoCancel(java.lang.String subscriptionName)
Once set, the subscription will be canceled as soon as all nodes are unsubscribed from it.
|
SROPCServer.State |
getServerState(java.lang.String name)
Returns the state of a named server.
|
SubscriptionModel |
getSubscriptionModel() |
java.util.List<QualifiedValue> |
read(java.util.List<ServerNodeId> nodes)
Reads the values addressed by the given nodes
|
void |
removeOPCServerType(OPCServerType type)
Removes a type of OPC Server from the system
|
void |
setSubscriptionRate(java.lang.String subscriptionName,
int newRate)
Sets the desired subscription rate for the named subscription.
|
void |
subscribe(java.util.List<? extends SubscribableNode> nodes)
Subscribes to the given nodes.
|
void |
unsubscribe(java.util.List<? extends SubscribableNode> nodes)
Unsubscribes previously subscribed nodes
|
java.util.List<Quality> |
write(java.util.List<OPCWriteRequest> values)
Writes the values to their node ids
|
getExtensionPoint, getExtensionPoints
SROPCServer.State getServerState(java.lang.String name)
SROPCServer.State.UNKNOWN
will
be returned.name
- Name of the server.SROPCServer.State.UNKNOWN
if the server doesn't exist.void subscribe(java.util.List<? extends SubscribableNode> nodes)
void unsubscribe(java.util.List<? extends SubscribableNode> nodes)
void setSubscriptionRate(java.lang.String subscriptionName, int newRate)
cancelSubscription(String)
is called.subscriptionName
- The name of the subscription. Will implicitly define any previously unknown
subscriptions.newRate
- The new desired rate, in milliseconds.void cancelSubscription(java.lang.String subscriptionName)
void enableAutoCancel(java.lang.String subscriptionName)
java.util.List<QualifiedValue> read(java.util.List<ServerNodeId> nodes)
java.util.List<Quality> write(java.util.List<OPCWriteRequest> values)
java.util.List<OPCBrowseElement> browse(ServerNodeId nodeId) throws java.lang.Exception
java.lang.Exception
void addOPCServerType(OPCServerType type) throws java.lang.Exception
java.lang.Exception
void removeOPCServerType(OPCServerType type) throws java.lang.Exception
java.lang.Exception
SubscriptionModel getSubscriptionModel()
SubscriptionModel
managed by the OPC system. This is the same instance that is provided
to SROPCServer.startup(SubscriptionModel)
.