com.jrockit.mc.rjmx.flr.internal
Class RecordingSettingsToolkit

java.lang.Object
  extended by com.jrockit.mc.rjmx.flr.internal.RecordingSettingsToolkit

public final class RecordingSettingsToolkit
extends java.lang.Object

Toolkit for marshalling recording options.

Author:
Marcus Hirt

Field Summary
static java.lang.String KEY_ENABLED
           
static java.lang.String KEY_ID
           
static java.lang.String KEY_REQUEST_PERIOD
           
static java.lang.String KEY_STACKTRACE
           
static java.lang.String KEY_THRESHOLD
           
static javax.management.openmbean.CompositeType OPTIONS_TYPE
           
 
Method Summary
static Option[] createConfigurableOptions(EventTypeMetadata metadata, javax.management.openmbean.CompositeData data)
          Creates an array of option given a composite data with configurable options.
static EventTypeMetadata fromCompositeData(javax.management.openmbean.CompositeData data)
           
static EventTypeSetting[] fromCompositeData(java.util.Map map, java.util.List compositeList)
           
static OptionMetadata[] getConfigurableOptions(Option[] options)
          This internal helper is a bit confusing.
static java.util.List toCompositeData(EventTypeSetting[] settings)
          Converts the event settings to a list of composite data, usable by the MBean API.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_ID

public static final java.lang.String KEY_ID
See Also:
Constant Field Values

KEY_THRESHOLD

public static final java.lang.String KEY_THRESHOLD
See Also:
Constant Field Values

KEY_STACKTRACE

public static final java.lang.String KEY_STACKTRACE
See Also:
Constant Field Values

KEY_REQUEST_PERIOD

public static final java.lang.String KEY_REQUEST_PERIOD
See Also:
Constant Field Values

KEY_ENABLED

public static final java.lang.String KEY_ENABLED
See Also:
Constant Field Values

OPTIONS_TYPE

public static final javax.management.openmbean.CompositeType OPTIONS_TYPE
Method Detail

fromCompositeData

public static EventTypeMetadata fromCompositeData(javax.management.openmbean.CompositeData data)
                                           throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

getConfigurableOptions

public static OptionMetadata[] getConfigurableOptions(Option[] options)
This internal helper is a bit confusing. The options is really the metadata used to check for what configurable options are actually available. The options space to check is currently static - we can't get this data from the server today.

Parameters:
options - the metadata from the event type that describes what options that can be available.
Returns:
the metadata for the options that are actually available.

fromCompositeData

public static EventTypeSetting[] fromCompositeData(java.util.Map map,
                                                   java.util.List compositeList)
Parameters:
map - a map of EventTypeMetadata.
compositeList - a list of composite data representing the actual settings.
Returns:
the event type settings.

toCompositeData

public static java.util.List toCompositeData(EventTypeSetting[] settings)
                                      throws javax.management.openmbean.OpenDataException
Converts the event settings to a list of composite data, usable by the MBean API.

Throws:
javax.management.openmbean.OpenDataException

createConfigurableOptions

public static Option[] createConfigurableOptions(EventTypeMetadata metadata,
                                                 javax.management.openmbean.CompositeData data)
Creates an array of option given a composite data with configurable options.



Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.