Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 1 | package net.floodlightcontroller.util; |
| 2 | |
| 3 | |
| 4 | import org.codehaus.jackson.map.annotate.JsonSerialize; |
| 5 | |
| 6 | @JsonSerialize(using=EventHistoryBaseInfoJSONSerializer.class) |
| 7 | public class EventHistoryBaseInfo { |
| 8 | public int idx; |
| 9 | public long time_ms; // timestamp in milliseconds |
| 10 | public EventHistory.EvState state; |
| 11 | public EventHistory.EvAction action; |
| 12 | |
| 13 | // Getters |
| 14 | public int getIdx() { |
| 15 | return idx; |
| 16 | } |
| 17 | public long getTime_ms() { |
| 18 | return time_ms; |
| 19 | } |
| 20 | public EventHistory.EvState getState() { |
| 21 | return state; |
| 22 | } |
| 23 | public EventHistory.EvAction getAction() { |
| 24 | return action; |
| 25 | } |
| 26 | } |