Package com.wombat.mama
Class MamaMsgType
- java.lang.Object
-
- com.wombat.mama.MamaMsgType
-
public class MamaMsgType extends java.lang.Object
A utility class for retrieving and interpreting type information from Mama Messages.
-
-
Field Summary
Fields Modifier and Type Field Description static short
TYPE_BOOK_CLEAR
order book clear.static short
TYPE_BOOK_INITIAL
order book initial.static short
TYPE_BOOK_RECAP
order book recap.static short
TYPE_BOOK_SNAPSHOT
order book snapshot.static short
TYPE_BOOK_UPDATE
order book update.static short
TYPE_CANCEL
trade cancel.static short
TYPE_CLOSING
closing summary.static short
TYPE_CORRECTION
trade correction.static short
TYPE_DDICT_SNAPSHOT
data dictionary.static short
TYPE_DELETE
symbol deleted.static short
TYPE_END_OF_INITIALS
end of group of initial values.static short
TYPE_ERROR
trade error.static short
TYPE_EXPIRE
expired.static short
TYPE_FEATURE_SET
static short
TYPE_FEATURE_SET_REQ
static short
TYPE_INITIAL
initial value.static short
TYPE_MISC
miscellaneous.static short
TYPE_NOT_FOUND
not found (but may show up later).static short
TYPE_NOT_PERMISSIONED
not permissioned (on feed).static short
TYPE_NULL
static short
TYPE_ORDER
order updates.static short
TYPE_PLATFORM
static short
TYPE_PREOPENING
pre-opening summary.static short
TYPE_QUOTE
quote updates.static short
TYPE_RECAP
refresh/recap of some/all fields.static short
TYPE_REFRESH
static short
TYPE_SEC_STATUS
security status updatestatic short
TYPE_SNAPSHOT
full-record snapshot (no updates).static short
TYPE_SYNC_REQUEST
static short
TYPE_TRADE
trade updates.static short
TYPE_UPDATE
general update (indices, funds).static short
TYPE_WOMBAT_CALC
calculated result.static short
TYPE_WOMBAT_REQUEST
service request.static short
WV_REPLY_SOURCES
static short
WV_REPLY_SOURCES_GROUPS
static short
WV_REPLY_SYMBOL_RESOLUTION
static short
WV_REPLY_SYMBOLOGIES
static short
WV_REQUEST_SOURCES
static short
WV_REQUEST_SOURCES_GROUPS
static short
WV_REQUEST_SYMBOL_RESOLUTION
static short
WV_REQUEST_SYMBOLOGIES
static short
WV_UPDATE_SOURCES
static short
WV_UPDATE_SOURCES_GROUPS
static short
WV_UPDATE_SYMBOLOGIES
-
Constructor Summary
Constructors Constructor Description MamaMsgType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
stringForType(short type)
Return the type name.static java.lang.String
stringForType(MamaMsg msg)
Return the type name.static short
typeForMsg(MamaMsg msg)
Extract the type from the supplied message.
-
-
-
Field Detail
-
TYPE_UPDATE
public static final short TYPE_UPDATE
general update (indices, funds).- See Also:
- Constant Field Values
-
TYPE_INITIAL
public static final short TYPE_INITIAL
initial value.- See Also:
- Constant Field Values
-
TYPE_CANCEL
public static final short TYPE_CANCEL
trade cancel.- See Also:
- Constant Field Values
-
TYPE_ERROR
public static final short TYPE_ERROR
trade error.- See Also:
- Constant Field Values
-
TYPE_CORRECTION
public static final short TYPE_CORRECTION
trade correction.- See Also:
- Constant Field Values
-
TYPE_CLOSING
public static final short TYPE_CLOSING
closing summary.- See Also:
- Constant Field Values
-
TYPE_RECAP
public static final short TYPE_RECAP
refresh/recap of some/all fields.- See Also:
- Constant Field Values
-
TYPE_DELETE
public static final short TYPE_DELETE
symbol deleted.- See Also:
- Constant Field Values
-
TYPE_EXPIRE
public static final short TYPE_EXPIRE
expired. (e.g. option, future).- See Also:
- Constant Field Values
-
TYPE_SNAPSHOT
public static final short TYPE_SNAPSHOT
full-record snapshot (no updates).- See Also:
- Constant Field Values
-
TYPE_PREOPENING
public static final short TYPE_PREOPENING
pre-opening summary. (e.g. morning "roll").- See Also:
- Constant Field Values
-
TYPE_QUOTE
public static final short TYPE_QUOTE
quote updates.- See Also:
- Constant Field Values
-
TYPE_TRADE
public static final short TYPE_TRADE
trade updates.- See Also:
- Constant Field Values
-
TYPE_ORDER
public static final short TYPE_ORDER
order updates.- See Also:
- Constant Field Values
-
TYPE_BOOK_INITIAL
public static final short TYPE_BOOK_INITIAL
order book initial.- See Also:
- Constant Field Values
-
TYPE_BOOK_UPDATE
public static final short TYPE_BOOK_UPDATE
order book update.- See Also:
- Constant Field Values
-
TYPE_BOOK_CLEAR
public static final short TYPE_BOOK_CLEAR
order book clear.- See Also:
- Constant Field Values
-
TYPE_BOOK_RECAP
public static final short TYPE_BOOK_RECAP
order book recap.- See Also:
- Constant Field Values
-
TYPE_BOOK_SNAPSHOT
public static final short TYPE_BOOK_SNAPSHOT
order book snapshot.- See Also:
- Constant Field Values
-
TYPE_NOT_PERMISSIONED
public static final short TYPE_NOT_PERMISSIONED
not permissioned (on feed).- See Also:
- Constant Field Values
-
TYPE_NOT_FOUND
public static final short TYPE_NOT_FOUND
not found (but may show up later).- See Also:
- Constant Field Values
-
TYPE_END_OF_INITIALS
public static final short TYPE_END_OF_INITIALS
end of group of initial values.- See Also:
- Constant Field Values
-
TYPE_WOMBAT_REQUEST
public static final short TYPE_WOMBAT_REQUEST
service request.- See Also:
- Constant Field Values
-
TYPE_WOMBAT_CALC
public static final short TYPE_WOMBAT_CALC
calculated result.- See Also:
- Constant Field Values
-
TYPE_SEC_STATUS
public static final short TYPE_SEC_STATUS
security status update- See Also:
- Constant Field Values
-
TYPE_DDICT_SNAPSHOT
public static final short TYPE_DDICT_SNAPSHOT
data dictionary.- See Also:
- Constant Field Values
-
TYPE_MISC
public static final short TYPE_MISC
miscellaneous.- See Also:
- Constant Field Values
-
TYPE_PLATFORM
public static final short TYPE_PLATFORM
- See Also:
- Constant Field Values
-
TYPE_FEATURE_SET
public static final short TYPE_FEATURE_SET
- See Also:
- Constant Field Values
-
TYPE_FEATURE_SET_REQ
public static final short TYPE_FEATURE_SET_REQ
- See Also:
- Constant Field Values
-
TYPE_SYNC_REQUEST
public static final short TYPE_SYNC_REQUEST
- See Also:
- Constant Field Values
-
TYPE_REFRESH
public static final short TYPE_REFRESH
- See Also:
- Constant Field Values
-
TYPE_NULL
public static final short TYPE_NULL
- See Also:
- Constant Field Values
-
WV_REQUEST_SYMBOLOGIES
public static final short WV_REQUEST_SYMBOLOGIES
- See Also:
- Constant Field Values
-
WV_REPLY_SYMBOLOGIES
public static final short WV_REPLY_SYMBOLOGIES
- See Also:
- Constant Field Values
-
WV_UPDATE_SYMBOLOGIES
public static final short WV_UPDATE_SYMBOLOGIES
- See Also:
- Constant Field Values
-
WV_REQUEST_SOURCES
public static final short WV_REQUEST_SOURCES
- See Also:
- Constant Field Values
-
WV_REPLY_SOURCES
public static final short WV_REPLY_SOURCES
- See Also:
- Constant Field Values
-
WV_UPDATE_SOURCES
public static final short WV_UPDATE_SOURCES
- See Also:
- Constant Field Values
-
WV_REQUEST_SOURCES_GROUPS
public static final short WV_REQUEST_SOURCES_GROUPS
- See Also:
- Constant Field Values
-
WV_REPLY_SOURCES_GROUPS
public static final short WV_REPLY_SOURCES_GROUPS
- See Also:
- Constant Field Values
-
WV_UPDATE_SOURCES_GROUPS
public static final short WV_UPDATE_SOURCES_GROUPS
- See Also:
- Constant Field Values
-
WV_REQUEST_SYMBOL_RESOLUTION
public static final short WV_REQUEST_SYMBOL_RESOLUTION
- See Also:
- Constant Field Values
-
WV_REPLY_SYMBOL_RESOLUTION
public static final short WV_REPLY_SYMBOL_RESOLUTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
typeForMsg
public static short typeForMsg(MamaMsg msg)
Extract the type from the supplied message.- Parameters:
msg
-- Returns:
- The type.
-
stringForType
public static java.lang.String stringForType(MamaMsg msg)
Return the type name.- Returns:
- The type name.
-
stringForType
public static java.lang.String stringForType(short type)
Return the type name.- Returns:
- The type name.
-
-