R
- return type for the execute methodpublic static interface MBeanServerExecutor.MBeanAction<R>
InstanceNotFoundException
or AttributeNotFoundException
if the object name or attribute
is not contained in the give MBeanServer. In this case the next MBeanServer is tried, otherwise the result
from the action is returned and no other MBeanServers are triedModifier and Type | Method and Description |
---|---|
R |
execute(MBeanServerConnection pConn,
ObjectName pName,
Object... extraArgs)
Execute the action given to
MBeanServerExecutor.call(ObjectName, MBeanAction, Object...) . |
R execute(MBeanServerConnection pConn, ObjectName pName, Object... extraArgs) throws ReflectionException, InstanceNotFoundException, IOException, MBeanException, AttributeNotFoundException
MBeanServerExecutor.call(ObjectName, MBeanAction, Object...)
.pConn
- MBeanServer on which the action should be performedpName
- an objectname interpreted specifically by the actionextraArgs
- any extra args given as context from the outsideReflectionException
InstanceNotFoundException
- if the MBean does not exist. For MBeanServerExecutor.call(ObjectName, MBeanAction, Object...)
this
implies to try the next MBeanServer.IOException
MBeanException
AttributeNotFoundException
- if an attribute is read, this exception indicates, that the attribute is not
known to the MBean specified (although the MBean has been found in the MBeanServer)Copyright © 2017. All rights reserved.