Commit Graph

7 Commits

Author SHA1 Message Date
R. Tyler Croy dfbb26399d
Experimenting with observing ChildData and turning into a stream of Brokers 2015-09-04 15:24:35 -07:00
R. Tyler Croy f1a539541d
Convert PathCacheObservable experiment to use code refactored into rx-curator 2015-09-04 13:20:19 -07:00
R. Tyler Croy 4eee010938
Add a simple PathChildrenCache experiment trying to tie Curator into RxJava
Running this against a running Kafka results in:

    9:14:42 AM: Executing external task 'runExperiment -t -PexperimentClass=rx.curator.PathCacheObservable'...
    :compileJava UP-TO-DATE
    :compileGroovy UP-TO-DATE
    :processResources UP-TO-DATE
    :classes UP-TO-DATE
    :compileExperimentsJava UP-TO-DATE
    :compileExperimentsGroovy
    :processExperimentsResources UP-TO-DATE
    :experimentsClasses
    :compileTestJava UP-TO-DATE
    :compileTestGroovy UP-TO-DATE
    :processTestResources UP-TO-DATE
    :testClasses UP-TO-DATE
    :test UP-TO-DATE
    :runExperiment
    Starting PatchCacheObservable experiment
    log4j:WARN No appenders could be found for logger (org.apache.curator.framework.imps.CuratorFrameworkImpl).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
    Starting dataset: []
    heard PathChildrenCacheEvent{type=CHILD_ADDED, data=ChildData{path='/brokers/topics', stat=4294967331,4294967331,1412043135590,1412043135590,0,27,0,0,0,27,824641831943
    , data=null}} from org.apache.curator.framework.imps.CuratorFrameworkImpl@5eb30746
    received: PathChildrenCacheEvent{type=CHILD_ADDED, data=ChildData{path='/brokers/topics', stat=4294967331,4294967331,1412043135590,1412043135590,0,27,0,0,0,27,824641831943
    , data=null}}
    heard PathChildrenCacheEvent{type=CHILD_ADDED, data=ChildData{path='/brokers/ids', stat=4294967330,4294967330,1412043135586,1412043135586,0,135,0,0,0,3,824659713847
    , data=null}} from org.apache.curator.framework.imps.CuratorFrameworkImpl@5eb30746
    received: PathChildrenCacheEvent{type=CHILD_ADDED, data=ChildData{path='/brokers/ids', stat=4294967330,4294967330,1412043135586,1412043135586,0,135,0,0,0,3,824659713847
    , data=null}}
    heard PathChildrenCacheEvent{type=INITIALIZED, data=null} from org.apache.curator.framework.imps.CuratorFrameworkImpl@5eb30746
    complete
    Final data: [ChildData{path='/brokers/ids', stat=4294967330,4294967330,1412043135586,1412043135586,0,135,0,0,0,3,824659713847
    , data=null}, ChildData{path='/brokers/topics', stat=4294967331,4294967331,1412043135590,1412043135590,0,27,0,0,0,27,824641831943
    , data=null}]

    BUILD SUCCESSFUL

    Total time: 9.821 secs

This doesn't really result in much interesting other than the events being sent
along to the subscriber properly, which I suppose is neat
2015-09-04 09:15:42 -07:00
R. Tyler Croy 7e2d1691ca
Checkpoint some experimenting with a BrokerMonitor
Still figuring out how to map the PathCache concept from Curator into RxJava
observables
2015-09-04 08:01:12 -07:00
R. Tyler Croy 0819fc3857
Add brokerId to the Broker pojo 2015-09-02 12:39:49 -07:00
R. Tyler Croy 3f6601b18c
Add a Broker pojo 2015-09-02 11:48:03 -07:00
R. Tyler Croy d6aac679b5
Borrow TopicPartition from Verspaetung
See https://github.com/lookout/verspaetung
2015-09-02 11:26:38 -07:00