|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--grs.pds.BasePdsRecord
|
+--grs.pds.TimeSeriesRecord
|
+--grs.pds.edr.MsgEdrRecord
Message data, sent from the GRS CEB. Usually generated from command completions. Also includes CEB error messages.
| Field Summary | |
byte |
counter
|
String |
message_text
|
short |
msg_id
|
int |
ody_orbit
|
int |
orbit
|
byte |
origin
|
int |
pixel
|
long |
sc_recv_time
|
Date |
utc
|
| Fields inherited from class grs.pds.BasePdsRecord |
PdsTimeFormat |
| Fields inherited from interface grs.pds.PdsRecord |
GAMMA_CHANNELS, int10, int12, int2, int3, logger, MESSAGE_LENGTH, NS_MAX_EVENTS, PEF_COMMANDS, prec10, prec12, prec13, prec14, prec15, prec16, prec17, prec5, prec6, prec7, PROFILE_LENGTH, PROFILE_SIZE, PULSER_CHANNELS, QUERY_DATE_FMT, SC_ID |
| Constructor Summary | |
MsgEdrRecord(DataInputStream in)
Read msg record from DataInputStream. |
|
MsgEdrRecord(ResultSet rs)
Read record in from ResultSet. |
|
| Method Summary | |
static String[] |
createInsertString(String schema)
create SQL Query to insert message records. |
static String[] |
createSelectString(String schema)
create SQL Query to select message records. |
long |
getSCLK()
Get the Date (time) of record. |
Date |
getUTC()
Get the UTC time that this record was observed on. |
static void |
main(String[] args)
Demonstrates use of this class to parse an Msg EDR record. |
int |
prepareInsert(PreparedStatement pstmt)
Bind values to the PreparedStatement |
String[] |
toStringArray()
Display message record. |
void |
writeTo(DataOutputStream out)
Write this record to a DataOutputStream. |
| Methods inherited from class grs.pds.BasePdsRecord |
endianSwapShort |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public long sc_recv_time
public Date utc
public short msg_id
public int pixel
public int orbit
public int ody_orbit
public byte counter
public byte origin
public String message_text
| Constructor Detail |
public MsgEdrRecord(ResultSet rs)
throws SQLException
rs - ResultSet to read from.
SQLException - Error reading from result set.
public MsgEdrRecord(DataInputStream in)
throws ParseException,
IOException
in - Stream to read from.
IOException - error reading from stream.
ParseException - UTC date in stream is in invalid format.| Method Detail |
public static String[] createSelectString(String schema)
schema - DB Schema to use.
public static String[] createInsertString(String schema)
schema - DB Schema to use.
public int prepareInsert(PreparedStatement pstmt)
throws SQLException
prepareInsert in class BasePdsRecordpstmt - prepared statement
SQLException - Error in binding binding
public void writeTo(DataOutputStream out)
throws IOException
writeTo in class BasePdsRecordout - Stream to write to.
IOException - Error writing to stream.public String[] toStringArray()
toStringArray in class BasePdsRecordpublic long getSCLK()
getSCLK in class TimeSeriesRecordpublic Date getUTC()
TimeSeriesRecord
getUTC in class TimeSeriesRecordpublic static final void main(String[] args)
args - Filename
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||