Class ObjStoreBrowser
java.lang.Object
com.arjuna.ats.arjuna.tools.osb.mbean.ObjStoreBrowser
- All Implemented Interfaces:
ObjStoreBrowserMBean
,ObjStoreItemMBean
Deprecated.
as of 5.0.5.Final In a subsequent release we will change packages names in order to
provide a better separation between public and internal classes.
An MBean implementation for walking an ObjectStore and creating/deleting MBeans
that represent completing transactions (ie ones on which the user has called commit)
- Author:
- Mike Musgrove
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDeprecated.This is the constructor for the default configuration of ObjStoreBrowser.ObjStoreBrowser
(String logDir) Deprecated.This is the constructor to configure ObjStoreBrowser with a path to load the Object Store. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Add the type to be considered by object browser.static String
canonicalType
(String type) Deprecated.dump
(StringBuilder sb) Deprecated.Dump info about all registered MBeansDeprecated.See if the given uid has previously been registered as an MBeanDeprecated.usefindUid(com.arjuna.ats.arjuna.common.Uid)
instead.static HeaderStateReader
getHeaderStateUnpacker
(String type) Deprecated.Deprecated.Returns the JMX name that the MBean that was registered with.void
probe()
Deprecated.See if any new MBeans need to be registered or if any existing MBeans no longer exist as ObjectStore entries.Deprecated.Register new MBeans of the requested type (or unregister ones whose corresponding ObjectStore entry has been removed)registerHandler
(OSBTypeHandler handler) Deprecated.void
setExposeAllRecordsAsMBeans
(boolean exposeAllLogs) Deprecated.boolean
Deprecated.Tell the object browser which beans to use for particular Object Store Action typevoid
Deprecated.void
start()
Deprecated.Initialise the MBeanvoid
stop()
Deprecated.Unregister all MBeans representing objects in the ObjectStore represented by this MBeanprotected void
Deprecated.void
viewSubordinateAtomicActions
(boolean enable) Deprecated.
-
Field Details
-
OBJ_STORE_BROWSER_HANDLERS
Deprecated.- See Also:
-
-
Constructor Details
-
ObjStoreBrowser
public ObjStoreBrowser()Deprecated.This is the constructor for the default configuration of ObjStoreBrowser.
This class has been designed with the assumption that only one instance of ObjStoreBrowser should be used. In other words, this class should be considered as a singleton class. In fact, if two ObjStoreBrowser instances are created, they may interfere with each other.
-
ObjStoreBrowser
Deprecated.This is the constructor to configure ObjStoreBrowser with a path to load the Object Store.
This class has been designed with the assumption that only one instance of ObjStoreBrowser should be used. In other words, this class should be considered as a singleton class. In fact, if two ObjStoreBrowser instances are created, they may interfere with each other.
-
-
Method Details
-
getHeaderStateUnpacker
Deprecated. -
start
public void start()Deprecated.Initialise the MBean -
stop
public void stop()Deprecated.Unregister all MBeans representing objects in the ObjectStore represented by this MBean -
unregisterMBeans
protected void unregisterMBeans()Deprecated. -
getObjStoreBrowserMBeanName
Deprecated.Returns the JMX name that the MBean that was registered with. If the MBean was not yet registered then the method returns the name provided by configuration within theObjectStoreEnvironmentBean.getJmxToolingMBeanName()
.- Returns:
- name of the JMX
-
setTypes
Deprecated.This method is deprecated in favour ofsetType(String, String)
. The issue with this method is there is no mechanism for determining which class is responsible for a given OS type. This method is a no-action method. Define which object store types will be registered as MBeans- Parameters:
types
- the list of ObjectStore types that can be represented as MBeans
-
setType
Deprecated.Tell the object browser which beans to use for particular Object Store Action type- Parameters:
osTypeClassName
-StateManager
type class namebeanTypeClassName
- bean class name which makes tooling available on top of theosTypeClassName
- Returns:
- whether the type was set OK
-
addType
Deprecated.Add the type to be considered by object browser. SeesetType(String, String)
.- Parameters:
typeName
- type name that the bean will operate atosTypeClassName
-StateManager
type class namebeanTypeClassName
- bean class name which makes tooling available on top of theosTypeClassName
- Returns:
- whether the type was set OK
-
registerHandler
Deprecated.- Parameters:
handler
- specification for handling object store types- Returns:
- the previous value associated with type handler, or null if there was no previous handler.
-
dump
Deprecated.Dump info about all registered MBeans- Parameters:
sb
- a buffer to contain the result- Returns:
- the passed in buffer
-
findUid
Deprecated.See if the given uid has previously been registered as an MBean- Parameters:
uid
- the unique id representing an ObjectStore entry- Returns:
- the MBean wrapper corresponding to the requested Uid (or null if it hasn't been registered)
-
findUid
Deprecated.usefindUid(com.arjuna.ats.arjuna.common.Uid)
instead.Find the registered bean corresponding to a uid.- Parameters:
uid
- the uid- Returns:
- the registered bean or null if the Uid is not registered
-
viewSubordinateAtomicActions
public void viewSubordinateAtomicActions(boolean enable) Deprecated.- Specified by:
viewSubordinateAtomicActions
in interfaceObjStoreBrowserMBean
-
setExposeAllRecordsAsMBeans
public void setExposeAllRecordsAsMBeans(boolean exposeAllLogs) Deprecated.- Specified by:
setExposeAllRecordsAsMBeans
in interfaceObjStoreBrowserMBean
-
probe
Deprecated.See if any new MBeans need to be registered or if any existing MBeans no longer exist as ObjectStore entries.- Specified by:
probe
in interfaceObjStoreBrowserMBean
- Throws:
MBeanException
- exception is thrown when it's not possible to list Uids from object store
-
probe
Deprecated.Register new MBeans of the requested type (or unregister ones whose corresponding ObjectStore entry has been removed)- Parameters:
type
- the ObjectStore entry type- Returns:
- the list of MBeans representing the requested ObjectStore type
-
canonicalType
Deprecated.
-