|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rbnb.sapi.ChannelMap
com.rbnb.sapi.PlugInChannelMap
public class PlugInChannelMap
A subclass of ChannelMap which contains information about requests that PlugIns should handle.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.rbnb.sapi.ChannelMap |
|---|
ChannelMap.ByteOrderEnum |
| Field Summary | |
|---|---|
static int |
RT_ENDOFSTREAM
Deprecated. Only requests now received by PlugIns; use GetIfFetchTimedOut to detect timeout status. |
static int |
RT_MONITOR
Deprecated. Only requests now received by PlugIns; use GetIfFetchTimedOut to detect timeout status. |
static int |
RT_REQUEST
Deprecated. Only requests now received by PlugIns; use GetIfFetchTimedOut to detect timeout status. |
static int |
RT_SUBSCRIBE
Deprecated. Only requests now received by PlugIns; use GetIfFetchTimedOut to detect timeout status. |
static int |
RT_TIMEOUT
Deprecated. Only requests now received by PlugIns; use GetIfFetchTimedOut to detect timeout status. |
| Fields inherited from class com.rbnb.sapi.ChannelMap |
|---|
LOCAL, LSB, MSB, TYPE_BYTEARRAY, TYPE_FLOAT32, TYPE_FLOAT64, TYPE_INT16, TYPE_INT32, TYPE_INT64, TYPE_INT8, TYPE_STRING, TYPE_UNKNOWN, TYPE_USER |
| Constructor Summary | |
|---|---|
PlugInChannelMap()
|
|
| Method Summary | |
|---|---|
double |
GetRequestDuration()
For a plugin-request, returns the duration of the request, or how many seconds worth of data to return. |
String |
GetRequestId()
Yields the identifier which uniquely identifies this Request to the server. |
RequestOptions |
GetRequestOptions()
Returns the options that were set for this request. |
String |
GetRequestReference()
For a plugin-request, returns the time reference of the request. |
double |
GetRequestStart()
For a plugin-request, returns the start time of the request. |
int |
GetRequestType()
Deprecated. Only requests are now received by PlugIns, in order to simplify their implementation. |
boolean |
IsRequestFrames()
For a plugin-request, returns true if the request is for a list of frames. |
String |
toString()
Extends ChannelMap.toString() with request information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int RT_ENDOFSTREAM
public static final int RT_MONITOR
public static final int RT_REQUEST
public static final int RT_SUBSCRIBE
public static final int RT_TIMEOUT
| Constructor Detail |
|---|
public PlugInChannelMap()
| Method Detail |
|---|
public double GetRequestStart()
GetRequestDuration(),
GetRequestReference()public double GetRequestDuration()
GetRequestStart(),
GetRequestReference()public String GetRequestReference()
Sink.Request(
ChannelMap,double,double,String,boolean).) If the sink used
Sink.RequestRegistration(ChannelMap), then this method
will return "registration". If the sink used Sink.Subscribe(ChannelMap) or Sink.Monitor(ChannelMap,
int), then "subscribe" or "monitor" will be returned,
respectively.
If this map is empty, null will be returned.
Sink.Request(ChannelMap, double,double,String),
GetRequestStart(),
GetRequestDuration(),
GetRequestType()public int GetRequestType()
Sink.Request(
ChannelMap,double,double,String) or
Sink.RequestRegistration(ChannelMap), then this method
will return RT_REQUEST. If the sink used Sink.Subscribe(ChannelMap) or Sink.Monitor(ChannelMap,
int), then RT_SUBSCRIBE or RT_MONITOR will be
returned, respectively, unless, the stream has been
closed by the requestor, in which case RT_ENDOFSTREAM is
returned.
If the fetch timed out, the return value is RT_TIMEOUT.
The method ChannelMap.GetIfFetchTimedOut() will return true
also.
If this map is not the result of a fetch, the value is undefined.
Sink.Request(ChannelMap,double,double,String),
GetRequestReference(),
RT_ENDOFSTREAMpublic boolean IsRequestFrames()
Sink.RequestFrame(ChannelMap). The response to this request
should not yet exist; it should be considered to be for FUTURE data.
Therefore the time values can be ignored.
GetRequestStart(),
GetRequestDuration()public String GetRequestId()
PlugIn.Flush(PlugInChannelMap,boolean)public RequestOptions GetRequestOptions()
Sink.Request(ChannelMap, double,double,String,RequestOptions)public String toString()
ChannelMap.toString() with request information.
toString in class ChannelMap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||