This closes #2066
This commit is contained in:
commit
541dfc6951
|
@ -27,6 +27,7 @@ import javax.management.openmbean.TabularDataSupport;
|
||||||
import javax.management.openmbean.TabularType;
|
import javax.management.openmbean.TabularType;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -104,7 +105,7 @@ public final class OpenTypeSupport {
|
||||||
addItem(CompositeDataConstants.EXPIRATION, CompositeDataConstants.EXPIRATION_DESCRIPTION, SimpleType.LONG);
|
addItem(CompositeDataConstants.EXPIRATION, CompositeDataConstants.EXPIRATION_DESCRIPTION, SimpleType.LONG);
|
||||||
addItem(CompositeDataConstants.PRIORITY, CompositeDataConstants.PRIORITY_DESCRIPTION, SimpleType.BYTE);
|
addItem(CompositeDataConstants.PRIORITY, CompositeDataConstants.PRIORITY_DESCRIPTION, SimpleType.BYTE);
|
||||||
addItem(CompositeDataConstants.REDELIVERED, CompositeDataConstants.REDELIVERED_DESCRIPTION, SimpleType.BOOLEAN);
|
addItem(CompositeDataConstants.REDELIVERED, CompositeDataConstants.REDELIVERED_DESCRIPTION, SimpleType.BOOLEAN);
|
||||||
addItem(CompositeDataConstants.TIMESTAMP, CompositeDataConstants.TIMESTAMP_DESCRIPTION, SimpleType.LONG);
|
addItem(CompositeDataConstants.TIMESTAMP, CompositeDataConstants.TIMESTAMP_DESCRIPTION, SimpleType.DATE);
|
||||||
|
|
||||||
addItem(CompositeDataConstants.PROPERTIES, CompositeDataConstants.PROPERTIES_DESCRIPTION, SimpleType.STRING);
|
addItem(CompositeDataConstants.PROPERTIES, CompositeDataConstants.PROPERTIES_DESCRIPTION, SimpleType.STRING);
|
||||||
|
|
||||||
|
@ -141,7 +142,7 @@ public final class OpenTypeSupport {
|
||||||
rc.put(CompositeDataConstants.TYPE, m.getType());
|
rc.put(CompositeDataConstants.TYPE, m.getType());
|
||||||
rc.put(CompositeDataConstants.DURABLE, m.isDurable());
|
rc.put(CompositeDataConstants.DURABLE, m.isDurable());
|
||||||
rc.put(CompositeDataConstants.EXPIRATION, m.getExpiration());
|
rc.put(CompositeDataConstants.EXPIRATION, m.getExpiration());
|
||||||
rc.put(CompositeDataConstants.TIMESTAMP, m.getTimestamp());
|
rc.put(CompositeDataConstants.TIMESTAMP, new Date(m.getTimestamp()));
|
||||||
rc.put(CompositeDataConstants.PRIORITY, m.getPriority());
|
rc.put(CompositeDataConstants.PRIORITY, m.getPriority());
|
||||||
rc.put(CompositeDataConstants.REDELIVERED, ref.getDeliveryCount() > 1);
|
rc.put(CompositeDataConstants.REDELIVERED, ref.getDeliveryCount() > 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue