blob: 52b623d14e4c59e1234a6d3fccb056b2578967a4 [file] [log] [blame]
Umesh Krishnaswamy345ee992012-12-13 20:29:48 -08001package net.floodlightcontroller.util;
2
3
4import org.codehaus.jackson.map.annotate.JsonSerialize;
5
Ray Milkey269ffb92014-04-03 14:43:30 -07006@JsonSerialize(using = EventHistoryBaseInfoJSONSerializer.class)
Umesh Krishnaswamy345ee992012-12-13 20:29:48 -08007public class EventHistoryBaseInfo {
Ray Milkey269ffb92014-04-03 14:43:30 -07008 public int idx;
9 public long time_ms; // timestamp in milliseconds
10 public EventHistory.EvState state;
11 public EventHistory.EvAction action;
Umesh Krishnaswamy345ee992012-12-13 20:29:48 -080012
13 // Getters
14 public int getIdx() {
15 return idx;
16 }
Ray Milkey269ffb92014-04-03 14:43:30 -070017
Umesh Krishnaswamy345ee992012-12-13 20:29:48 -080018 public long getTime_ms() {
19 return time_ms;
20 }
Ray Milkey269ffb92014-04-03 14:43:30 -070021
Umesh Krishnaswamy345ee992012-12-13 20:29:48 -080022 public EventHistory.EvState getState() {
23 return state;
24 }
Ray Milkey269ffb92014-04-03 14:43:30 -070025
Umesh Krishnaswamy345ee992012-12-13 20:29:48 -080026 public EventHistory.EvAction getAction() {
27 return action;
28 }
29}