Top Fields Constructors Methods
org.eclipse.jetty.server.jmx

public Class AbstractConnectorMBean

extends ObjectMBean
Class Inheritance
Annotations
@ManagedObject:MBean Wrapper for Connectors
Imports
org.eclipse.jetty.jmx.ObjectMBean, org.eclipse.jetty.server.AbstractConnector, .ConnectionFactory, org.eclipse.jetty.util.annotation.ManagedObject

Field Summary

Modifier and TypeField and Description
pack-priv final AbstractConnector
Inherited from org.eclipse.jetty.jmx.ObjectMBean:
_managed

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getObjectContextBasis()

Overrides org.eclipse.jetty.jmx.ObjectMBean.getObjectContextBasis.

Allows to customize the ObjectName property context.

Inherited from org.eclipse.jetty.jmx.ObjectMBean:
getAttributegetAttributesgetManagedObjectgetMBeanContainergetMBeanInfogetObjectNamegetObjectNameBasisinvokesetAttributesetAttributessetMBeanContainer

Field Detail

_connectorback to summary
pack-priv final AbstractConnector _connector

Constructor Detail

AbstractConnectorMBeanback to summary
public AbstractConnectorMBean(Object managedObject)

Method Detail

getObjectContextBasisback to summary
public String getObjectContextBasis()

Overrides org.eclipse.jetty.jmx.ObjectMBean.getObjectContextBasis.

Doc from org.eclipse.jetty.jmx.ObjectMBean.getObjectContextBasis.

Allows to customize the ObjectName property context.

When MBeanContainer creates default ObjectNames, the context property is "inherited" recursively by MBeans that are children of this MBean; this allows to "group" descendant MBeans so that it is clear who is the ancestor they belong to.

For example, if object A has a child component B which has children components C, then AMBean can override this method to return "alpha", and then the ObjectNames will be:

  • domain:type=a,context=alpha,id=0
  • domain:type=b,context=alpha,id=0
  • domain:type=c,context=alpha,id=0
  • domain:type=c,context=alpha,id=1
Returns:String

a custom value for the property context

Annotations
@Override