Top Description Fields Constructors Methods
org.eclipse.persistence.services

public abstract Class ClassSummaryDetailBase

extends Object
Class Inheritance
Known Direct Subclasses
org.eclipse.persistence.services.glassfish.ClassSummaryDetail, org.eclipse.persistence.services.jboss.ClassSummaryDetail, org.eclipse.persistence.services.weblogic.ClassSummaryDetail, org.eclipse.persistence.services.websphere.ClassSummaryDetail, org.eclipse.persistence.services.wildfly.ClassSummaryDetail
Imports
javax.management.openmbean.CompositeType, .SimpleType, .OpenType, .CompositeData, .CompositeDataSupport, .OpenDataException, org.eclipse.persistence.services.websphere.ClassSummaryDetail

The class is used internally by the Portable JMX Framework to convert model specific classes into Open Types so that the attributes of model class can be exposed by MBeans.
Since
EclipseLink 2.1.1

Field Summary

Modifier and TypeField and Description
private String
private String
protected static String
COMPOSITE_TYPE_DESCRIPTION

Must override in subclass

protected static String
COMPOSITE_TYPE_TYPENAME

Must override in subclass

private String
protected static CompositeType
private String
protected static final String[]
private String

Constructor Summary

AccessConstructor and Description
protected
ClassSummaryDetailBase(String className, String cacheType, String configuredSize, String currentSize, String parentClassName)

Construct a ClassSummaryDetail instance.

Method Summary

Modifier and TypeMethod and Description
public static ClassSummaryDetail
from(CompositeData cd)

Create an instance of the model specific class out of an associated CompositeData instance

public String
public String
public String
public String
public String
public void
setCacheType(String cacheType)

public void
setClassName(String className)

public void
setConfiguredSize(String configuredSize)

public void
setCurrentSize(String currentSize)

public void
setParentClassName(String parentClassName)

public CompositeData
toCompositeData(CompositeType
- This parameter is for JDK 1.6 compatibility reasons
ct
)

Convert an instance of this model specific type to a CompositeData.

public static CompositeType
toCompositeType()

Returns the CompositeType that describes this model specific class

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheTypeback to summary
private String cacheType
classNameback to summary
private String className
COMPOSITE_TYPE_DESCRIPTIONback to summary
protected static String COMPOSITE_TYPE_DESCRIPTION

Must override in subclass

COMPOSITE_TYPE_TYPENAMEback to summary
protected static String COMPOSITE_TYPE_TYPENAME

Must override in subclass

configuredSizeback to summary
private String configuredSize
cType_back to summary
protected static CompositeType cType_
currentSizeback to summary
private String currentSize
itemNames_back to summary
protected static final String[] itemNames_
parentClassNameback to summary
private String parentClassName

Constructor Detail

ClassSummaryDetailBaseback to summary
protected ClassSummaryDetailBase(String className, String cacheType, String configuredSize, String currentSize, String parentClassName)

Construct a ClassSummaryDetail instance. The PropertyNames annotation is used to be able to construct a ClassSummaryDetail instance out of a CompositeData instance. See MXBeans documentation for more details.

Method Detail

fromback to summary
public static ClassSummaryDetail from(CompositeData cd)

Create an instance of the model specific class out of an associated CompositeData instance

getCacheTypeback to summary
public String getCacheType()
getClassNameback to summary
public String getClassName()
getConfiguredSizeback to summary
public String getConfiguredSize()
getCurrentSizeback to summary
public String getCurrentSize()
getParentClassNameback to summary
public String getParentClassName()
setCacheTypeback to summary
public void setCacheType(String cacheType)
setClassNameback to summary
public void setClassName(String className)
setConfiguredSizeback to summary
public void setConfiguredSize(String configuredSize)
setCurrentSizeback to summary
public void setCurrentSize(String currentSize)
setParentClassNameback to summary
public void setParentClassName(String parentClassName)
toCompositeDataback to summary
public CompositeData toCompositeData(CompositeType ct)

Convert an instance of this model specific type to a CompositeData. This ensure that clients that do not have access to the model specific class can still use the MBean. The MXBean framework can perform this conversion automatically.

Parameters
ct:CompositeType

- This parameter is for JDK 1.6 compatibility reasons

toCompositeTypeback to summary
public static CompositeType toCompositeType()

Returns the CompositeType that describes this model specific class