Table of Contents

Class RMIConnection

Namespace
Javax.Management.Remote.Rmi
Assembly
MASES.JNet.dll
public class RMIConnection : JVMBridgeBase<RMIConnection>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IRMIConnection
Inheritance
JVMBridgeBase
JVMBridgeBase<RMIConnection>
RMIConnection
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeBase<RMIConnection>.IsAssignableFrom(IJavaType)
JVMBridgeBase<RMIConnection>.IsAssignableFrom<T>()
JVMBridgeBase<RMIConnection>.Execute<T>(params T[])
JVMBridgeBase<RMIConnection>.DynBridgeClazz
JVMBridgeBase<RMIConnection>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

RMIConnection()

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

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

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

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

ConnectionId

public String ConnectionId { get; }

Property Value

String

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

AddNotificationListener(ObjectName, ObjectName, MarshalledObject, MarshalledObject, Subject)

public void AddNotificationListener(ObjectName arg0, ObjectName arg1, MarshalledObject arg2, MarshalledObject arg3, Subject arg4)

Parameters

arg0 ObjectName

ObjectName

arg1 ObjectName

ObjectName

arg2 MarshalledObject

MarshalledObject

arg3 MarshalledObject

MarshalledObject

arg4 Subject

Subject

Exceptions

InstanceNotFoundException
IOException

AddNotificationListeners(ObjectName[], MarshalledObject[], Subject[])

public Integer[] AddNotificationListeners(ObjectName[] arg0, MarshalledObject[] arg1, Subject[] arg2)

Parameters

arg0 ObjectName[]

ObjectName

arg1 MarshalledObject[]

MarshalledObject

arg2 Subject[]

Subject

Returns

Integer[]

Integer

Exceptions

InstanceNotFoundException
IOException

Close()

public void Close()

Exceptions

IOException

CreateMBean(String, ObjectName, MarshalledObject, String[], Subject)

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

Parameters

arg0 String

String

arg1 ObjectName

ObjectName

arg2 MarshalledObject

MarshalledObject

arg3 String[]

String

arg4 Subject

Subject

Returns

ObjectInstance

ObjectInstance

Exceptions

ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
IOException

CreateMBean(String, ObjectName, ObjectName, MarshalledObject, String[], Subject)

public ObjectInstance CreateMBean(String arg0, ObjectName arg1, ObjectName arg2, MarshalledObject arg3, String[] arg4, Subject arg5)

Parameters

arg0 String

String

arg1 ObjectName

ObjectName

arg2 ObjectName

ObjectName

arg3 MarshalledObject

MarshalledObject

arg4 String[]

String

arg5 Subject

Subject

Returns

ObjectInstance

ObjectInstance

Exceptions

ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
IOException

CreateMBean(String, ObjectName, ObjectName, Subject)

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

Parameters

arg0 String

String

arg1 ObjectName

ObjectName

arg2 ObjectName

ObjectName

arg3 Subject

Subject

Returns

ObjectInstance

ObjectInstance

Exceptions

ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
IOException

CreateMBean(String, ObjectName, Subject)

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

Parameters

arg0 String

String

arg1 ObjectName

ObjectName

arg2 Subject

Subject

Returns

ObjectInstance

ObjectInstance

Exceptions

ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
IOException

FetchNotifications(long, int, long)

public NotificationResult FetchNotifications(long arg0, int arg1, long arg2)

Parameters

arg0 long

long

arg1 int

int

arg2 long

long

Returns

NotificationResult

NotificationResult

Exceptions

IOException

GetAttribute(ObjectName, String, Subject)

public object GetAttribute(ObjectName arg0, String arg1, Subject arg2)

Parameters

arg0 ObjectName

ObjectName

arg1 String

String

arg2 Subject

Subject

Returns

object

object

Exceptions

MBeanException
AttributeNotFoundException
InstanceNotFoundException
ReflectionException
IOException

GetAttributes(ObjectName, String[], Subject)

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

Parameters

arg0 ObjectName

ObjectName

arg1 String[]

String

arg2 Subject

Subject

Returns

AttributeList

AttributeList

Exceptions

InstanceNotFoundException
ReflectionException
IOException

GetDefaultDomain(Subject)

public String GetDefaultDomain(Subject arg0)

Parameters

arg0 Subject

Subject

Returns

String

String

Exceptions

IOException

GetDomains(Subject)

public String[] GetDomains(Subject arg0)

Parameters

arg0 Subject

Subject

Returns

String[]

String

Exceptions

IOException

GetMBeanCount(Subject)

public Integer GetMBeanCount(Subject arg0)

Parameters

arg0 Subject

Subject

Returns

Integer

Integer

Exceptions

IOException

GetMBeanInfo(ObjectName, Subject)

