com.prosysopc.ua.server
Class HistoryResult

java.lang.Object
  extended by com.prosysopc.ua.server.HistoryResult

public class HistoryResult
extends Object

A result structure for returning history data and an optional ContinuationPoint.


Constructor Summary
HistoryResult(org.opcfoundation.ua.builtintypes.StatusCode statusCode, org.opcfoundation.ua.builtintypes.DiagnosticInfo diagnosticInfo)
          Create the results for a failing history read.
HistoryResult(org.opcfoundation.ua.builtintypes.Structure data, Object continuationPoint)
          Create the results for a history read with valid data.
HistoryResult(org.opcfoundation.ua.builtintypes.Structure data, Object continuationPoint, org.opcfoundation.ua.builtintypes.StatusCode statusCode, org.opcfoundation.ua.builtintypes.DiagnosticInfo diagnosticInfo)
          Create the results for a history read.
 
Method Summary
 Object getContinuationPoint()
           
 org.opcfoundation.ua.builtintypes.Structure getData()
           
 org.opcfoundation.ua.builtintypes.DiagnosticInfo getDiagnosticInfo()
           
 org.opcfoundation.ua.builtintypes.StatusCode getStatusCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryResult

public HistoryResult(org.opcfoundation.ua.builtintypes.StatusCode statusCode,
                     org.opcfoundation.ua.builtintypes.DiagnosticInfo diagnosticInfo)
Create the results for a failing history read.

Parameters:
statusCode - the error code to return
diagnosticInfo - the diagnosticInfo for the bad status

HistoryResult

public HistoryResult(org.opcfoundation.ua.builtintypes.Structure data,
                     Object continuationPoint)
Create the results for a history read with valid data.

Parameters:
data - HistoryData, HistoryModifiedData or HistoryEvent depending on the details of the history read operation
continuationPoint - an optional continuationPoint, in case not all available data was returned. The client may continue reading the same data using this continuationPoint.

HistoryResult

public HistoryResult(org.opcfoundation.ua.builtintypes.Structure data,
                     Object continuationPoint,
                     org.opcfoundation.ua.builtintypes.StatusCode statusCode,
                     org.opcfoundation.ua.builtintypes.DiagnosticInfo diagnosticInfo)
Create the results for a history read.

Parameters:
data - HistoryData, HistoryModifiedData or HistoryEvent depending on the details of the history read operation
continuationPoint - an optional continuationPoint, in case not all available data was returned. The client may continue reading the same data using this continuationPoint.
statusCode - the status code to return
diagnosticInfo - the diagnosticInfo for a bad status
Method Detail

getContinuationPoint

public Object getContinuationPoint()

getData

public org.opcfoundation.ua.builtintypes.Structure getData()

getDiagnosticInfo

public org.opcfoundation.ua.builtintypes.DiagnosticInfo getDiagnosticInfo()

getStatusCode

public org.opcfoundation.ua.builtintypes.StatusCode getStatusCode()


Copyright © 2018. All rights reserved.