Package org.apache.sirona.store.status

Examples of org.apache.sirona.store.status.NodeStatusDataStore


            addGauge(new ActiveThreadGauge());
        }
    }

    private static NodeStatusDataStore findStatusDataStore() {
        NodeStatusDataStore status = null;
        try {
            status = IoCs.findOrCreateInstance(NodeStatusDataStore.class);
        } catch (final SironaException e) {
            // no-op
        }
View Full Code Here


            }
            this.counterDataStore = CollectorCounterStore.class.cast(cds);
        }

        {
            final NodeStatusDataStore nds = IoCs.findOrCreateInstance(CollectorNodeStatusDataStore.class);
            if (!CollectorNodeStatusDataStore.class.isInstance(nds)) {
                throw new IllegalStateException("Collector only works with " + CollectorNodeStatusDataStore.class.getName());
            }
            this.statusDataStore = CollectorNodeStatusDataStore.class.cast(nds);
        }
View Full Code Here

                    .build());
            }
            doPost(events2);
        }

        final NodeStatusDataStore store = IoCs.getInstance(CollectorNodeStatusDataStore.class);
        final Map<String,NodeStatus> statuses = store.statuses();
        assertEquals(2, statuses.size());
        assertEquals(Status.OK, statuses.get("node1").getStatus());
        assertEquals(1, statuses.get("node1").getResults().length);
        assertEquals(Status.KO, statuses.get("node2").getStatus());
        assertEquals(1, statuses.get("node2").getResults().length);
View Full Code Here

            }
            this.counterDataStore = CollectorCounterStore.class.cast(cds);
        }

        {
            final NodeStatusDataStore nds = IoCs.findOrCreateInstance(CollectorNodeStatusDataStore.class);
            if (!CollectorNodeStatusDataStore.class.isInstance(nds)) {
                throw new IllegalStateException("Collector only works with " + CollectorNodeStatusDataStore.class.getName());
            }
            this.statusDataStore = CollectorNodeStatusDataStore.class.cast(nds);
        }
View Full Code Here

            addGauge(new ActiveThreadGauge());
        }
    }

    private static NodeStatusDataStore findStatusDataStore() {
        NodeStatusDataStore status = null;
        try {
            status = IoCs.findOrCreateInstance(NodeStatusDataStore.class);
        } catch (final SironaException e) {
            // no-op
        }
View Full Code Here

TOP

Related Classes of org.apache.sirona.store.status.NodeStatusDataStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.