Returns the MBean Names of the Valves associated with this Host. @return the MBean Names of the Valves @exception Exception if an MBean cannot be created or registered
()
| 804 | * @exception Exception if an MBean cannot be created or registered |
| 805 | */ |
| 806 | public String[] getValveNames() throws Exception { |
| 807 | Valve[] valves = this.getPipeline().getValves(); |
| 808 | String[] mbeanNames = new String[valves.length]; |
| 809 | for (int i = 0; i < valves.length; i++) { |
| 810 | if (valves[i] instanceof JmxEnabled) { |
| 811 | ObjectName oname = ((JmxEnabled) valves[i]).getObjectName(); |
| 812 | if (oname != null) { |
| 813 | mbeanNames[i] = oname.toString(); |
| 814 | } |
| 815 | } |
| 816 | } |
| 817 | |
| 818 | return mbeanNames; |
| 819 | } |
| 820 | |
| 821 | /** |
| 822 | * Returns the array of aliases for this host. |
nothing calls this directly
no test coverage detected