mbknor/ddsl — Issue #2: Feature request: filters in listeners on certain DDSL-Zookeper events
Author: xasima
Created: 2012-01-11 10:34:14+00:00
State: open

Please add some filtering in listeners to be able to subscribe on Enter/Leave Group Events only for certain types of services.

```java
/* Provide matcher assignment based on individual parameters
( env, type, name, version, ip, port),
each of them can include primitive regexp or just * sign */
ddsl.matcher("env","type", "name", "ip", "port").subscribe(....);

/* Please subscribe listener on ENTER and LEAVE Events only
for akka actors in app environment, registered with name
/user/serviceA/retrieval on any ip in range 10.151.18.* (regexp) and
any port */
ddsl.matcher("app","akka", "/user/serviceA/retrieval", "10.151.18.*", "*").
with(ENTER_GROUP_EVENT, LEAVE_GROUP_EVENT).subscribe(listener);
```

Provide matcher assignment based on akka 2.0 based location string

```java
/* Provide matcher assignment based on akka 2.0 based location string */
ddsl.matcher("akka://app@10.151.18.*:*/user/serviceA/retrieval").subscribe(...);
```