1 20 package fr.dyade.aaa.agent; 21 22 25 public class DeleteAck extends Notification { 26 27 public AgentId agent = null; 28 29 public static final int OK = 0; 30 public static final int DENIED = 1; 31 public static final int EXCEPTION = 2; 32 33 public int status = OK; 34 35 public Throwable exc; 36 37 public DeleteAck(AgentId agent) { 38 this.status = OK; 39 this.agent = agent; 40 } 41 42 public DeleteAck(AgentId agent, Throwable exc) { 43 this.status = EXCEPTION; 44 this.agent = agent; 45 this.exc = exc; 46 } 47 48 public DeleteAck(AgentId agent, int status) { 49 this.status = status; 50 this.agent = agent; 51 } 52 } 53 | Popular Tags |