Package sk.ipesoft.d2000.d2japi
Interface ArchiveDataProvider
-
public interface ArchiveDataProvider
Provider of archive data that holds data. example of usage: { ArchiveDataProvider provider = ... ; while(provider.containtData()) { D2Val [] data = provider.waitForData(); } }
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
containtData()
ArchiveObjectDescription
getDescription()
Get current snapshot of configuration of archived tag.sk.ipesoft.d2000.base.UnivalValue<?>[]
waitForData()
Wait until some data came from archive and return them.sk.ipesoft.d2000.base.UnivalValue<?>[]
waitForData(long timeoutMilliseconds)
Wait until some data came from archive or specified timeout.
-
-
-
Method Detail
-
waitForData
sk.ipesoft.d2000.base.UnivalValue<?>[] waitForData() throws java.lang.InterruptedException, D2JapiException
Wait until some data came from archive and return them.- Returns:
- data or null if no more data is available.
- Throws:
java.lang.InterruptedException
- when interrupted during waitD2JapiException
- when request refused by kernel
-
waitForData
sk.ipesoft.d2000.base.UnivalValue<?>[] waitForData(long timeoutMilliseconds) throws java.lang.InterruptedException, D2JapiException
Wait until some data came from archive or specified timeout.- Parameters:
timeoutMilliseconds
- timeout limit im milliseconds- Returns:
- data or null if no data is available or timeout is reached.
- Throws:
java.lang.InterruptedException
- when interrupted during waitD2JapiException
- when request refused by kernel
-
containtData
boolean containtData()
- Returns:
- if provider contains any data
-
getDescription
ArchiveObjectDescription getDescription()
Get current snapshot of configuration of archived tag.- Returns:
- configuration
-
-