|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arjuna.ats.arjuna.tools.osb.mbean.ObjStoreBrowser
public class ObjStoreBrowser
An MBean implementation for walking an ObjectStore and creating/deleting MBeans that represent completing transactions (ie ones on which the user has called commit)
Constructor Summary | |
---|---|
ObjStoreBrowser()
|
|
ObjStoreBrowser(java.lang.String logDir)
|
Method Summary | |
---|---|
java.lang.StringBuilder |
dump(java.lang.StringBuilder sb)
|
UidWrapper |
findUid(java.lang.String uid)
|
UidWrapper |
findUid(Uid uid)
See if the given uid has previously been registered as an MBean |
static java.util.Properties |
loadProperties(java.lang.String fname)
|
static void |
main(java.lang.String[] args)
|
void |
probe()
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,
java.lang.String beantype)
Register new MBeans of the requested type (or unregister ones whose corresponding ObjectStore entry has been removed) |
void |
setTypes(java.util.Map<java.lang.String,java.lang.String> types)
Define which object store types will registered as MBeans |
void |
start()
Initialise the MBean |
void |
stop()
Unregister all MBeans representing objects in the ObjectStore represented by this MBean |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjStoreBrowser()
public ObjStoreBrowser(java.lang.String logDir)
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public static java.util.Properties loadProperties(java.lang.String fname)
public void start()
public void stop()
public void setTypes(java.util.Map<java.lang.String,java.lang.String> types)
types
- the list of ObjectStore types that can be represented
as MBeanspublic java.lang.StringBuilder dump(java.lang.StringBuilder sb)
public UidWrapper findUid(Uid uid)
uid
- the unique id representing an ObjectStore entry
public UidWrapper findUid(java.lang.String uid)
public void probe()
probe
in interface ObjStoreBrowserMBean
public java.util.List<UidWrapper> probe(java.lang.String type, java.lang.String beantype)
type
- the ObjectStore entry typebeantype
- the class name of the MBean implementation used to represent
the request type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |