/** * <p>getObjectInstances</p> */ public void getObjectInstances() { for (InvokerService invokerService : getServices()) { Service service = invokerService.getService(); try { // find the mbean LOG.debug("finding mbean instance {}", service.getName()); ObjectName name = new ObjectName(service.getName()); invokerService.setMbean(getServer().getObjectInstance(name)); } catch (Throwable t) { LOG.error("An error occurred loading the mbean {} of type {} it will be skipped", service.getName(), service.getClassName(), t); invokerService.setBadThrowable(t); } } }
/** * Get the last pass for a set of InvokerServices. * * @param invokerServices list to look at * @return highest pass value found for all Invoke objects in the * invokerServices list */ private int getLastPass() { List<InvokerService> invokerServices = getServices(); int end = 0; for (InvokerService invokerService : invokerServices) { Invoke[] invokes = invokerService.getService().getInvoke(); if (invokes == null) { continue; } for (Invoke invoke : invokes) { if (invoke.getPass() > end) { end = invoke.getPass(); } } } return end; }
/** * Get the last pass for a set of InvokerServices. * * @param invokerServices list to look at * @return highest pass value found for all Invoke objects in the * invokerServices list */ private int getLastPass() { List<InvokerService> invokerServices = getServices(); int end = 0; for (final InvokerService invokerService : invokerServices) { final List<Invoke> invokes = invokerService.getService().getInvokes(); if (invokes == null) { continue; } for (final Invoke invoke : invokes) { if (invoke.getPass() > end) { end = invoke.getPass(); } } } return end; }
Service service = invokerService.getService(); String name = invokerService.getService().getName(); ObjectInstance mbean = invokerService.getMbean(); for (final Invoke invoke : invokerService.getService().getInvokes()) { if (invoke.getPass() != pass || !getAtType().equals(invoke.getAt())) { continue;
Service service = invokerService.getService(); try {
Service service = invokerService.getService(); String name = invokerService.getService().getName(); ObjectInstance mbean = invokerService.getMbean(); for (Invoke invoke : invokerService.getService().getInvoke()) { if (invoke.getPass() != pass || !getAtType().equals(invoke.getAt())) { continue;
/** * <p>getObjectInstances</p> */ public void getObjectInstances() { for (InvokerService invokerService : getServices()) { Service service = invokerService.getService(); try { // find the mbean if (log().isDebugEnabled()) { log().debug("finding mbean instance " + service.getName()); } ObjectName name = new ObjectName(service.getName()); invokerService.setMbean(getServer().getObjectInstance(name)); } catch (Throwable t) { log().error("An error occurred loading the mbean " + service.getName() + " of type " + service.getClassName() + " it will be skipped", t); invokerService.setBadThrowable(t); } } }
Service service = invokerService.getService(); try {