public MBeanInfo GetMBeanInfo(ObjectName arg0, Subject arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 Subject

Subject

Returns

MBeanInfo

MBeanInfo

Exceptions

InstanceNotFoundException
IntrospectionException
ReflectionException
IOException

GetObjectInstance(ObjectName, Subject)

public ObjectInstance GetObjectInstance(ObjectName arg0, Subject arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 Subject

Subject

Returns

ObjectInstance

ObjectInstance

Exceptions

InstanceNotFoundException
IOException

Invoke(ObjectName, String, MarshalledObject, String[], Subject)

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

Parameters

arg0 ObjectName

ObjectName

arg1 String

String

arg2 MarshalledObject

MarshalledObject

arg3 String[]

String

arg4 Subject

Subject

Returns

object

object

Exceptions

InstanceNotFoundException
MBeanException
ReflectionException
IOException

IsInstanceOf(ObjectName, String, Subject)

public bool IsInstanceOf(ObjectName arg0, String arg1, Subject arg2)

Parameters

arg0 ObjectName

ObjectName

arg1 String

String

arg2 Subject

Subject

Returns

bool

bool

Exceptions

InstanceNotFoundException
IOException

IsRegistered(ObjectName, Subject)

public bool IsRegistered(ObjectName arg0, Subject arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 Subject

Subject

Returns

bool

bool

Exceptions

IOException

QueryMBeans(ObjectName, MarshalledObject, Subject)

public Set<ObjectInstance> QueryMBeans(ObjectName arg0, MarshalledObject arg1, Subject arg2)

Parameters

arg0 ObjectName

ObjectName

arg1 MarshalledObject

MarshalledObject

arg2 Subject

Subject

Returns

Set<ObjectInstance>

Set

Exceptions

IOException

QueryNames(ObjectName, MarshalledObject, Subject)

public Set<ObjectName> QueryNames(ObjectName arg0, MarshalledObject arg1, Subject arg2)

Parameters

arg0 ObjectName

ObjectName

arg1 MarshalledObject

MarshalledObject

arg2 Subject

Subject

Returns

Set<ObjectName>

Set

Exceptions

IOException

RemoveNotificationListener(ObjectName, ObjectName, MarshalledObject, MarshalledObject, Subject)

public void RemoveNotificationListener(ObjectName arg0, ObjectName arg1, MarshalledObject arg2, MarshalledObject arg3, Subject arg4)

Parameters

arg0 ObjectName

ObjectName

arg1 ObjectName

ObjectName

arg2 MarshalledObject

MarshalledObject

arg3 MarshalledObject

MarshalledObject

arg4 Subject

Subject

Exceptions

InstanceNotFoundException
ListenerNotFoundException
IOException

RemoveNotificationListener(ObjectName, ObjectName, Subject)

public void RemoveNotificationListener(ObjectName arg0, ObjectName arg1, Subject arg2)

Parameters

arg0 ObjectName

ObjectName

arg1 ObjectName

ObjectName

arg2 Subject

Subject

Exceptions

InstanceNotFoundException
ListenerNotFoundException
IOException

RemoveNotificationListeners(ObjectName, Integer[], Subject)

public void RemoveNotificationListeners(ObjectName arg0, Integer[] arg1, Subject arg2)

Parameters

arg0 ObjectName

ObjectName

arg1 Integer[]

Integer

arg2 Subject

Subject

Exceptions

InstanceNotFoundException
ListenerNotFoundException
IOException

SetAttribute(ObjectName, MarshalledObject, Subject)

public void SetAttribute(ObjectName arg0, MarshalledObject arg1, Subject arg2)

Parameters

arg0 ObjectName

ObjectName

arg1 MarshalledObject

MarshalledObject

arg2 Subject

Subject

Exceptions

InstanceNotFoundException
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
IOException

SetAttributes(ObjectName, MarshalledObject, Subject)

public AttributeList SetAttributes(ObjectName arg0, MarshalledObject arg1, Subject arg2)

Parameters

arg0 ObjectName

ObjectName

arg1 MarshalledObject

MarshalledObject

arg2 Subject

Subject

Returns

AttributeList

AttributeList

Exceptions

InstanceNotFoundException
ReflectionException
IOException

UnregisterMBean(ObjectName, Subject)

public void UnregisterMBean(ObjectName arg0, Subject arg1)

Parameters

arg0 ObjectName

ObjectName

arg1 Subject

Subject

Exceptions

InstanceNotFoundException
MBeanRegistrationException
IOException

Operators

implicit operator Closeable(RMIConnection)

Converter from RMIConnection to Closeable

public static implicit operator Closeable(RMIConnection t)

Parameters

t RMIConnection

Returns

Closeable

implicit operator Remote(RMIConnection)

Converter from RMIConnection to Remote

public static implicit operator Remote(RMIConnection t)

Parameters

t RMIConnection

Returns

Remote