Table of Contents

Class MBeanServer

Namespace
Javax.Management
Assembly
MASES.JNet.dll
public class MBeanServer : MBeanServerConnection, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IMBeanServer, IMBeanServerConnection
Inheritance
MBeanServer
Implements
Derived
Inherited Members
Extension Methods

Constructors

MBeanServer()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("MBeanServer class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public MBeanServer()

MBeanServer(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("MBeanServer class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public MBeanServer(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

ClassLoaderRepository

public ClassLoaderRepository ClassLoaderRepository { get; }

Property Value

ClassLoaderRepository

DefaultDomain

public String DefaultDomain { get; }

Property Value

String

Domains

public String[] Domains { get; }

Property Value

String[]

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements Closeable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

MBeanCount

public Integer MBeanCount { get; }

Property Value

Integer

Methods

AddNotificationListener(ObjectName, NotificationListener, NotificationFilter, object)

public void AddNotificationListener(ObjectName arg0, NotificationListener arg1, NotificationFilter arg2, object arg3)

Parameters

arg0 ObjectName

ObjectName

arg1 NotificationListener

NotificationListener

arg2 NotificationFilter

NotificationFilter

arg3 object

object

Exceptions

InstanceNotFoundException

AddNotificationListener(ObjectName, ObjectName, NotificationFilter, object)

public void AddNotificationListener(ObjectName arg0, ObjectName arg1, NotificationFilter arg2, object arg3)

Parameters

arg0 ObjectName

ObjectName

arg1 ObjectName

ObjectName

arg2 NotificationFilter

NotificationFilter

arg3 object

object

Exceptions

InstanceNotFoundException

CreateMBean(String, ObjectName)

public ObjectInstance CreateMBean(String arg0, ObjectName arg1)

Parameters

arg0 String

String

arg1 ObjectName

ObjectName

Returns

ObjectInstance

ObjectInstance

Exceptions

ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException

CreateMBean(String, ObjectName, ObjectName)

public ObjectInstance CreateMBean(String arg0, ObjectName arg1, ObjectName arg2)

Parameters

arg0 String

String

arg1 ObjectName

ObjectName

arg2 ObjectName

ObjectName

Returns

ObjectInstance

ObjectInstance

Exceptions

ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException

CreateMBean(String, ObjectName, ObjectName, object[], String[])

public ObjectInstance CreateMBean(String arg0, ObjectName arg1, ObjectName arg2, object[] arg3, String[] arg4)

Parameters

arg0 String

String

arg1 ObjectName

ObjectName

arg2 ObjectName

ObjectName

arg3 object[]

object

arg4 String[]

String

Returns

ObjectInstance

ObjectInstance

Exceptions

ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException

CreateMBean(String, ObjectName, object[], String[])

public ObjectInstance CreateMBean(String arg0, ObjectName arg1, object[] arg2, String[] arg3)

Parameters

arg0 String

String

arg1 ObjectName

ObjectName

arg2 object[]

object

arg3 String[]

String

Returns

ObjectInstance

ObjectInstance

Exceptions

ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException

GetAttribute(ObjectName, String)

public object GetAttribute(ObjectName arg0, String arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 String

String

Returns

object

object

Exceptions

MBeanException
AttributeNotFoundException
InstanceNotFoundException
ReflectionException

GetAttributes(ObjectName, String[])

public AttributeList GetAttributes(ObjectName arg0, String[] arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 String[]

String

Returns

AttributeList

AttributeList

Exceptions

InstanceNotFoundException
ReflectionException

GetClassLoader(ObjectName)

public ClassLoader GetClassLoader(ObjectName arg0)

Parameters

arg0 ObjectName

ObjectName

Returns

ClassLoader

ClassLoader

Exceptions

InstanceNotFoundException

GetClassLoaderFor(ObjectName)

public ClassLoader GetClassLoaderFor(ObjectName arg0)

Parameters

arg0 ObjectName

ObjectName

Returns

ClassLoader

ClassLoader

Exceptions

InstanceNotFoundException

GetMBeanInfo(ObjectName)

public MBeanInfo GetMBeanInfo(ObjectName arg0)

Parameters

arg0 ObjectName

ObjectName

Returns

MBeanInfo

MBeanInfo

Exceptions

InstanceNotFoundException
IntrospectionException
ReflectionException

GetObjectInstance(ObjectName)

public ObjectInstance GetObjectInstance(ObjectName arg0)

Parameters

arg0 ObjectName

ObjectName

Returns

ObjectInstance

ObjectInstance

Exceptions

InstanceNotFoundException

Instantiate(String)

public object Instantiate(String arg0)

Parameters

arg0 String

String

Returns

object

object

Exceptions

ReflectionException
MBeanException

Instantiate(String, ObjectName)

public object Instantiate(String arg0, ObjectName arg1)

Parameters

arg0 String

String

arg1 ObjectName

ObjectName

Returns

object

object

Exceptions

ReflectionException
MBeanException
InstanceNotFoundException

Instantiate(String, ObjectName, object[], String[])

public object Instantiate(String arg0, ObjectName arg1, object[] arg2, String[] arg3)

Parameters

arg0 String

String

arg1 ObjectName

ObjectName

arg2 object[]

object

arg3 String[]

String

Returns

object

object

Exceptions

ReflectionException
MBeanException
InstanceNotFoundException

Instantiate(String, object[], String[])

public object Instantiate(String arg0, object[] arg1, String[] arg2)

Parameters

arg0 String

String

arg1 object[]

object

arg2 String[]

String

Returns

object

object

Exceptions

ReflectionException
MBeanException

Invoke(ObjectName, String, object[], String[])

public object Invoke(ObjectName arg0, String arg1, object[] arg2, String[] arg3)

Parameters

arg0 ObjectName

ObjectName

arg1 String

String

arg2 object[]

object

arg3 String[]

String

Returns

object

object

Exceptions

InstanceNotFoundException
MBeanException
ReflectionException

IsInstanceOf(ObjectName, String)

public bool IsInstanceOf(ObjectName arg0, String arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 String

String

Returns

bool

bool

Exceptions

InstanceNotFoundException

IsRegistered(ObjectName)

public bool IsRegistered(ObjectName arg0)

Parameters

arg0 ObjectName

ObjectName

Returns

bool

bool

QueryMBeans(ObjectName, QueryExp)

public Set<ObjectInstance> QueryMBeans(ObjectName arg0, QueryExp arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 QueryExp

QueryExp

Returns

Set<ObjectInstance>

Set

QueryNames(ObjectName, QueryExp)

public Set<ObjectName> QueryNames(ObjectName arg0, QueryExp arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 QueryExp

QueryExp

Returns

Set<ObjectName>

Set

RegisterMBean(object, ObjectName)

public ObjectInstance RegisterMBean(object arg0, ObjectName arg1)

Parameters

arg0 object

object

arg1 ObjectName

ObjectName

Returns

ObjectInstance

ObjectInstance

Exceptions

InstanceAlreadyExistsException
MBeanRegistrationException
NotCompliantMBeanException

RemoveNotificationListener(ObjectName, NotificationListener)

public void RemoveNotificationListener(ObjectName arg0, NotificationListener arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 NotificationListener

NotificationListener

Exceptions

InstanceNotFoundException
ListenerNotFoundException

RemoveNotificationListener(ObjectName, NotificationListener, NotificationFilter, object)

public void RemoveNotificationListener(ObjectName arg0, NotificationListener arg1, NotificationFilter arg2, object arg3)

Parameters

arg0 ObjectName

ObjectName

arg1 NotificationListener

NotificationListener

arg2 NotificationFilter

NotificationFilter

arg3 object

object

Exceptions

InstanceNotFoundException
ListenerNotFoundException

RemoveNotificationListener(ObjectName, ObjectName)

public void RemoveNotificationListener(ObjectName arg0, ObjectName arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 ObjectName

ObjectName

Exceptions

InstanceNotFoundException
ListenerNotFoundException

RemoveNotificationListener(ObjectName, ObjectName, NotificationFilter, object)

public void RemoveNotificationListener(ObjectName arg0, ObjectName arg1, NotificationFilter arg2, object arg3)

Parameters

arg0 ObjectName

ObjectName

arg1 ObjectName

ObjectName

arg2 NotificationFilter

NotificationFilter

arg3 object

object

Exceptions

InstanceNotFoundException
ListenerNotFoundException

SetAttribute(ObjectName, Attribute)

public void SetAttribute(ObjectName arg0, Attribute arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 Attribute

Attribute

Exceptions

InstanceNotFoundException
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException

SetAttributes(ObjectName, AttributeList)

public AttributeList SetAttributes(ObjectName arg0, AttributeList arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 AttributeList

AttributeList

Returns

AttributeList

AttributeList

Exceptions

InstanceNotFoundException
ReflectionException

UnregisterMBean(ObjectName)

public void UnregisterMBean(ObjectName arg0)

Parameters

arg0 ObjectName

ObjectName

Exceptions

InstanceNotFoundException
MBeanRegistrationException