use of org.eclipse.milo.opcua.sdk.server.api.methods.Out in project milo by eclipse.
the class GetMonitoredItemsMethod method invoke.
@Override
protected Variant[] invoke(AbstractMethodInvocationHandler.InvocationContext context, Variant[] inputValues) throws UaException {
UInteger subscriptionId = (UInteger) inputValues[0].getValue();
Out<UInteger[]> serverHandles = new Out<UInteger[]>();
Out<UInteger[]> clientHandles = new Out<UInteger[]>();
invoke(context, subscriptionId, serverHandles, clientHandles);
return new Variant[] { new Variant(serverHandles.get()), new Variant(clientHandles.get()) };
}
use of org.eclipse.milo.opcua.sdk.server.api.methods.Out in project milo by eclipse.
the class OpenMethod method invoke.
@Override
protected Variant[] invoke(AbstractMethodInvocationHandler.InvocationContext context, Variant[] inputValues) throws UaException {
UByte mode = (UByte) inputValues[0].getValue();
Out<UInteger> fileHandle = new Out<UInteger>();
invoke(context, mode, fileHandle);
return new Variant[] { new Variant(fileHandle.get()) };
}
use of org.eclipse.milo.opcua.sdk.server.api.methods.Out in project milo by eclipse.
the class UpdateCertificateMethod method invoke.
@Override
protected Variant[] invoke(AbstractMethodInvocationHandler.InvocationContext context, Variant[] inputValues) throws UaException {
NodeId certificateGroupId = (NodeId) inputValues[0].getValue();
NodeId certificateTypeId = (NodeId) inputValues[1].getValue();
ByteString certificate = (ByteString) inputValues[2].getValue();
ByteString[] issuerCertificates = (ByteString[]) inputValues[3].getValue();
String privateKeyFormat = (String) inputValues[4].getValue();
ByteString privateKey = (ByteString) inputValues[5].getValue();
Out<Boolean> applyChangesRequired = new Out<Boolean>();
invoke(context, certificateGroupId, certificateTypeId, certificate, issuerCertificates, privateKeyFormat, privateKey, applyChangesRequired);
return new Variant[] { new Variant(applyChangesRequired.get()) };
}
use of org.eclipse.milo.opcua.sdk.server.api.methods.Out in project milo by eclipse.
the class CloseAndUpdateMethod method invoke.
@Override
protected Variant[] invoke(AbstractMethodInvocationHandler.InvocationContext context, Variant[] inputValues) throws UaException {
UInteger fileHandle = (UInteger) inputValues[0].getValue();
Out<Boolean> applyChangesRequired = new Out<Boolean>();
invoke(context, fileHandle, applyChangesRequired);
return new Variant[] { new Variant(applyChangesRequired.get()) };
}
use of org.eclipse.milo.opcua.sdk.server.api.methods.Out in project milo by eclipse.
the class MoveOrCopyMethod method invoke.
@Override
protected Variant[] invoke(AbstractMethodInvocationHandler.InvocationContext context, Variant[] inputValues) throws UaException {
NodeId objectToMoveOrCopy = (NodeId) inputValues[0].getValue();
NodeId targetDirectory = (NodeId) inputValues[1].getValue();
Boolean createCopy = (Boolean) inputValues[2].getValue();
String newName = (String) inputValues[3].getValue();
Out<NodeId> newNodeId = new Out<NodeId>();
invoke(context, objectToMoveOrCopy, targetDirectory, createCopy, newName, newNodeId);
return new Variant[] { new Variant(newNodeId.get()) };
}
Aggregations