Table of Contents

Class MBeanServerConnection

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

Constructors

MBeanServerConnection()

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

[Obsolete("MBeanServerConnection 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 MBeanServerConnection()

MBeanServerConnection(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("MBeanServerConnection 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 MBeanServerConnection(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

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
IOException

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
IOException

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
IOException

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
IOException

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
IOException

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
IOException

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
IOException

GetAttributes(ObjectName, String[])

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

Parameters

arg0 ObjectName

ObjectName

arg1 String[]

String

Returns

AttributeList

AttributeList

Exceptions

InstanceNotFoundException
ReflectionException
IOException

GetMBeanInfo(ObjectName)

public MBeanInfo GetMBeanInfo(ObjectName arg0)

Parameters

arg0 ObjectName

ObjectName

Returns

MBeanInfo

MBeanInfo

Exceptions

InstanceNotFoundException
IntrospectionException
ReflectionException
IOException

GetObjectInstance(ObjectName)

public ObjectInstance GetObjectInstance(ObjectName arg0)

Parameters

arg0 ObjectName

ObjectName

Returns

ObjectInstance

ObjectInstance

Exceptions

InstanceNotFoundException
IOException

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
IOException

IsInstanceOf(ObjectName, String)

public bool IsInstanceOf(ObjectName arg0, String arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 String

String

Returns

bool

bool

Exceptions

InstanceNotFoundException
IOException

IsRegistered(ObjectName)

public bool IsRegistered(ObjectName arg0)

Parameters

arg0 ObjectName

ObjectName

Returns

bool

bool

Exceptions

IOException

QueryMBeans(ObjectName, QueryExp)

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

Parameters

arg0 ObjectName

ObjectName

arg1 QueryExp

QueryExp

Returns

Set<ObjectInstance>

Set

Exceptions

IOException

QueryNames(ObjectName, QueryExp)

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

Parameters

arg0 ObjectName

ObjectName

arg1 QueryExp

QueryExp

Returns

Set<ObjectName>

Set

Exceptions

IOException

RemoveNotificationListener(ObjectName, NotificationListener)

public void RemoveNotificationListener(ObjectName arg0, NotificationListener arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 NotificationListener

NotificationListener

Exceptions

InstanceNotFoundException
ListenerNotFoundException
IOException

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
IOException

RemoveNotificationListener(ObjectName, ObjectName)

public void RemoveNotificationListener(ObjectName arg0, ObjectName arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 ObjectName

ObjectName

Exceptions

InstanceNotFoundException
ListenerNotFoundException
IOException

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
IOException

SetAttribute(ObjectName, Attribute)

public void SetAttribute(ObjectName arg0, Attribute arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 Attribute

Attribute

Exceptions

InstanceNotFoundException
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
IOException

SetAttributes(ObjectName, AttributeList)

public AttributeList SetAttributes(ObjectName arg0, AttributeList arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 AttributeList

AttributeList

Returns

AttributeList

AttributeList

Exceptions

InstanceNotFoundException
ReflectionException
IOException

UnregisterMBean(ObjectName)

public void UnregisterMBean(ObjectName arg0)

Parameters

arg0 ObjectName

ObjectName

Exceptions

InstanceNotFoundException
MBeanRegistrationException
IOException