org.apache.geronimo.jmxremoting
Class JMXConnector

java.lang.Object
  extended byorg.apache.geronimo.jmxremoting.JMXConnector
All Implemented Interfaces:
org.apache.geronimo.gbean.GBeanLifecycle

public class JMXConnector
extends Object
implements org.apache.geronimo.gbean.GBeanLifecycle

A Connector that supports the server sideof JSR 160 JMX Remoting.

Version:
$Revision: 1.8 $ $Date: 2004/07/12 06:07:52 $

Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Constructor Summary
JMXConnector(org.apache.geronimo.kernel.Kernel kernel, String objectName, ClassLoader classLoader)
          Constructor for creating the connector.
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
 String getApplicationConfigName()
          Return the name of the JAAS Application Configuration Entry this connector uses to authenticate users.
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 String getURL()
          Return the JMX URL for this connector.
 void setApplicationConfigName(String applicationConfigName)
          Set the name of the JAAS Application Configuration Entry this connector should use to authenticate users.
 void setURL(String url)
          Set the JMX URL for this connector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

JMXConnector

public JMXConnector(org.apache.geronimo.kernel.Kernel kernel,
                    String objectName,
                    ClassLoader classLoader)
Constructor for creating the connector. The ClassLoader must be able to load all the LoginModules used in the JAAS login

Parameters:
kernel - a reference to the kernel
objectName - this connector's object name
classLoader - the classLoader used to create this connector
Method Detail

getApplicationConfigName

public String getApplicationConfigName()
Return the name of the JAAS Application Configuration Entry this connector uses to authenticate users. If null, users are not be authenticated (not recommended).

Returns:
the authentication configuration name

setApplicationConfigName

public void setApplicationConfigName(String applicationConfigName)
Set the name of the JAAS Application Configuration Entry this connector should use to authenticate users. If null, users will not be authenticated (not recommended).

Parameters:
applicationConfigName - the authentication configuration name

getURL

public String getURL()
Return the JMX URL for this connector.

Returns:
the JMX URL for this connector

setURL

public void setURL(String url)
Set the JMX URL for this connector

Parameters:
url - the JMX URL for this connector

doStart

public void doStart()
             throws org.apache.geronimo.gbean.WaitingException,
                    Exception
Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
org.apache.geronimo.gbean.WaitingException
Exception

doStop

public void doStop()
            throws Exception
Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
Exception

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.