On Tuesday, March 8, 2016 10:21 AM, "[email protected]" <[email protected]>
wrote:
>
> StringBuffer sbuf = new StringBuffer();
>- sbuf.append("*:interface=");
>+ sbuf.append("*:alias=*");
>+ sbuf.append(",interface=");
> sbuf.append(ObjectName.quote("quarks.execution.mbeans.JobMXBean"));
> sbuf.append(",type=");
> sbuf.append(ObjectName.quote("job"));
Looking at the docs for ObjectName I think the pattern could be more robust to
changes by just looking for the keys that you need to find a job, rather than
every key that might be in the name. E.g. see this example from the javadoc:
d:type=Foo,name=Bar,* to match names in the domain d that have the keys
type=Foo,name=Bar plus zero or more other keys.
Dan.