1 23 24 package org.objectweb.clif.probe.system; 25 26 import org.objectweb.clif.storage.api.ProbeEvent; 27 import org.objectweb.clif.storage.api.AbstractEvent; 28 29 30 34 public class SystemEvent extends ProbeEvent 35 { 36 static public final String EVENT_TYPE_LABEL = "system"; 37 static private final String [] EVENT_FIELD_LABELS = new String [] { 38 "%CPU", 39 "%RAM", 40 "used swap", 41 "free swap" }; 42 43 44 static 45 { 46 AbstractEvent.registerEventFieldLabels(EVENT_TYPE_LABEL, EVENT_FIELD_LABELS); 47 } 48 49 50 static public String [] getFieldLabels() 51 { 52 return EVENT_FIELD_LABELS; 53 } 54 55 56 SystemEvent(long date, String probeId, long[] values) 57 { 58 super(date, probeId, values); 59 } 60 61 62 public String getTypeLabel() 63 { 64 return EVENT_TYPE_LABEL; 65 } 66 } 67 | Popular Tags |