org.ow2.jonas.lib.util
Class JoramObjectName

java.lang.Object
  extended by org.ow2.jonas.lib.util.JoramObjectName

public class JoramObjectName
extends Object

A set of static methods used to build the names of proprietary MBeans used in Joram.

Author:
Adriana Danes

Constructor Summary
JoramObjectName()
           
 
Method Summary
static ObjectName joramAdapter()
           
static ObjectName joramClientMBeans()
           
static ObjectName joramDmQueue(String name)
          Create ObjectName for a Joram managed dead message queue.
static ObjectName joramDmQueues()
          Create ObjectName for all Joram managed dead message queues
static ObjectName joramQueue(String name)
          Create ObjectName for a Joram managed queue.
static ObjectName joramQueues()
          Create ObjectName for all Joram managed queues
static ObjectName joramTopic(String name)
          Create ObjectName for a Joram managed topic
static ObjectName joramTopics()
          Create ObjectName for all Joram managed topics
static ObjectName joramUser(String name)
          Create ObjectName for a Joram managed user
static ObjectName joramUsers()
          Create ObjectName for all Joram managed users
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoramObjectName

public JoramObjectName()
Method Detail

joramClientMBeans

public static ObjectName joramClientMBeans()
                                    throws MalformedObjectNameException
Returns:
Returns an ObjectName pattern for JORAM Client MBeans.
Throws:
MalformedObjectNameException - Could not create ObjectName

joramAdapter

public static ObjectName joramAdapter()
                               throws MalformedObjectNameException
Returns:
ObjectName for the current JoramAdapter MBean
Throws:
MalformedObjectNameException - Could not create ObjectName with the given String

joramQueue

public static ObjectName joramQueue(String name)
                             throws MalformedObjectNameException
Create ObjectName for a Joram managed queue.

Parameters:
name - queue name
Returns:
ObjectName for a Joram managed queue
Throws:
MalformedObjectNameException - Could not create ObjectName with the given String

joramQueues

public static ObjectName joramQueues()
                              throws MalformedObjectNameException
Create ObjectName for all Joram managed queues

Returns:
ObjectName for a Joram managed queue
Throws:
MalformedObjectNameException - Could not create ObjectName with the given String

joramDmQueue

public static ObjectName joramDmQueue(String name)
                               throws MalformedObjectNameException
Create ObjectName for a Joram managed dead message queue.

Parameters:
name - queue name
Returns:
ObjectName for a Joram managed dead message queue
Throws:
MalformedObjectNameException - Could not create ObjectName with the given String

joramDmQueues

public static ObjectName joramDmQueues()
                                throws MalformedObjectNameException
Create ObjectName for all Joram managed dead message queues

Returns:
ObjectName for a Joram managed dead message queue
Throws:
MalformedObjectNameException - Could not create ObjectName with the given String

joramTopic

public static ObjectName joramTopic(String name)
                             throws MalformedObjectNameException
Create ObjectName for a Joram managed topic

Parameters:
name - topic name
Returns:
ObjectName for a Joram managed topic
Throws:
MalformedObjectNameException - Could not create ObjectName with the given String

joramTopics

public static ObjectName joramTopics()
                              throws MalformedObjectNameException
Create ObjectName for all Joram managed topics

Returns:
ObjectName for a Joram managed topic
Throws:
MalformedObjectNameException - Could not create ObjectName with the given String

joramUser

public static ObjectName joramUser(String name)
                            throws MalformedObjectNameException
Create ObjectName for a Joram managed user

Parameters:
name - user name
Returns:
ObjectName for a Joram managed user
Throws:
MalformedObjectNameException - Could not create ObjectName with the given String

joramUsers

public static ObjectName joramUsers()
                             throws MalformedObjectNameException
Create ObjectName for all Joram managed users

Returns:
ObjectName for a Joram managed user
Throws:
MalformedObjectNameException - Could not create ObjectName with the given String


Copyright © 2010 OW2 Consortium. All Rights Reserved.