/** * Return the set of defined filters for this Context. */ public String[] findFilterDefs() throws MBeanException { Context context; try { context = (Context)getManagedResource(); } catch (InstanceNotFoundException e) { throw new MBeanException(e); } catch (RuntimeOperationsException e) { throw new MBeanException(e); } catch (InvalidTargetObjectTypeException e) { throw new MBeanException(e); } FilterDef[] filterDefs = context.findFilterDefs(); String[] stringFilters = new String[filterDefs.length]; for(int counter=0; counter < filterDefs.length; counter++){ stringFilters[counter]=filterDefs[counter].toString(); } return stringFilters; }
/** * Return the filter definition for the specified filter name, if any; * otherwise return <code>null</code>. * * @param name Filter name to look up */ public String findFilterDef(String name) throws MBeanException { Context context; try { context = (Context)getManagedResource(); } catch (InstanceNotFoundException e) { throw new MBeanException(e); } catch (RuntimeOperationsException e) { throw new MBeanException(e); } catch (InvalidTargetObjectTypeException e) { throw new MBeanException(e); } FilterDef filterDef = context.findFilterDef(name); return filterDef.toString(); }
/** * Return the filter definition for the specified filter name, if any; * otherwise return <code>null</code>. * * @param name Filter name to look up */ public String findFilterDef(String name) throws MBeanException { Context context; try { context = (Context)getManagedResource(); } catch (InstanceNotFoundException e) { throw new MBeanException(e); } catch (RuntimeOperationsException e) { throw new MBeanException(e); } catch (InvalidTargetObjectTypeException e) { throw new MBeanException(e); } FilterDef filterDef = context.findFilterDef(name); return filterDef.toString(); }
/** * Return the filter definition for the specified filter name, if any; * otherwise return <code>null</code>. * * @param name Filter name to look up */ public String findFilterDef(String name) throws MBeanException { Context context; try { context = (Context)getManagedResource(); } catch (InstanceNotFoundException e) { throw new MBeanException(e); } catch (RuntimeOperationsException e) { throw new MBeanException(e); } catch (InvalidTargetObjectTypeException e) { throw new MBeanException(e); } FilterDef filterDef = context.findFilterDef(name); return filterDef.toString(); }
/** * Return the filter definition for the specified filter name, if any; * otherwise return <code>null</code>. * * @param name Filter name to look up */ public String findFilterDef(String name) throws MBeanException { Context context; try { context = (Context)getManagedResource(); } catch (InstanceNotFoundException e) { throw new MBeanException(e); } catch (RuntimeOperationsException e) { throw new MBeanException(e); } catch (InvalidTargetObjectTypeException e) { throw new MBeanException(e); } FilterDef filterDef = context.findFilterDef(name); return filterDef.toString(); }
/** * Return the filter definition for the specified filter name, if any; * otherwise return <code>null</code>. * * @param name Filter name to look up */ public String findFilterDef(String name) throws MBeanException { Context context; try { context = (Context)getManagedResource(); } catch (InstanceNotFoundException e) { throw new MBeanException(e); } catch (RuntimeOperationsException e) { throw new MBeanException(e); } catch (InvalidTargetObjectTypeException e) { throw new MBeanException(e); } FilterDef filterDef = context.findFilterDef(name); return filterDef.toString(); }