jrockit.management.util
Class LazyCompositeData

java.lang.Object
  extended by jrockit.management.util.LazyCompositeData
All Implemented Interfaces:
java.io.Serializable, javax.management.openmbean.CompositeData
Direct Known Subclasses:
DefaultGarbageCollectionHeuristicCompositeData, MarkAndSweepStrategyCompositeData, MethodIdentifierCompositeData

public abstract class LazyCompositeData
extends java.lang.Object
implements javax.management.openmbean.CompositeData, java.io.Serializable

This abstract class provides the implementation of the CompositeData interface. A CompositeData object will be lazily created only when the CompositeData interface is used. Classes that extends this abstract class will implement the getCompositeData() method. The object returned by the getCompositeData() is an instance of CompositeData such that the instance serializes itself as the type CompositeDataSupport.

See Also:
Serialized Form

Constructor Summary
LazyCompositeData()
           
 
Method Summary
 boolean containsKey(java.lang.String key)
           
 boolean containsValue(java.lang.Object value)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Object get(java.lang.String key)
           
 java.lang.Object[] getAll(java.lang.String[] keys)
           
protected abstract  javax.management.openmbean.CompositeData getCompositeData()
          Returns the CompositeData representing this object.
 javax.management.openmbean.CompositeType getCompositeType()
           
 int hashCode()
           
protected static boolean isTypeMatched(javax.management.openmbean.CompositeType type1, javax.management.openmbean.CompositeType type2)
          Compares two CompositeTypes and returns true if all items in type1 exist in type2 and their item types are the same.
protected static boolean isTypeMatched(javax.management.openmbean.TabularType type1, javax.management.openmbean.TabularType type2)
           
 java.lang.String toString()
           
 java.util.Collection values()
           
protected  java.lang.Object writeReplace()
          Designate to a CompositeData object when writing to an output stream during serialization so that the receiver only requires JMX 1.2 classes but not any implementation specific class.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazyCompositeData

public LazyCompositeData()
Method Detail

containsKey

public boolean containsKey(java.lang.String key)
Specified by:
containsKey in interface javax.management.openmbean.CompositeData

containsValue

public boolean containsValue(java.lang.Object value)
Specified by:
containsValue in interface javax.management.openmbean.CompositeData

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface javax.management.openmbean.CompositeData
Overrides:
equals in class java.lang.Object

get

public java.lang.Object get(java.lang.String key)
Specified by:
get in interface javax.management.openmbean.CompositeData

getAll

public java.lang.Object[] getAll(java.lang.String[] keys)
Specified by:
getAll in interface javax.management.openmbean.CompositeData

getCompositeType

public javax.management.openmbean.CompositeType getCompositeType()
Specified by:
getCompositeType in interface javax.management.openmbean.CompositeData

hashCode

public int hashCode()
Specified by:
hashCode in interface javax.management.openmbean.CompositeData
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Specified by:
toString in interface javax.management.openmbean.CompositeData
Overrides:
toString in class java.lang.Object

values

public java.util.Collection values()
Specified by:
values in interface javax.management.openmbean.CompositeData

writeReplace

protected java.lang.Object writeReplace()
                                 throws java.io.ObjectStreamException
Designate to a CompositeData object when writing to an output stream during serialization so that the receiver only requires JMX 1.2 classes but not any implementation specific class.

Throws:
java.io.ObjectStreamException

getCompositeData

protected abstract javax.management.openmbean.CompositeData getCompositeData()
Returns the CompositeData representing this object. The returned CompositeData object must be an instance of javax.management.openmbean.CompositeDataSupport class so that no implementation specific class is required for unmarshalling besides JMX 1.2 classes.


isTypeMatched

protected static boolean isTypeMatched(javax.management.openmbean.CompositeType type1,
                                       javax.management.openmbean.CompositeType type2)
Compares two CompositeTypes and returns true if all items in type1 exist in type2 and their item types are the same.


isTypeMatched

protected static boolean isTypeMatched(javax.management.openmbean.TabularType type1,
                                       javax.management.openmbean.TabularType type2)


Copyright © 2004-2005 BEA Systems Inc.