[jboss-cvs] JBossAS SVN: r86777 - trunk/messaging/src/main/org/jboss/jms/server/destination.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat Apr 4 07:10:27 EDT 2009
Author: emuckenhuber
Date: 2009-04-04 07:10:27 -0400 (Sat, 04 Apr 2009)
New Revision: 86777
Modified:
trunk/messaging/src/main/org/jboss/jms/server/destination/QueueServiceMO.java
trunk/messaging/src/main/org/jboss/jms/server/destination/TopicServiceMO.java
Log:
JBAS-6721
Modified: trunk/messaging/src/main/org/jboss/jms/server/destination/QueueServiceMO.java
===================================================================
--- trunk/messaging/src/main/org/jboss/jms/server/destination/QueueServiceMO.java 2009-04-04 11:05:02 UTC (rev 86776)
+++ trunk/messaging/src/main/org/jboss/jms/server/destination/QueueServiceMO.java 2009-04-04 11:10:27 UTC (rev 86777)
@@ -37,6 +37,9 @@
import org.jboss.managed.api.annotation.ManagementProperties;
import org.jboss.managed.api.annotation.ManagementProperty;
import org.jboss.managed.api.annotation.ViewUse;
+import org.jboss.metatype.api.annotations.MetaMapping;
+import org.jboss.metatype.plugins.values.mappers.StringObjectNameMetaMapper;
+import org.w3c.dom.Element;
/**
* Empty class to provide the management metadata for JBoss Messaging
@@ -56,36 +59,55 @@
// Management Properties
- @ManagementProperty(use={ViewUse.RUNTIME}, description="The destination name")
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The destination name",
+ includeInTemplate=true, mandatory=true, readOnly=true)
public String getName() { return null; }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The destination's JNDI name",
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The destination's JNDI name",
+ mandatory=true, includeInTemplate=true,
activationPolicy=ActivationPolicy.DEPLOYMENT_RESTART)
@ManagementObjectID(type="Queue")
public String getJNDIName() { return null; }
public void setJNDIName(String arg0) throws Exception { }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The ObjectName of the server peer this destination was deployed on")
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The ObjectName of the server peer this destination was deployed on",
+ includeInTemplate=true)
+ @MetaMapping(StringObjectNameMetaMapper.class)
public ObjectName getServerPeer() { return null; }
public void setServerPeer(ObjectName arg0) { }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The DLQ for this queue, overrides the default DLQ on the server peer")
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The DLQ for this queue, overrides the default DLQ on the server peer",
+ includeInTemplate=true)
+ @MetaMapping(StringObjectNameMetaMapper.class)
public ObjectName getDLQ() { return null; }
public void setDLQ(ObjectName arg0) { }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The expiry queue for this queue, overrides the default expiry queue on the server peer")
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The expiry queue for this queue, overrides the default expiry queue on the server peer",
+ includeInTemplate=true)
+ @MetaMapping(StringObjectNameMetaMapper.class)
public ObjectName getExpiryQueue() { return null; }
public void setExpiryQueue(ObjectName arg0) { }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The delay before redelivering")
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The delay before redelivering",
+ includeInTemplate=true)
public long getRedeliveryDelay() { return 0; }
public void setRedeliveryDelay(long arg0) { }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The destination's security configuration")
- public String getSecurityConfig() { return null; }
- public void setSecurityConfig(String arg0) { }
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The destination's security configuration",
+ includeInTemplate=true)
+ @MetaMapping(SecurityConfigMapper.class)
+ public Element getSecurityConfig() { return null; }
+ public void setSecurityConfig(Element arg0) { }
- @ManagementProperty(use={ViewUse.RUNTIME}, description="True if this destination was created programmatically")
+ @ManagementProperty(use={ViewUse.STATISTIC},
+ description="True if this destination was created programmatically")
public boolean isCreatedProgrammatically() { return false; }
@ManagementProperty(use={ViewUse.STATISTIC}, description="The number of messages in the queue")
@@ -97,7 +119,9 @@
@ManagementProperty(use={ViewUse.STATISTIC}, description="The number of scheduled messages in the queue")
public int getScheduledMessageCount() { return 0; }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The maximum number of messages this queue can hold before they are dropped")
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The maximum number of messages this queue can hold before they are dropped",
+ includeInTemplate=true)
public int getMaxSize() { return 0; }
public void setMaxSize(int arg0) { }
@@ -135,11 +159,15 @@
@ManagementProperty(use={ViewUse.STATISTIC}, description="Get the message statistics for the queue")
public MessageStatistics getMessageStatistics() { return null; }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The day limit for the message counter")
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The day limit for the message counter",
+ includeInTemplate=true)
public int getMessageCounterHistoryDayLimit() { return 0; }
public void setMessageCounterHistoryDayLimit(int arg0) { }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The maximum delivery attempts to the queue")
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The maximum delivery attempts to the queue",
+ includeInTemplate=true)
public int getMaxDeliveryAttempts() { return 0; }
public void setMaxDeliveryAttempts(int arg0) { }
Modified: trunk/messaging/src/main/org/jboss/jms/server/destination/TopicServiceMO.java
===================================================================
--- trunk/messaging/src/main/org/jboss/jms/server/destination/TopicServiceMO.java 2009-04-04 11:05:02 UTC (rev 86776)
+++ trunk/messaging/src/main/org/jboss/jms/server/destination/TopicServiceMO.java 2009-04-04 11:10:27 UTC (rev 86777)
@@ -35,6 +35,9 @@
import org.jboss.managed.api.annotation.ManagementProperties;
import org.jboss.managed.api.annotation.ManagementProperty;
import org.jboss.managed.api.annotation.ViewUse;
+import org.jboss.metatype.api.annotations.MetaMapping;
+import org.jboss.metatype.plugins.values.mappers.StringObjectNameMetaMapper;
+import org.w3c.dom.Element;
/**
* Empty class to provide the management metadata for JBoss Messaging
@@ -54,39 +57,59 @@
// Management Properties
- @ManagementProperty(use={ViewUse.RUNTIME}, description="The destination name")
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The destination name",
+ mandatory=true, includeInTemplate=true, readOnly=true)
public String getName() { return null; }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The destination's JNDI name",
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The destination's JNDI name",
+ mandatory=true, includeInTemplate=true,
activationPolicy=ActivationPolicy.DEPLOYMENT_RESTART)
@ManagementObjectID(type="Topic")
public String getJNDIName() { return null; }
public void setJNDIName(String arg0) throws Exception { }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The ObjectName of the server peer this destination was deployed on")
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The ObjectName of the server peer this destination was deployed on",
+ includeInTemplate=true)
+ @MetaMapping(StringObjectNameMetaMapper.class)
public ObjectName getServerPeer() { return null; }
public void setServerPeer(ObjectName arg0) { }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The DLQ for this topic, overrides the default DLQ on the server peer")
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The DLQ for this topic, overrides the default DLQ on the server peer",
+ includeInTemplate=true)
+ @MetaMapping(StringObjectNameMetaMapper.class)
public ObjectName getDLQ() { return null; }
public void setDLQ(ObjectName arg0) { }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The expiry queue for this topic, overrides the default expiry queue on the server peer")
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The expiry queue for this topic, overrides the default expiry queue on the server peer",
+ includeInTemplate=true)
+ @MetaMapping(StringObjectNameMetaMapper.class)
public ObjectName getExpiryQueue() { return null; }
public void setExpiryQueue(ObjectName arg0) { }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The delay before redelivering")
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The delay before redelivering",
+ includeInTemplate=true)
public long getRedeliveryDelay() { return 0; }
public void setRedeliveryDelay(long arg0) { }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The destination's security configuration")
- public String getSecurityConfig() { return null; }
- public void setSecurityConfig(String arg0) { }
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The destination's security configuration",
+ includeInTemplate=true)
+ @MetaMapping(SecurityConfigMapper.class)
+ public Element getSecurityConfig() { return null; }
+ public void setSecurityConfig(Element arg0) { }
@ManagementProperty(use={ViewUse.RUNTIME}, description="True if this destination was created programmatically")
public boolean isCreatedProgrammatically() { return false; }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The maximum number of messages this topic can hold before they are dropped")
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The maximum number of messages this topic can hold before they are dropped",
+ includeInTemplate=true)
public int getMaxSize() { return 0; }
public void setMaxSize(int arg0) { }
@@ -118,11 +141,14 @@
public boolean isClustered() { return false; }
public void setClustered(boolean arg0) { }
+ // FIXME
@ManagementProperty(use={ViewUse.STATISTIC}, description="The day limit for the message counter")
public int getMessageCounterHistoryDayLimit() { return 0; }
public void setMessageCounterHistoryDayLimit(int arg0) { }
- @ManagementProperty(use={ViewUse.CONFIGURATION}, description="The maximum delivery attempts to the topic")
+ @ManagementProperty(use={ViewUse.CONFIGURATION},
+ description="The maximum delivery attempts to the topic",
+ includeInTemplate=true)
public int getMaxDeliveryAttempts() { return 0; }
public void setMaxDeliveryAttempts(int arg0) { }
More information about the jboss-cvs-commits
mailing list