站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jmx API Documentation 英文版文档

MbeanInfoDbPm (JBoss/JMX API) - JBoss 4.0.1 sp1 jmx API Documentation 英文版文档


org.jboss.mx.persistence
Class MbeanInfoDbPm

java.lang.Object
  extended byorg.jboss.mx.persistence.MBeanInfoOdb
      extended byorg.jboss.mx.persistence.MbeanInfoDbPm
All Implemented Interfaces:
PersistenceManager

public class MbeanInfoDbPm
extends MBeanInfoOdb
implements PersistenceManager

Class responsible for storing and loading the MBean info database.

Author:
Matt Munz

Field Summary
protected  Vector fInfosToRestore
           
protected  boolean fLoadedFromFs
           
protected  MbeanInfoDb fMbeanInfoDb
           
protected  MBeanServer fMbeanServer
           
protected  File fMbiDbRoot
           
protected  Vector fNamesToRestore
           
 
Fields inherited from class org.jboss.mx.persistence.MBeanInfoOdb
fLogger
 
Constructor Summary
MbeanInfoDbPm()
           
 
Method Summary
protected  String fileName(ObjectName name)
           
protected  MBeanServer getMBeanServer()
           
protected  Vector infosToRestore()
           
 void load(ModelMBeanInvoker mbean, MBeanInfo info)
           
protected  boolean loadedFromFs()
           
protected  MbeanInfoDb mbeanInfoDb()
           
protected  File mbiDbRoot()
           
protected  Vector namesToRestore()
           
protected  ObjectName objectName(File fileName)
           
protected  String objNameSeparator()
           
protected  String objNameSepRep()
           
protected  void register()
          Iterates over the loaded MBean infos and ObjectNames, creates an MBean for each, and registers it with the server.
protected  String replaceAll(String object, String target, String replacement)
          JDK 1.3.1 substitute for jdk 1.4.1 String.replaceAll() Does not accept regular expressions...
protected  String replaceAll(String object, String target, String replacement, int curIndex)
          Iterative
protected  void setLoadedFromFs(boolean newLoadedFromFs)
           
protected  void setMbeanInfoDb(MbeanInfoDb newMbeanInfoDb)
           
protected  void setMbiDbRoot(File newMbiDbRoot)
           
 void store(MBeanInfo info)
           
protected  void store(ObjectName name, MBeanInfo info)
           
 
Methods inherited from class org.jboss.mx.persistence.MBeanInfoOdb
load, logger, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fLoadedFromFs

protected boolean fLoadedFromFs

fNamesToRestore

protected Vector fNamesToRestore

fInfosToRestore

protected Vector fInfosToRestore

fMbeanServer

protected MBeanServer fMbeanServer

fMbeanInfoDb

protected MbeanInfoDb fMbeanInfoDb

fMbiDbRoot

protected File fMbiDbRoot
Constructor Detail

MbeanInfoDbPm

public MbeanInfoDbPm()
Method Detail

load

public void load(ModelMBeanInvoker mbean,
                 MBeanInfo info)
          throws MBeanException
Specified by:
load in interface PersistenceManager
Throws:
MBeanException

store

public void store(MBeanInfo info)
           throws MBeanException
Specified by:
store in interface PersistenceManager
Throws:
MBeanException

store

protected void store(ObjectName name,
                     MBeanInfo info)
              throws IOException
Throws:
IOException

register

protected void register()
                 throws JMException,
                        InvalidTargetObjectTypeException
Iterates over the loaded MBean infos and ObjectNames, creates an MBean for each, and registers it with the server. This includes creating the resource object as well.

Throws:
JMException
InvalidTargetObjectTypeException

getMBeanServer

protected MBeanServer getMBeanServer()
                              throws JMException
Throws:
JMException

replaceAll

protected String replaceAll(String object,
                            String target,
                            String replacement)
JDK 1.3.1 substitute for jdk 1.4.1 String.replaceAll() Does not accept regular expressions... returns the object string where all instances of target are replaced with replacement


replaceAll

protected String replaceAll(String object,
                            String target,
                            String replacement,
                            int curIndex)
Iterative


objNameSeparator

protected String objNameSeparator()

objNameSepRep

protected String objNameSepRep()

fileName

protected String fileName(ObjectName name)

objectName

protected ObjectName objectName(File fileName)
                         throws MalformedObjectNameException
Throws:
MalformedObjectNameException

loadedFromFs

protected boolean loadedFromFs()

setLoadedFromFs

protected void setLoadedFromFs(boolean newLoadedFromFs)

namesToRestore

protected Vector namesToRestore()

infosToRestore

protected Vector infosToRestore()

mbiDbRoot

protected File mbiDbRoot()

setMbiDbRoot

protected void setMbiDbRoot(File newMbiDbRoot)

mbeanInfoDb

protected MbeanInfoDb mbeanInfoDb()

setMbeanInfoDb

protected void setMbeanInfoDb(MbeanInfoDb newMbeanInfoDb)


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