1 31 package org.objectweb.proactive.core.event; 32 33 47 public class ProActiveEvent extends java.util.EventObject implements java.io.Serializable { 48 49 public static final int GENERIC_TYPE = -1; 50 51 52 protected int type; 53 54 55 protected long timeStamp; 56 57 58 63 public ProActiveEvent(Object obj, int type) { 64 super(obj); 65 this.timeStamp = System.currentTimeMillis(); 66 this.type = type; 67 } 68 69 70 74 public long getTimeStamp() { 75 return timeStamp; 76 } 77 78 82 public int getType() { 83 return type; 84 } 85 86 87 public String toString() { 88 return "ProActiveEvent@"+timeStamp+" type="+type; 89 } 90 91 } | Popular Tags |