Package com.wombat.mama
Class MamaMsgType
- java.lang.Object
-
- com.wombat.mama.MamaMsgType
-
public class MamaMsgType extends java.lang.ObjectA utility class for retrieving and interpreting type information from Mama Messages.
-
-
Field Summary
Fields Modifier and Type Field Description static shortTYPE_BOOK_CLEARorder book clear.static shortTYPE_BOOK_INITIALorder book initial.static shortTYPE_BOOK_RECAPorder book recap.static shortTYPE_BOOK_SNAPSHOTorder book snapshot.static shortTYPE_BOOK_UPDATEorder book update.static shortTYPE_CANCELtrade cancel.static shortTYPE_CLOSINGclosing summary.static shortTYPE_CORRECTIONtrade correction.static shortTYPE_DDICT_SNAPSHOTdata dictionary.static shortTYPE_DELETEsymbol deleted.static shortTYPE_END_OF_INITIALSend of group of initial values.static shortTYPE_ERRORtrade error.static shortTYPE_EXPIREexpired.static shortTYPE_FEATURE_SETstatic shortTYPE_FEATURE_SET_REQstatic shortTYPE_INITIALinitial value.static shortTYPE_MISCmiscellaneous.static shortTYPE_NOT_FOUNDnot found (but may show up later).static shortTYPE_NOT_PERMISSIONEDnot permissioned (on feed).static shortTYPE_NULLstatic shortTYPE_ORDERorder updates.static shortTYPE_PLATFORMstatic shortTYPE_PREOPENINGpre-opening summary.static shortTYPE_QUOTEquote updates.static shortTYPE_RECAPrefresh/recap of some/all fields.static shortTYPE_REFRESHstatic shortTYPE_SEC_STATUSsecurity status updatestatic shortTYPE_SNAPSHOTfull-record snapshot (no updates).static shortTYPE_SYNC_REQUESTstatic shortTYPE_TRADEtrade updates.static shortTYPE_UPDATEgeneral update (indices, funds).static shortTYPE_WOMBAT_CALCcalculated result.static shortTYPE_WOMBAT_REQUESTservice request.static shortWV_REPLY_SOURCESstatic shortWV_REPLY_SOURCES_GROUPSstatic shortWV_REPLY_SYMBOL_RESOLUTIONstatic shortWV_REPLY_SYMBOLOGIESstatic shortWV_REQUEST_SOURCESstatic shortWV_REQUEST_SOURCES_GROUPSstatic shortWV_REQUEST_SYMBOL_RESOLUTIONstatic shortWV_REQUEST_SYMBOLOGIESstatic shortWV_UPDATE_SOURCESstatic shortWV_UPDATE_SOURCES_GROUPSstatic shortWV_UPDATE_SYMBOLOGIES
-
Constructor Summary
Constructors Constructor Description MamaMsgType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringstringForType(short type)Return the type name.static java.lang.StringstringForType(MamaMsg msg)Return the type name.static shorttypeForMsg(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.
-
-