Package org.objectweb.joram.mom.proxies
Interface UserAgentMBean
-
- All Superinterfaces:
AgentMBean
- All Known Implementing Classes:
UserAgent
public interface UserAgentMBean extends AgentMBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete()Deletes this proxy.StringgetDMQId()Returns the default DMQ for subscription of this user.intgetMessageTableConsumedMemory()Returns the amount of memory consumed by the message table.StringgetName()Returns the name of this queue, or its id if not set.intgetNbMaxMsg()Returns the default maximum number of message for the subscription of this user.longgetNbMsgsSentToDMQSinceCreation()Returns the number of erroneous messages forwarded to the DMQ since creation time of this proxy..longgetPeriod()Returns the period value of this queue, -1 if not set.intgetRedeliveryDelay()Return the reDeliveryDelay (unit: second)String[]getSubscriptionNames()Returns the list of subscriptions for this user.intgetThreshold()Returns the default threshold for the subscription of this user. 0 stands for no threshold, -1 for value not set.voidsetNbMaxMsg(int nbMaxMsg)Sets the maximum number of message for the subscription of this user.voidsetPeriod(long period)Sets or unsets the period for this queue.voidsetRedeliveryDelay(int redeliveryDelay)Sets the redelivery delay.voidsetThreshold(int threshold)Sets the default threshold for the subscription of this user. 0 stands for no threshold, -1 for value not set.StringtoString()Returns a string representation of this user's proxy.-
Methods inherited from interface fr.dyade.aaa.agent.AgentMBean
getAgentId, getCommitTime, getReactNb, getReactTime, isAgentProfiling, isFixed, resetCommitTime, resetReactTime, resetTimer, setAgentProfiling
-
-
-
-
Method Detail
-
getName
String getName()
Returns the name of this queue, or its id if not set.- Specified by:
getNamein interfaceAgentMBean- Returns:
- the name of this queue; its id if not set.
-
getPeriod
long getPeriod()
Returns the period value of this queue, -1 if not set.- Returns:
- the period value of this queue; -1 if not set.
-
setPeriod
void setPeriod(long period)
Sets or unsets the period for this queue.- Parameters:
period- The period value to be set or -1 for unsetting previous value.
-
getSubscriptionNames
String[] getSubscriptionNames()
Returns the list of subscriptions for this user. Each subscription is identified by its unique 'symbolic' name.- Returns:
- The list of subscriptions for this user.
-
toString
String toString()
Returns a string representation of this user's proxy.- Specified by:
toStringin interfaceAgentMBean- Overrides:
toStringin classObject- Returns:
- A string representation of this agent.
-
getNbMsgsSentToDMQSinceCreation
long getNbMsgsSentToDMQSinceCreation()
Returns the number of erroneous messages forwarded to the DMQ since creation time of this proxy..- Returns:
- the number of erroneous messages forwarded to the DMQ.
-
getDMQId
String getDMQId()
Returns the default DMQ for subscription of this user.- Returns:
- the default DMQ for subscription of this user.
-
getThreshold
int getThreshold()
Returns the default threshold for the subscription of this user. 0 stands for no threshold, -1 for value not set.- Returns:
- the maximum number of message if set; -1 otherwise.
-
setThreshold
void setThreshold(int threshold)
Sets the default threshold for the subscription of this user. 0 stands for no threshold, -1 for value not set.- Parameters:
threshold- the threshold to set.
-
getNbMaxMsg
int getNbMaxMsg()
Returns the default maximum number of message for the subscription of this user. If the limit is unset the method returns -1.- Returns:
- the maximum number of message if set; -1 otherwise.
-
setNbMaxMsg
void setNbMaxMsg(int nbMaxMsg)
Sets the maximum number of message for the subscription of this user.- Parameters:
nbMaxMsg- the maximum number of message (-1 set no limit).
-
delete
void delete()
Deletes this proxy.- Specified by:
deletein interfaceAgentMBean
-
getMessageTableConsumedMemory
int getMessageTableConsumedMemory()
Returns the amount of memory consumed by the message table.
-
getRedeliveryDelay
int getRedeliveryDelay()
Return the reDeliveryDelay (unit: second)
-
setRedeliveryDelay
void setRedeliveryDelay(int redeliveryDelay)
Sets the redelivery delay.- Parameters:
redeliveryDelay- the redelivery delay to set(unit: second)
-
-