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