Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,11 @@ public DataTypeManager getDynamicDataTypeManager() throws UaException {
() -> dynamicDataTypeManagerFactory.create(this, getNamespaceTable(), getDataTypeTree()));
}

/** Reset the cached dynamic {@link DataTypeManager}. */
public void resetDynamicDataTypeManager() {
dynamicDataTypeManager.reset();
}

/**
* Get a "static" {@link EncodingContext} instance.
*
Expand Down Expand Up @@ -713,6 +718,11 @@ public ServerTable getServerTable() {
});
}

/** Reset the cached dynamic {@link EncodingContext}. */
public void resetDynamicEncodingContext() {
dynamicEncodingContext.reset();
}

/**
* Get the local copy of the server's NamespaceTable (NamespaceArray).
*
Expand Down Expand Up @@ -892,14 +902,19 @@ public DataTypeTree getDataTypeTree() throws UaException {
}
}

/** Reset the cached {@link DataTypeTree}. */
public void resetDataTypeTree() {
dataTypeTree.reset();
}

/**
* Read the {@link DataTypeTree} from the server and update the local copy.
*
* @return the updated {@link DataTypeTree}.
* @throws UaException if an error occurs while reading the DataTypes.
*/
public DataTypeTree readDataTypeTree() throws UaException {
dataTypeTree.reset();
resetDataTypeTree();

return getDataTypeTree();
}
Expand Down Expand Up @@ -936,14 +951,19 @@ public ObjectTypeTree getObjectTypeTree() throws UaException {
}
}

/** Reset the cached {@link ObjectTypeTree}. */
public void resetObjectTypeTree() {
objectTypeTree.reset();
}

/**
* Read the {@link ObjectTypeTree} from the server and update the local copy.
*
* @return the updated {@link ObjectTypeTree}.
* @throws UaException if an error occurs while reading the ObjectTypes.
*/
public ObjectTypeTree readObjectTypeTree() throws UaException {
objectTypeTree.reset();
resetObjectTypeTree();

return getObjectTypeTree();
}
Expand Down Expand Up @@ -981,14 +1001,19 @@ public VariableTypeTree getVariableTypeTree() throws UaException {
}
}

/** Reset the cached {@link VariableTypeTree}. */
public void resetVariableTypeTree() {
variableTypeTree.reset();
}

/**
* Read the {@link VariableTypeTree} from the server and update the local copy.
*
* @return the updated {@link VariableTypeTree}.
* @throws UaException if an error occurs while reading the VariableTypes.
*/
public VariableTypeTree readVariableTypeTree() throws UaException {
variableTypeTree.reset();
resetVariableTypeTree();

return getVariableTypeTree();
}
Expand Down Expand Up @@ -1023,14 +1048,19 @@ public OperationLimits getOperationLimits() throws UaException {
return operationLimits.getOrThrow(() -> OperationLimits.read(this));
}

/** Reset the cached {@link OperationLimits}. */
public void resetOperationLimits() {
operationLimits.reset();
}

/**
* Read the server's OperationLimits and update the local copy.
*
* @return the server's {@link OperationLimits}.
* @throws UaException if an error occurs reading the operation limits.
*/
public OperationLimits readOperationLimits() throws UaException {
operationLimits.reset();
resetOperationLimits();

return getOperationLimits();
}
Expand Down Expand Up @@ -1099,7 +1129,7 @@ public RequestHeader newRequestHeader(NodeId authToken, UInteger requestTimeout)
public void setDataTypeTreeFactory(DataTypeTreeFactory dataTypeTreeFactory) {
this.dataTypeTreeFactory = dataTypeTreeFactory;

dataTypeTree.reset();
resetDataTypeTree();
}

/**
Expand All @@ -1125,8 +1155,8 @@ public void setDynamicDataTypeManagerFactory(

this.dynamicDataTypeManagerFactory = dynamicDataTypeManagerFactory;

dynamicDataTypeManager.reset();
dynamicEncodingContext.reset();
resetDynamicDataTypeManager();
resetDynamicEncodingContext();
}

// region Attribute Services
Expand Down