Class ObjStoreBrowser
- java.lang.Object
-
- com.arjuna.ats.arjuna.tools.osb.mbean.ObjStoreBrowser
-
- All Implemented Interfaces:
ObjStoreBrowserMBean,ObjStoreItemMBean
@Deprecated public class ObjStoreBrowser extends java.lang.Object implements ObjStoreBrowserMBean
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
Fields Modifier and Type Field Description static java.lang.StringOBJ_STORE_BROWSER_HANDLERSDeprecated.
-
Constructor Summary
Constructors Constructor Description ObjStoreBrowser()Deprecated.This is the constructor for the default configuration of ObjStoreBrowser.ObjStoreBrowser(java.lang.String logDir)Deprecated.This is the constructor to configure ObjStoreBrowser with a path to load the Object Store.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanaddType(java.lang.String typeName, java.lang.String osTypeClassName, java.lang.String beanTypeClassName)Deprecated.Add the type to be considered by object browser.static java.lang.StringcanonicalType(java.lang.String type)Deprecated.java.lang.StringBuilderdump(java.lang.StringBuilder sb)Deprecated.Dump info about all registered MBeansUidWrapperfindUid(Uid uid)Deprecated.See if the given uid has previously been registered as an MBeanUidWrapperfindUid(java.lang.String uid)Deprecated.usefindUid(com.arjuna.ats.arjuna.common.Uid)instead.static HeaderStateReadergetHeaderStateUnpacker(java.lang.String type)Deprecated.java.lang.StringgetObjStoreBrowserMBeanName()Deprecated.Returns the JMX name that the MBean that was registered with.voidprobe()Deprecated.See if any new MBeans need to be registered or if any existing MBeans no longer exist as ObjectStore entries.java.util.List<UidWrapper>probe(java.lang.String type)Deprecated.Register new MBeans of the requested type (or unregister ones whose corresponding ObjectStore entry has been removed)OSBTypeHandlerregisterHandler(OSBTypeHandler handler)Deprecated.voidsetExposeAllRecordsAsMBeans(boolean exposeAllLogs)Deprecated.booleansetType(java.lang.String osTypeClassName, java.lang.String beanTypeClassName)Deprecated.Tell the object browser which beans to use for particular Object Store Action typevoidsetTypes(java.util.Map<java.lang.String,java.lang.String> types)Deprecated.voidstart()Deprecated.Initialise the MBeanvoidstop()Deprecated.Unregister all MBeans representing objects in the ObjectStore represented by this MBeanprotected voidunregisterMBeans()Deprecated.voidviewSubordinateAtomicActions(boolean enable)Deprecated.
-
-
-
Field Detail
-
OBJ_STORE_BROWSER_HANDLERS
public static final java.lang.String OBJ_STORE_BROWSER_HANDLERS
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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
public ObjStoreBrowser(java.lang.String logDir)
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 Detail
-
getHeaderStateUnpacker
public static HeaderStateReader getHeaderStateUnpacker(java.lang.String type)
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
public java.lang.String 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 public void setTypes(java.util.Map<java.lang.String,java.lang.String> types)
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
public boolean setType(java.lang.String osTypeClassName, java.lang.String beanTypeClassName)Deprecated.Tell the object browser which beans to use for particular Object Store Action type- Parameters:
osTypeClassName-StateManagertype class namebeanTypeClassName- bean class name which makes tooling available on top of theosTypeClassName- Returns:
- whether the type was set OK
-
addType
public boolean addType(java.lang.String typeName, java.lang.String osTypeClassName, java.lang.String beanTypeClassName)Deprecated.Add the type to be considered by object browser. SeesetType(String, String).- Parameters:
typeName- type name that the bean will operate atosTypeClassName-StateManagertype class namebeanTypeClassName- bean class name which makes tooling available on top of theosTypeClassName- Returns:
- whether the type was set OK
-
registerHandler
public OSBTypeHandler registerHandler(OSBTypeHandler handler)
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
public java.lang.StringBuilder dump(java.lang.StringBuilder sb)
Deprecated.Dump info about all registered MBeans- Parameters:
sb- a buffer to contain the result- Returns:
- the passed in buffer
-
findUid
public UidWrapper findUid(Uid uid)
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 public UidWrapper findUid(java.lang.String uid)
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:
viewSubordinateAtomicActionsin interfaceObjStoreBrowserMBean
-
setExposeAllRecordsAsMBeans
public void setExposeAllRecordsAsMBeans(boolean exposeAllLogs)
Deprecated.- Specified by:
setExposeAllRecordsAsMBeansin interfaceObjStoreBrowserMBean
-
probe
public void probe() throws javax.management.MBeanExceptionDeprecated.See if any new MBeans need to be registered or if any existing MBeans no longer exist as ObjectStore entries.- Specified by:
probein interfaceObjStoreBrowserMBean- Throws:
javax.management.MBeanException- exception is thrown when it's not possible to list Uids from object store
-
probe
public java.util.List<UidWrapper> probe(java.lang.String type)
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
public static java.lang.String canonicalType(java.lang.String type)
Deprecated.
-
-