org.opengts.db
Interface CustomParser
- All Known Implementing Classes:
- CustomParserAdapter
public interface CustomParser
Field Summary |
static java.lang.String |
ACCOUNT
|
static java.lang.String |
COUNT
|
static java.lang.String |
DATA
|
static java.lang.String |
DATA_TYPE
|
static java.lang.String |
DEVICE
|
static java.lang.String |
DUPLEX
|
static java.lang.String |
INDEX
|
static java.lang.String |
PREFIX_
|
static java.lang.String |
TRANSPORT
|
Method Summary |
byte[] |
parseData(Account account,
Device device,
java.lang.String type,
byte[] data,
java.util.Map<java.lang.String,java.lang.Object> props)
Callback to parse raw data received from a remote tracking device through its
device communication server. |
PREFIX_
static final java.lang.String PREFIX_
- See Also:
- Constant Field Values
ACCOUNT
static final java.lang.String ACCOUNT
- See Also:
- Constant Field Values
DEVICE
static final java.lang.String DEVICE
- See Also:
- Constant Field Values
DATA_TYPE
static final java.lang.String DATA_TYPE
- See Also:
- Constant Field Values
DATA
static final java.lang.String DATA
- See Also:
- Constant Field Values
TRANSPORT
static final java.lang.String TRANSPORT
- See Also:
- Constant Field Values
DUPLEX
static final java.lang.String DUPLEX
- See Also:
- Constant Field Values
COUNT
static final java.lang.String COUNT
- See Also:
- Constant Field Values
INDEX
static final java.lang.String INDEX
- See Also:
- Constant Field Values
parseData
byte[] parseData(Account account,
Device device,
java.lang.String type,
byte[] data,
java.util.Map<java.lang.String,java.lang.Object> props)
- Callback to parse raw data received from a remote tracking device through its
device communication server.
- Parameters:
account
- The assigned device Account instancedevice
- The assigned Device instancetype
- The type of data contained in "data"data
- The byte array containing the raw dataprops
- A map where parsed data should be placed (to be inserted into the EventData record)
- Returns:
- The response which will be sent back to the device