Class ServerNode
- java.lang.Object
-
- com.plccom.opc.ua.client.application.model.nodes.UaNode
-
- com.plccom.opc.ua.client.application.model.nodes.UaObjectNode
-
- com.plccom.opc.ua.client.application.model.nodes.objects.BaseObjectNode
-
- com.plccom.opc.ua.client.application.model.nodes.objects.ServerNode
-
public class ServerNode extends BaseObjectNode
PLCcom sdk ServerNode Implementation for Opc Ua- Author:
- Indi.An GmbH, www.indi-an.com, support@indi-an.com
-
-
Constructor Summary
Constructors Constructor Description ServerNode(UaClient client, com.plccom.opc.ua.builtintypes.NodeId nodeId)default constructor for ServerNode instances
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetAuditing()Returns the attribute AUDITING from cache or directly from connected ua servercom.plccom.opc.ua.builtintypes.DateTimegetEstimatedReturnTime()Returns the attribute ESTIMATED_RETURN_TIME from cache or directly from connected ua serverString[]getNamespaceArray()Returns the attribute NAMESPACE_ARRAY from cache or directly from connected ua serverString[]getServerArray()Returns the attribute SERVER_ARRAY from cache or directly from connected ua servercom.plccom.opc.ua.core.ServerStatusDataTypegetServerStatus()Returns the ServerStatus from cache or directly from connected ua servercom.plccom.opc.ua.builtintypes.UnsignedBytegetServiceLevel()Returns the attribute SERVICE_LEVEL from cache or directly from connected ua serverNamespacesNodenamespaces()Returns the Namespaces from connected ua serverServerCapabilitiesNodeserverCapabilities()Returns the ServerCapabilities from connected ua serverServerDiagnosticsNodeserverDiagnostics()Returns the ServerDiagnostics from connected ua serverServerRedundancyNodeserverRedundancy()Returns the ServerRedundancy from connected ua servercom.plccom.opc.ua.builtintypes.StatusCodesetAuditing(Boolean value)Sets the attribute AUDITING of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetEstimatedReturnTime(com.plccom.opc.ua.builtintypes.DateTime value)Sets the attribute ESTIMATED_RETURN_TIME of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetNamespaceArray(String[] value)Sets the attribute NAMESPACE_ARRAY of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetServerArray(String[] value)Sets the attribute SERVER_ARRAY of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetServerStatus(com.plccom.opc.ua.core.ServerStatusDataType value)Sets the ServerStatuscom.plccom.opc.ua.builtintypes.StatusCodesetServiceLevel(com.plccom.opc.ua.builtintypes.UnsignedByte value)Sets the attribute SERVICE_LEVEL of this node at connected ua server and refreshing the nodecacheVendorServerInfoNodevendorServerInfo()Returns the VendorServerInfo from connected ua server-
Methods inherited from class com.plccom.opc.ua.client.application.model.nodes.UaObjectNode
browseObjectType, browseVariable, getEventNotifier, readEventNotifier, setEventNotifier, writeEventNotifier
-
Methods inherited from class com.plccom.opc.ua.client.application.model.nodes.UaNode
getBrowseName, getDescription, getDisplayName, getNodeClass, getNodeId, getUserWriteMask, getWriteMask, readBrowseName, readDescription, readDisplayName, readNodeClass, readNodeId, readUserWriteMask, readWriteMask, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setUserWriteMask, setWriteMask, writeBrowseName, writeDescription, writeDisplayName, writeNodeClass, writeNodeId, writeUserWriteMask, writeWriteMask
-
-
-
-
Constructor Detail
-
ServerNode
public ServerNode(UaClient client, com.plccom.opc.ua.builtintypes.NodeId nodeId)
default constructor for ServerNode instances- Parameters:
client- the client instancenodeId- the based nodeid
-
-
Method Detail
-
serverCapabilities
public ServerCapabilitiesNode serverCapabilities() throws com.plccom.opc.ua.common.ServiceResultException
Returns the ServerCapabilities from connected ua server- Returns:
- the ServerCapabilities
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
serverDiagnostics
public ServerDiagnosticsNode serverDiagnostics() throws com.plccom.opc.ua.common.ServiceResultException
Returns the ServerDiagnostics from connected ua server- Returns:
- the ServerDiagnostics
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
vendorServerInfo
public VendorServerInfoNode vendorServerInfo() throws com.plccom.opc.ua.common.ServiceResultException
Returns the VendorServerInfo from connected ua server- Returns:
- the VendorServerInfo
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
serverRedundancy
public ServerRedundancyNode serverRedundancy() throws com.plccom.opc.ua.common.ServiceResultException
Returns the ServerRedundancy from connected ua server- Returns:
- the ServerRedundancy
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
namespaces
public NamespacesNode namespaces() throws com.plccom.opc.ua.common.ServiceResultException
Returns the Namespaces from connected ua server- Returns:
- the Namespaces
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getServerArray
public String[] getServerArray() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultException
Returns the attribute SERVER_ARRAY from cache or directly from connected ua server- Returns:
- the SERVER_ARRAY attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setServerArray
public com.plccom.opc.ua.builtintypes.StatusCode setServerArray(String[] value) throws com.plccom.opc.ua.common.ServiceResultException
Sets the attribute SERVER_ARRAY of this node at connected ua server and refreshing the nodecache- Parameters:
value- the SERVER_ARRAY attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getNamespaceArray
public String[] getNamespaceArray() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultException
Returns the attribute NAMESPACE_ARRAY from cache or directly from connected ua server- Returns:
- the NAMESPACE_ARRAY attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setNamespaceArray
public com.plccom.opc.ua.builtintypes.StatusCode setNamespaceArray(String[] value) throws com.plccom.opc.ua.common.ServiceResultException
Sets the attribute NAMESPACE_ARRAY of this node at connected ua server and refreshing the nodecache- Parameters:
value- the NAMESPACE_ARRAY attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getServiceLevel
public com.plccom.opc.ua.builtintypes.UnsignedByte getServiceLevel() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the attribute SERVICE_LEVEL from cache or directly from connected ua server- Returns:
- the SERVICE_LEVEL attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setServiceLevel
public com.plccom.opc.ua.builtintypes.StatusCode setServiceLevel(com.plccom.opc.ua.builtintypes.UnsignedByte value) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the attribute SERVICE_LEVEL of this node at connected ua server and refreshing the nodecache- Parameters:
value- the SERVICE_LEVEL attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getAuditing
public Boolean getAuditing() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultException
Returns the attribute AUDITING from cache or directly from connected ua server- Returns:
- the AUDITING attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setAuditing
public com.plccom.opc.ua.builtintypes.StatusCode setAuditing(Boolean value) throws com.plccom.opc.ua.common.ServiceResultException
Sets the attribute AUDITING of this node at connected ua server and refreshing the nodecache- Parameters:
value- the AUDITING attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getEstimatedReturnTime
public com.plccom.opc.ua.builtintypes.DateTime getEstimatedReturnTime() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the attribute ESTIMATED_RETURN_TIME from cache or directly from connected ua server- Returns:
- the ESTIMATED_RETURN_TIME attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setEstimatedReturnTime
public com.plccom.opc.ua.builtintypes.StatusCode setEstimatedReturnTime(com.plccom.opc.ua.builtintypes.DateTime value) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the attribute ESTIMATED_RETURN_TIME of this node at connected ua server and refreshing the nodecache- Parameters:
value- the ESTIMATED_RETURN_TIME attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getServerStatus
public com.plccom.opc.ua.core.ServerStatusDataType getServerStatus() throws com.plccom.opc.ua.encoding.DecodingException, com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the ServerStatus from cache or directly from connected ua server- Returns:
- the ServerStatus
- Throws:
com.plccom.opc.ua.encoding.DecodingException- throws if internal cast operation throws errorscom.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setServerStatus
public com.plccom.opc.ua.builtintypes.StatusCode setServerStatus(com.plccom.opc.ua.core.ServerStatusDataType value) throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionSets the ServerStatus- Parameters:
value- the ServerStatus- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
-