org.oddjob.jmx
Class ServerStrategy

java.lang.Object
  extended by org.oddjob.jmx.ServerStrategy

public abstract class ServerStrategy
extends Object

Used to alter behaviour between having a remote connector and using the Platform MBean Server.

Author:
rob

Constructor Summary
ServerStrategy()
           
 
Method Summary
abstract  MBeanServer findServer()
           
abstract  String getAddress()
           
abstract  String serverIdText()
           
abstract  JMXConnectorServer startConnector(Map<String,?> environment)
           
static ServerStrategy stratagyFor(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerStrategy

public ServerStrategy()
Method Detail

stratagyFor

public static ServerStrategy stratagyFor(String url)
                                  throws MalformedURLException
Throws:
MalformedURLException

findServer

public abstract MBeanServer findServer()

serverIdText

public abstract String serverIdText()
                             throws JMException
Throws:
JMException

startConnector

public abstract JMXConnectorServer startConnector(Map<String,?> environment)
                                           throws IOException
Throws:
IOException

getAddress

public abstract String getAddress()