Issue #2727 - Revisit JMX MBean lookup behavior.
Fixed invoke() lookup. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
87aba86d74
commit
92e70f2c84
|
@ -9,4 +9,4 @@
|
|||
#org.eclipse.jetty.server.LEVEL=DEBUG
|
||||
#org.eclipse.jetty.servlets.LEVEL=DEBUG
|
||||
#org.eclipse.jetty.alpn.LEVEL=DEBUG
|
||||
org.eclipse.jetty.jmx.LEVEL=DEBUG
|
||||
#org.eclipse.jetty.jmx.LEVEL=DEBUG
|
||||
|
|
|
@ -164,7 +164,6 @@ public class MBeanContainer implements Container.InheritedListener, Dumpable, De
|
|||
LOG.debug(" {}", a);
|
||||
for (Object a : info.getOperations())
|
||||
LOG.debug(" {}", a);
|
||||
|
||||
}
|
||||
}
|
||||
return mbean;
|
||||
|
|
|
@ -154,18 +154,26 @@ class MetaData
|
|||
|
||||
private OperationInfo findOperation(String signature)
|
||||
{
|
||||
OperationInfo result = _operations.get(signature);
|
||||
if (result != null)
|
||||
return result;
|
||||
OperationInfo result = null;
|
||||
for (MetaData intf : _interfaces)
|
||||
{
|
||||
result = intf.findOperation(signature);
|
||||
if (result != null)
|
||||
return result;
|
||||
OperationInfo r = intf.findOperation(signature);
|
||||
if (r != null)
|
||||
result = r;
|
||||
}
|
||||
|
||||
if (_parent != null)
|
||||
return _parent.findOperation(signature);
|
||||
return null;
|
||||
{
|
||||
OperationInfo r = _parent.findOperation(signature);
|
||||
if (r != null)
|
||||
result = r;
|
||||
}
|
||||
|
||||
OperationInfo r = _operations.get(signature);
|
||||
if (r != null)
|
||||
result = r;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
private static Object newInstance(Constructor<?> constructor, Object bean)
|
||||
|
|
|
@ -226,7 +226,7 @@ public abstract class AbstractConnector extends ContainerLifeCycle implements Co
|
|||
}
|
||||
|
||||
@Override
|
||||
@ManagedAttribute
|
||||
@ManagedAttribute("The connection idle timeout in milliseconds")
|
||||
public long getIdleTimeout()
|
||||
{
|
||||
return _idleTimeout;
|
||||
|
|
Loading…
Reference in New Issue