Esempio n. 1
0
        public void pushCounter(Counter counter)
        {
            IPluginWriter pluginWriter;

            switch (counter.Name())
            {
                default:
                    pluginWriter = new DefaultPluginWriter();
                    break;
            }

            pluginWriter.pushChunk(counter);
        }
Esempio n. 2
0
        public void pushChunk(Counter counter)
        {
            packeteer.pushString(2, counter.Name());
            packeteer.pushString(3, counter.Object().InstanceName);
            packeteer.pushString(4, counter.Name());
            packeteer.pushString(5, counter.Object().CounterName);

            List<ValuePacket> values = new List<ValuePacket>();
            ValuePacket data;

            data.datatype = 0;
            data.value = (ulong)counter.Object().NextValue(); // DANGER:  need to handle this (float->int truncate)

            values.Add(data);

            packeteer.pushValue(values);
        }
Esempio n. 3
0
 public void addCounter(Counter counter)
 {
     _counters.Add(counter);
 }
 public void pushChunk(Counter counter)
 {
 }