KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > dyade > aaa > agent > DeleteAck


1 /*
2  * Copyright (C) 1996 - 2000 BULL
3  * Copyright (C) 1996 - 2000 INRIA
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18  * USA.
19  */

20 package fr.dyade.aaa.agent;
21
22 /**
23  * DeleteAck - Acknowledge for deleting an agent
24  */

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 JavaDoc exc;
36
37   public DeleteAck(AgentId agent) {
38     this.status = OK;
39     this.agent = agent;
40   }
41
42   public DeleteAck(AgentId agent, Throwable JavaDoc 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