org.ow2.petals.cli.shell.command.utils
Class JMXClientFactory

java.lang.Object
  extended by org.ow2.petals.cli.shell.command.utils.JMXClientFactory

public abstract class JMXClientFactory
extends java.lang.Object

This class is a factory to create and initialize a JMX client

Author:
sandre

Constructor Summary
JMXClientFactory()
           
 
Method Summary
static org.ow2.petals.jmx.JMXClient newInstance()
          Create a new instance of JMX client connected to the remote petals ESB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXClientFactory

public JMXClientFactory()
Method Detail

newInstance

public static final org.ow2.petals.jmx.JMXClient newInstance()
                                                      throws java.lang.NumberFormatException,
                                                             org.ow2.petals.jmx.exception.ConnectionErrorException
Create a new instance of JMX client connected to the remote petals ESB

Returns:
an instance of JMX client
Throws:
java.lang.NumberFormatException - if the value of the property "petals.port" cannot be parsed as an integer
org.ow2.petals.jmx.exception.ConnectionErrorException - if the client cannot connect to the remote petals ESB


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.