org.jboss.naming
Class JNDIView

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.naming.JNDIView
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, JNDIViewMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class JNDIView
extends org.jboss.system.ServiceMBeanSupport
implements JNDIViewMBean

A simple utlity mbean that allows one to recursively list the default JBoss InitialContext.

Version:
$Revision: 57209 $
Author:
Scott Stark., Vladimir Blagojevic , David Jencks

Field Summary
protected static String[] g_haAttributes
          The HANamingService attributes, order is significant in getHAUrl()
protected  String haNamingService
          The HANamingService service name
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.naming.JNDIViewMBean
OBJECT_NAME
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
JNDIView()
          Provided for JMX compliance.
 
Method Summary
 String getHANamingService()
          The service name of the HANamingService
protected  javax.management.ObjectName getObjectName(javax.management.MBeanServer server, javax.management.ObjectName name)
           
 String list(boolean verbose)
          List deployed application java:comp namespaces, the java: namespace as well as the global InitialContext JNDI namespace.
 String listXML()
          List deployed application java:comp namespaces, the java: namespace as well as the global InitialContext JNDI namespace in a XML Format.
 void setHANamingService(String serviceName)
          Set the service name of the HANamingServiceg
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

g_haAttributes

protected static final String[] g_haAttributes
The HANamingService attributes, order is significant in getHAUrl()


haNamingService

protected String haNamingService
The HANamingService service name

Constructor Detail

JNDIView

public JNDIView()
Provided for JMX compliance.

Method Detail

list

public String list(boolean verbose)
List deployed application java:comp namespaces, the java: namespace as well as the global InitialContext JNDI namespace.

Specified by:
list in interface JNDIViewMBean
Parameters:
verbose, - if true, list the class of each object in addition to its name

listXML

public String listXML()
List deployed application java:comp namespaces, the java: namespace as well as the global InitialContext JNDI namespace in a XML Format.

Specified by:
listXML in interface JNDIViewMBean
Parameters:
verbose, - if true, list the class of each object in addition to its name

getHANamingService

public String getHANamingService()
Description copied from interface: JNDIViewMBean
The service name of the HANamingService

Specified by:
getHANamingService in interface JNDIViewMBean
Returns:
the service name

setHANamingService

public void setHANamingService(String serviceName)
Description copied from interface: JNDIViewMBean
Set the service name of the HANamingServiceg

Specified by:
setHANamingService in interface JNDIViewMBean
Parameters:
serviceName - the service name

getObjectName

protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
                                                    javax.management.ObjectName name)
                                             throws javax.management.MalformedObjectNameException
Overrides:
getObjectName in class org.jboss.system.ServiceMBeanSupport
Throws:
javax.management.MalformedObjectNameException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.