|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rbnb.api.Rmap
com.rbnb.api.DataRequest
public final class DataRequest
Request for data from the DataTurbine.
The DataRequest class extends Rmap to provide
additional fields and flags to support requests for data out of the
DataTurbine.
| Field Summary | |
|---|---|
static byte |
ABSOLUTE
absolute time reference. |
static byte |
AFTER
newest data starting after the specified time. |
static byte |
ALIGNED
aligned time reference. |
static byte |
ALL
get data from both EXISTING and FUTURE
domains. |
static byte |
CONSOLIDATED
respond using a single consolidated Rmap hierarchy. |
static byte |
EQUAL
data at the time reference. |
static byte |
EXISTING
get data already in the ring buffers. |
static byte |
FRAMES
respond a single source frame Rmap hierarchy at a time. |
static byte |
FUTURE
get data that appears after the request is issued. |
static byte |
GREATER
data starting after the specified time reference. |
static byte |
GREATER_EQUAL
data starting at or after the specified time reference. |
static long |
INFINITE
infinite repetitions. |
static byte |
LESS
data starting before the specified time reference. |
static byte |
LESS_EQUAL
data starting at or before the specified time reference. |
static byte |
MODIFIED
newest data including at least some data after the specified time. |
static byte |
NEWEST
times are relative to that of the newest available data. |
static byte |
OLDEST
times are relative to that of the oldest available data. |
| Fields inherited from class com.rbnb.api.Rmap |
|---|
PATHDELIMITER |
| Constructor Summary | |
|---|---|
DataRequest()
Class constructor. |
|
DataRequest(com.rbnb.api.InputStream isI,
com.rbnb.api.DataInputStream disI)
Class constructor to build an DataRequest by reading it
from an input stream. |
|
DataRequest(Rmap otherI,
com.rbnb.api.InputStream isI,
com.rbnb.api.DataInputStream disI)
Class constructor to build an DataRequest by reading it
from an input stream. |
|
DataRequest(String nameI)
Class constructor to build a DataRequest for the specified
name. |
|
DataRequest(String nameI,
TimeRange trangeI,
TimeRange frangeI)
Class constructor to build a DataRequest from the specified
values. |
|
DataRequest(String nameI,
TimeRange trangeI,
TimeRange frangeI,
byte referenceI,
byte relationshipI,
byte domainI,
long repetitionsI,
double incrementI,
boolean synchronizedI,
byte modeI,
boolean gapControlI)
Class constructor to build a DataRequest from the specified
values. |
|
DataRequest(String nameI,
TimeRange trangeI,
TimeRange frangeI,
byte referenceI,
byte domainI,
long repetitionsI,
double incrementI,
boolean synchronizedI,
byte modeI)
Class constructor to build a DataRequest from the specified
values. |
|
DataRequest(String nameI,
TimeRange trangeI,
TimeRange frangeI,
byte referenceI,
byte domainI,
long repetitionsI,
double incrementI,
boolean synchronizedI,
byte modeI,
boolean gapControlI)
Class constructor to build a DataRequest from the specified
values. |
|
| Method Summary | |
|---|---|
void |
combineWith(DataRequest otherI)
Combines this DataRequest with the input one to produce a
coherent set of flags. |
byte |
getDomain()
Gets the time domain. |
boolean |
getGapControl()
Gets the gap control flag. |
double |
getIncrement()
Gets the repitition increment. |
byte |
getMode()
Gets the response mode. |
long |
getNrepetitions()
Gets the number of repetitions. |
byte |
getReference()
Gets the time reference. |
byte |
getRelationship()
Gets the time relationship. |
boolean |
getSynchronized()
Gets the synchronized channels flag. |
void |
setDomain(byte domainI)
Sets the time domain. |
void |
setGapControl(boolean gapControlI)
Sets the gap control flag. |
void |
setMode(byte modeI)
Sets the response mode. |
void |
setReference(byte referenceI)
Sets the time reference. |
void |
setRelationship(byte relationshipI)
Sets the time relationship. |
void |
setRepetitions(long numberI,
double incrementI)
Sets the number of repetitions and the increment for repetitions after the first. |
void |
setSynchronized(boolean synchronizedI)
Sets the synchronized channels flag. |
| Methods inherited from class com.rbnb.api.Rmap |
|---|
addChannel, addChild, addChildAt, addDataWithTimeReference, addMember, clone, collapse, compareNames, compareNames, compareNames, compareTo, compareTo, createFromName, extract, extract, extractFolders, extractFoldersAndChannels, extractNames, extractRmap, findChild, findDescendant, findMember, getChildAt, getChildren, getDblock, getFrange, getFullName, getMemberAt, getMembers, getName, getNchildren, getNmembers, getParent, getTrange, isImplemented, markLeaf, mergeWith, moveToBottom, moveToTop, nullify, removeChild, removeChildAt, removeMember, removeMemberAt, setDblock, setFrange, setName, setTrange, sortField, toNameHierarchy, toString, toString, xmlRegistration, xmlRegistration |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final byte ABSOLUTE
The request time values are used as is.
AFTER,
ALIGNED,
MODIFIED,
NEWEST,
OLDEST,
Constant Field Valuespublic static final byte ALIGNED
ABSOLUTE,
AFTER,
MODIFIED,
NEWEST,
OLDEST,
Constant Field Valuespublic static final byte AFTER
ABSOLUTE,
ALIGNED,
MODIFIED,
NEWEST,
OLDEST,
Constant Field Valuespublic static final byte ALL
EXISTING and FUTURE
domains.
EXISTING,
FUTURE,
Constant Field Valuespublic static final byte CONSOLIDATED
Rmap hierarchy.
FRAMES,
Constant Field Valuespublic static final byte EQUAL
GREATER,
GREATER_EQUAL,
LESS,
LESS_EQUAL,
Constant Field Valuespublic static final byte EXISTING
ALL,
FUTURE,
Constant Field Valuespublic static final byte FRAMES
Rmap hierarchy at a time.
CONSOLIDATED,
Constant Field Valuespublic static final byte FUTURE
public static final byte GREATER
EQUAL,
GREATER_EQUAL,
LESS,
LESS_EQUAL,
Constant Field Valuespublic static final byte GREATER_EQUAL
EQUAL,
GREATER,
LESS,
LESS_EQUAL,
Constant Field Valuespublic static final byte LESS
EQUAL,
GREATER,
GREATER_EQUAL,
LESS_EQUAL,
Constant Field Valuespublic static final byte LESS_EQUAL
EQUAL,
GREATER,
GREATER_EQUAL,
LESS,
Constant Field Valuespublic static final byte MODIFIED
ABSOLUTE,
AFTER,
ALIGNED,
GREATER,
GREATER_EQUAL,
LESS,
LESS_EQUAL,
NEWEST,
OLDEST,
Constant Field Valuespublic static final byte NEWEST
ABSOLUTE,
AFTER,
ALIGNED,
GREATER,
GREATER_EQUAL,
LESS,
LESS_EQUAL,
MODIFIED,
OLDEST,
Constant Field Valuespublic static final byte OLDEST
ABSOLUTE,
AFTER,
ALIGNED,
GREATER,
GREATER_EQUAL,
LESS,
LESS_EQUAL,
MODIFIED,
NEWEST,
Constant Field Valuespublic static final long INFINITE
| Constructor Detail |
|---|
public DataRequest()
public DataRequest(com.rbnb.api.InputStream isI,
com.rbnb.api.DataInputStream disI)
throws AddressException,
SerializeException,
EOFException,
IOException,
InterruptedException
DataRequest by reading it
from an input stream.
isI - the input stream.disI - the data input stream.
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the serialization. For
example, a missing bracket.
EOFException - thrown if the end of the input stream is reached.
InterruptedIOException - thrown if this operation is interrupted during I/O.
IOException - thrown if there is an error reading the input stream.
InterruptedException - thrown if the read is interrupted.
public DataRequest(Rmap otherI,
com.rbnb.api.InputStream isI,
com.rbnb.api.DataInputStream disI)
throws AddressException,
SerializeException,
EOFException,
IOException,
InterruptedException
DataRequest by reading it
from an input stream.
This constructor fills in unread fields from the input
Rmap.
otherI - the other DataRequest as an
Rmap.isI - the input stream.disI - the data input stream.
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the serialization. For
example, a missing bracket.
EOFException - thrown if the end of the input stream is reached.
InterruptedIOException - thrown if this operation is interrupted during I/O.
IOException - thrown if there is an error reading the input stream.
InterruptedException - thrown if the read is interrupted.
public DataRequest(String nameI)
throws AddressException,
SerializeException,
EOFException,
InterruptedIOException,
IOException,
InterruptedException
DataRequest for the specified
name.
nameI - the name of the Rmap.
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the serialization. For
example, a missing bracket.
EOFException - thrown if the end of the input stream is reached.
InterruptedIOException - thrown if this operation is interrupted during I/O.
IOException - thrown if there is an error reading the input stream.
InterruptedException - thrown if the read is interrupted.
public DataRequest(String nameI,
TimeRange trangeI,
TimeRange frangeI)
throws AddressException,
SerializeException,
EOFException,
InterruptedIOException,
IOException,
InterruptedException
DataRequest from the specified
values.
nameI - the name of the Rmap.trangeI - the TimeRange.frangeI - the frame index TimeRange.
IllegalArgumentException - thrown if repetitionsI is negative or zero.
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the serialization.
EOFException - thrown if the end of the input stream is reached.
InterruptedIOException - thrown if this operation is interrupted during I/O.
IOException - thrown if there is an error during I/O.
IllegalArgumentException - thrown if repetitionsI is negative or zero.
InterruptedException - thrown if the operation is interrupted.DataRequest()
public DataRequest(String nameI,
TimeRange trangeI,
TimeRange frangeI,
byte referenceI,
byte domainI,
long repetitionsI,
double incrementI,
boolean synchronizedI,
byte modeI)
throws AddressException,
SerializeException,
EOFException,
InterruptedIOException,
IOException,
InterruptedException
DataRequest from the specified
values.
nameI - the name of the Rmap.trangeI - the TimeRange.frangeI - the frame index TimeRange.referenceI - the time reference.domainI - the time domain.repetitionsI - the number of repetitions.incrementI - the repitition increment.synchronizedI - synchronize channels?modeI - the response mode.
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the serialization.
EOFException - thrown if the end of the input stream is reached.
InterruptedIOException - thrown if this operation is interrupted during I/O.
IOException - thrown if there is an error during I/O.
IllegalArgumentException - thrown if repetitionsI is negative or zero.
InterruptedException - thrown if the operation is interrupted.
public DataRequest(String nameI,
TimeRange trangeI,
TimeRange frangeI,
byte referenceI,
byte domainI,
long repetitionsI,
double incrementI,
boolean synchronizedI,
byte modeI,
boolean gapControlI)
throws AddressException,
SerializeException,
EOFException,
InterruptedIOException,
IOException,
InterruptedException
DataRequest from the specified
values.
nameI - the name of the Rmap.trangeI - the TimeRange.frangeI - the frame index TimeRange.referenceI - the time reference.domainI - the time domain.repetitionsI - the number of repetitions.incrementI - the repitition increment.synchronizedI - synchronize channels?modeI - the response mode.gapControlI - control when gaps can occur?
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the serialization.
EOFException - thrown if the end of the input stream is reached.
InterruptedIOException - thrown if this operation is interrupted during I/O.
IOException - thrown if there is an error during I/O.
IllegalArgumentException - thrown if repetitionsI is negative or zero.
InterruptedException - thrown if the operation is interrupted.
public DataRequest(String nameI,
TimeRange trangeI,
TimeRange frangeI,
byte referenceI,
byte relationshipI,
byte domainI,
long repetitionsI,
double incrementI,
boolean synchronizedI,
byte modeI,
boolean gapControlI)
throws AddressException,
SerializeException,
EOFException,
InterruptedIOException,
IOException,
InterruptedException
DataRequest from the specified
values.
nameI - the name of the Rmap.trangeI - the TimeRange.frangeI - the frame index TimeRange.referenceI - the time reference.relationshipI - the time relationship.domainI - the time domain.repetitionsI - the number of repetitions.incrementI - the repitition increment.synchronizedI - synchronize channels?modeI - the response mode.gapControlI - control when gaps can occur?
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the serialization.
EOFException - thrown if the end of the input stream is reached.
InterruptedIOException - thrown if this operation is interrupted during I/O.
IOException - thrown if there is an error during I/O.
IllegalArgumentException - thrown if repetitionsI is negative or zero.
InterruptedException - thrown if the operation is interrupted.| Method Detail |
|---|
public final byte getDomain()
ALL,
EXISTING,
FUTURE,
setDomain(byte)public final void combineWith(DataRequest otherI)
DataRequest with the input one to produce a
coherent set of flags.
otherI - the other DataRequest.public final boolean getGapControl()
setGapControl(boolean)public final double getIncrement()
getNrepetitions(),
setRepetitions(long,double)public final byte getMode()
CONSOLIDATED,
FRAMES,
setMode(byte)public final long getNrepetitions()
getIncrement(),
setRepetitions(long,double)public final byte getReference()
ABSOLUTE,
AFTER,
ALIGNED,
MODIFIED,
NEWEST,
OLDEST,
setReference(byte)public final byte getRelationship()
EQUAL,
GREATER,
GREATER_EQUAL,
LESS,
LESS_EQUAL,
setRelationship(byte)public final boolean getSynchronized()
setSynchronized(boolean)public final void setDomain(byte domainI)
domainI - the time domain.ALL,
EXISTING,
FUTURE,
getDomain()public final void setGapControl(boolean gapControlI)
When gap control is on, the server waits for acknowledgement of each
repetition of each source's data to be received by the sink before
starting the next repetition. When used in conjunction with
reference=OLDEST or NEWEST and
domain=FUTURE or ALL, this allows the client
to control when gaps occur in the data it receives.
When gap control is off, the server runs as fast as it can. Gaps occur between repetitions, but their timing is determined entirely by when buffers (such as TCP socket buffers) fill up.
gapControlI - turn on gap control?getGapControl()public final void setMode(byte modeI)
modeI - the response mode.CONSOLIDATED,
FRAMES,
getMode()
public final void setRepetitions(long numberI,
double incrementI)
When the increment is 0, the request is repeated unchanged.
When the increment is non-zero, repetitions after the first are
essentially requests for ABSOLUTE times.
numberI - the number of repetitions.incrementI - the increment between repetitions.
IllegalArgumentException - thrown if repetitionsI is negative or zero.ABSOLUTE,
getIncrement(),
getNrepetitions()public final void setReference(byte referenceI)
referenceI - the time reference.ABSOLUTE,
AFTER,
ALIGNED,
MODIFIED,
NEWEST,
OLDEST,
setReference(byte)public final void setRelationship(byte relationshipI)
relationshipI - the relationship to the time reference.EQUAL,
getRelationship(),
GREATER,
GREATER_EQUAL,
LESS,
LESS_EQUALpublic final void setSynchronized(boolean synchronizedI)
synchronizedI - synchronize the channels?getSynchronized()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||