Java EE 5 SDK

com.sun.appserv.management.util.jmx
Class CompositeDataHelper

java.lang.Object
  extended by com.sun.appserv.management.util.jmx.CompositeDataHelper

public class CompositeDataHelper
extends Object


Constructor Summary
CompositeDataHelper()
           
 
Method Summary
 Serializable asData(Serializable o)
           
static CompositeType getEmptyCompositeType()
          Get a CompositeType describing a CompositeData which has no elements.
 CompositeType getStackTraceElementCompositeType()
          Get a CompositeType describing a CompositeData which has no elements.
protected
<T extends Serializable>
CompositeData
mapToCompositeData(String typeName, String description, Map<String,T> map)
          Create a CompositeData from a Map.
protected
<T extends Serializable>
CompositeType
mapToCompositeType(String typeName, String description, Map<String,T> map)
           
protected
<T extends Serializable>
CompositeType
mapToCompositeType(String typeName, String description, Map<String,T> map, CompositeTypeFromNameCallback callback)
          Create a CompositeType from a Map.
 CompositeData stackTraceElementCompositeData(StackTraceElement elem)
          Get a CompositeType describing a CompositeData which has no elements.
 CompositeData throwableToCompositeData(Throwable t)
          Get a CompositeType describing a CompositeData which has no elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeDataHelper

public CompositeDataHelper()
Method Detail

mapToCompositeType

protected <T extends Serializable> CompositeType mapToCompositeType(String typeName,
                                                                    String description,
                                                                    Map<String,T> map)
                                    throws OpenDataException
Throws:
OpenDataException

mapToCompositeType

protected <T extends Serializable> CompositeType mapToCompositeType(String typeName,
                                                                    String description,
                                                                    Map<String,T> map,
                                                                    CompositeTypeFromNameCallback callback)
                                    throws OpenDataException
Create a CompositeType from a Map. Each key in the map must be a String, and each value must be a type consistent with OpenTypes.

Parameters:
typeName - the arbitrary name of the OpenType to be used
description - the arbitrary description of the OpenType to be used
map - a Map keyed by String, whose values may not be null
Throws:
OpenDataException

mapToCompositeData

protected <T extends Serializable> CompositeData mapToCompositeData(String typeName,
                                                                    String description,
                                                                    Map<String,T> map)
                                    throws OpenDataException
Create a CompositeData from a Map. Each key in the map must be a String, and each value must be a type consistent with OpenTypes.

Parameters:
typeName - the arbitrary name of the OpenType to be used
description - the arbitrary description of the OpenType to be used
map - a Map keyed by String, whose values may not be null
Throws:
OpenDataException

asData

public Serializable asData(Serializable o)
                    throws OpenDataException
Throws:
OpenDataException

getStackTraceElementCompositeType

public CompositeType getStackTraceElementCompositeType()
                                                throws OpenDataException
Get a CompositeType describing a CompositeData which has no elements.

Throws:
OpenDataException

stackTraceElementCompositeData

public CompositeData stackTraceElementCompositeData(StackTraceElement elem)
                                             throws OpenDataException
Get a CompositeType describing a CompositeData which has no elements.

Throws:
OpenDataException

throwableToCompositeData

public CompositeData throwableToCompositeData(Throwable t)
                                       throws OpenDataException
Get a CompositeType describing a CompositeData which has no elements.

Throws:
OpenDataException

getEmptyCompositeType

public static CompositeType getEmptyCompositeType()
                                           throws OpenDataException
Get a CompositeType describing a CompositeData which has no elements.

Throws:
OpenDataException

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.