Class MessageOpenTypeFactory<M extends Message>
- java.lang.Object
-
- org.apache.activemq.artemis.core.message.openmbean.MessageOpenTypeFactory<M>
-
-
Field Summary
Fields Modifier and Type Field Description protected TabularTypebooleanPropertyTabularTypeprotected TabularTypebytePropertyTabularTypeprotected TabularTypedoublePropertyTabularTypeprotected TabularTypefloatPropertyTabularTypeprotected TabularTypeintPropertyTabularTypeprotected TabularTypelongPropertyTabularTypeprotected TabularTypeshortPropertyTabularTypeprotected TabularTypestringPropertyTabularTypeprotected Object[][]typedPropertyFields
-
Constructor Summary
Constructors Constructor Description MessageOpenTypeFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddItem(String name, String description, OpenType type)protected CompositeTypecreateCompositeType()protected TabularDataSupportcreateTabularData(Map<String,Object> entries, TabularType type, Class valueType)protected CompositeDataSupportcreateTabularRowValue(TabularType type, String key, Object value)protected <T> TabularTypecreateTabularType(Class<T> type, OpenType openType)protected Map<String,Object>expandProperties(M m, int valueSizeLimit)CompositeTypegetCompositeType()protected StringgetDescription()Map<String,Object>getFields(M m, int valueSizeLimit, int deliveryCount)protected StringgetTypeName()protected voidinit()protected StringtoString(Object value)
-
-
-
Field Detail
-
stringPropertyTabularType
protected TabularType stringPropertyTabularType
-
booleanPropertyTabularType
protected TabularType booleanPropertyTabularType
-
bytePropertyTabularType
protected TabularType bytePropertyTabularType
-
shortPropertyTabularType
protected TabularType shortPropertyTabularType
-
intPropertyTabularType
protected TabularType intPropertyTabularType
-
longPropertyTabularType
protected TabularType longPropertyTabularType
-
floatPropertyTabularType
protected TabularType floatPropertyTabularType
-
doublePropertyTabularType
protected TabularType doublePropertyTabularType
-
typedPropertyFields
protected Object[][] typedPropertyFields
-
-
Method Detail
-
getTypeName
protected String getTypeName()
-
getCompositeType
public CompositeType getCompositeType() throws OpenDataException
- Throws:
OpenDataException
-
init
protected void init() throws OpenDataException- Throws:
OpenDataException
-
getFields
public Map<String,Object> getFields(M m, int valueSizeLimit, int deliveryCount) throws OpenDataException
- Throws:
OpenDataException
-
createCompositeType
protected CompositeType createCompositeType() throws OpenDataException
- Throws:
OpenDataException
-
getDescription
protected String getDescription()
-
createTabularType
protected <T> TabularType createTabularType(Class<T> type, OpenType openType) throws OpenDataException
- Throws:
OpenDataException
-
createTabularData
protected TabularDataSupport createTabularData(Map<String,Object> entries, TabularType type, Class valueType) throws IOException, OpenDataException
- Throws:
IOExceptionOpenDataException
-
createTabularRowValue
protected CompositeDataSupport createTabularRowValue(TabularType type, String key, Object value) throws OpenDataException
- Throws:
OpenDataException
-
-