This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.management.remote.rmi
class RMIConnectionImpl
- All Implemented Interfaces:
- Unreferenced, RMIConnection
public class RMIConnectionImpl
extends Object
implements RMIConnection, Unreferenced
Implementation of the {@link RMIConnection} interface. User
code will not usually reference this class.
Constructor Summary |
Constructs a new javax.management.remote.rmi.RMIConnection.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RMIConnectionImpl
public RMIConnectionImpl(RMIServerImpl rmiServer,
String connectionId,
ClassLoader defaultClassLoader,
Subject subject,
Map env)
-
Constructs a new {@link RMIConnection}. This connection can be
used with either the JRMP or IIOP transport. This object does
not export itself: it is the responsibility of the caller to
export it appropriately (see {@link
RMIJRMPServerImpl#makeClient(String,Subject)} and {@link
RMIIIOPServerImpl#makeClient(String,Subject)}.
- Parameters:
rmiServer
- The RMIServerImpl object for which this
connection is created. The behavior is unspecified if this
parameter is null.
connectionId
- The ID for this connection. The behavior
is unspecified if this parameter is null.
defaultClassLoader
- The default ClassLoader to be used
when deserializing marshalled objects. Can be null, to signify
the bootstrap class loader.
subject
- the authenticated subject to be used for
authorization. Can be null, to signify that no subject has
been authenticated.
env
- the environment containing attributes for the new
RMIServerImpl
. Can be null, equivalent to an
empty map.
addNotificationListener
public void addNotificationListener(ObjectName name,
ObjectName listener,
MarshalledObject filter,
MarshalledObject handback,
Subject delegationSubject)
throws InstanceNotFoundException,
IOException
-
- Parameters:
name
listener
filter
handback
delegationSubject
- Throws:
InstanceNotFoundException
IOException
addNotificationListeners
public Integer[] addNotificationListeners(ObjectName[] names,
MarshalledObject[] filters,
Subject[] delegationSubjects)
throws InstanceNotFoundException,
IOException
-
- Parameters:
names
filters
delegationSubjects
- Throws:
InstanceNotFoundException
IOException
close
public void close()
throws IOException
-
- Throws:
IOException
createMBean
public ObjectInstance createMBean(String className,
ObjectName name,
MarshalledObject params,
String[] signature,
Subject delegationSubject)
throws ReflectionException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
MBeanException,
NotCompliantMBeanException,
IOException
-
- Parameters:
className
name
params
signature
delegationSubject
- Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
IOException
createMBean
public ObjectInstance createMBean(String className,
ObjectName name,
ObjectName loaderName,
MarshalledObject params,
String[] signature,
Subject delegationSubject)
throws ReflectionException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
MBeanException,
NotCompliantMBeanException,
InstanceNotFoundException,
IOException
-
- Parameters:
className
name
loaderName
params
signature
delegationSubject
- Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
IOException
createMBean
public ObjectInstance createMBean(String className,
ObjectName name,
ObjectName loaderName,
Subject delegationSubject)
throws ReflectionException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
MBeanException,
NotCompliantMBeanException,
InstanceNotFoundException,
IOException
-
- Parameters:
className
name
loaderName
delegationSubject
- Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
InstanceNotFoundException
IOException
createMBean
public ObjectInstance createMBean(String className,
ObjectName name,
Subject delegationSubject)
throws ReflectionException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
MBeanException,
NotCompliantMBeanException,
IOException
-
- Parameters:
className
name
delegationSubject
- Throws:
ReflectionException
InstanceAlreadyExistsException
MBeanRegistrationException
MBeanException
NotCompliantMBeanException
IOException
fetchNotifications
public NotificationResult fetchNotifications(long clientSequenceNumber,
int maxNotifications,
long timeout)
throws IOException
-
- Parameters:
clientSequenceNumber
maxNotifications
timeout
- Throws:
IOException
getAttribute
public Object getAttribute(ObjectName name,
String attribute,
Subject delegationSubject)
throws MBeanException,
AttributeNotFoundException,
InstanceNotFoundException,
ReflectionException,
IOException
-
- Parameters:
name
attribute
delegationSubject
- Throws:
MBeanException
AttributeNotFoundException
InstanceNotFoundException
ReflectionException
IOException
getAttributes
public AttributeList getAttributes(ObjectName name,
String[] attributes,
Subject delegationSubject)
throws InstanceNotFoundException,
ReflectionException,
IOException
-
- Parameters:
name
attributes
delegationSubject
- Throws:
InstanceNotFoundException
ReflectionException
IOException
getConnectionId
public String getConnectionId()
throws IOException
-
- Throws:
IOException
getDefaultDomain
public String getDefaultDomain(Subject delegationSubject)
throws IOException
-
- Parameters:
delegationSubject
- Throws:
IOException
getDomains
public String[] getDomains(Subject delegationSubject)
throws IOException
-
- Parameters:
delegationSubject
- Throws:
IOException
getMBeanCount
public Integer getMBeanCount(Subject delegationSubject)
throws IOException
-
- Parameters:
delegationSubject
- Throws:
IOException
getMBeanInfo
public MBeanInfo getMBeanInfo(ObjectName name,
Subject delegationSubject)
throws InstanceNotFoundException,
IntrospectionException,
ReflectionException,
IOException
-
- Parameters:
name
delegationSubject
- Throws:
InstanceNotFoundException
IntrospectionException
ReflectionException
IOException
getObjectInstance
public ObjectInstance getObjectInstance(ObjectName name,
Subject delegationSubject)
throws InstanceNotFoundException,
IOException
-
- Parameters:
name
delegationSubject
- Throws:
InstanceNotFoundException
IOException
invoke
public Object invoke(ObjectName name,
String operationName,
MarshalledObject params,
String[] signature,
Subject delegationSubject)
throws InstanceNotFoundException,
MBeanException,
ReflectionException,
IOException
-
- Parameters:
name
operationName
params
signature
delegationSubject
- Throws:
InstanceNotFoundException
MBeanException
ReflectionException
IOException
isInstanceOf
public boolean isInstanceOf(ObjectName name,
String className,
Subject delegationSubject)
throws InstanceNotFoundException,
IOException
-
- Parameters:
name
className
delegationSubject
- Throws:
InstanceNotFoundException
IOException
isRegistered
public boolean isRegistered(ObjectName name,
Subject delegationSubject)
throws IOException
-
- Parameters:
name
delegationSubject
- Throws:
IOException
queryMBeans
public Set queryMBeans(ObjectName name,
MarshalledObject query,
Subject delegationSubject)
throws IOException
-
- Parameters:
name
query
delegationSubject
- Throws:
IOException
queryNames
public Set queryNames(ObjectName name,
MarshalledObject query,
Subject delegationSubject)
throws IOException
-
- Parameters:
name
query
delegationSubject
- Throws:
IOException
removeNotificationListener
public void removeNotificationListener(ObjectName name,
ObjectName listener,
MarshalledObject filter,
MarshalledObject handback,
Subject delegationSubject)
throws InstanceNotFoundException,
ListenerNotFoundException,
IOException
-
- Parameters:
name
listener
filter
handback
delegationSubject
- Throws:
InstanceNotFoundException
ListenerNotFoundException
IOException
removeNotificationListener
public void removeNotificationListener(ObjectName name,
ObjectName listener,
Subject delegationSubject)
throws InstanceNotFoundException,
ListenerNotFoundException,
IOException
-
- Parameters:
name
listener
delegationSubject
- Throws:
InstanceNotFoundException
ListenerNotFoundException
IOException
removeNotificationListeners
public void removeNotificationListeners(ObjectName name,
Integer[] listenerIDs,
Subject delegationSubject)
throws InstanceNotFoundException,
ListenerNotFoundException,
IOException
-
- Parameters:
name
listenerIDs
delegationSubject
- Throws:
InstanceNotFoundException
ListenerNotFoundException
IOException
setAttribute
public void setAttribute(ObjectName name,
MarshalledObject attribute,
Subject delegationSubject)
throws InstanceNotFoundException,
AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException,
IOException
-
- Parameters:
name
attribute
delegationSubject
- Throws:
InstanceNotFoundException
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
IOException
setAttributes
public AttributeList setAttributes(ObjectName name,
MarshalledObject attributes,
Subject delegationSubject)
throws InstanceNotFoundException,
ReflectionException,
IOException
-
- Parameters:
name
attributes
delegationSubject
- Throws:
InstanceNotFoundException
ReflectionException
IOException
toString
public String toString()
-
Returns a string representation of this object. In general,
the toString
method returns a string that
"textually represents" this object. The result should be a
concise but informative representation that is easy for a
person to read.
- Overrides:
toString
in class Object
- Returns:
- a String representation of this object.
unreferenced
public void unreferenced()
-
unregisterMBean
public void unregisterMBean(ObjectName name,
Subject delegationSubject)
throws InstanceNotFoundException,
MBeanRegistrationException,
IOException
-
- Parameters:
name
delegationSubject
- Throws:
InstanceNotFoundException
MBeanRegistrationException
IOException
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.