KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > alarm > beans > AlarmRecord


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999-2004 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * Initial developer: JOnAS Team
22  * --------------------------------------------------------------------------
23  * $Id: AlarmRecord.java,v 1.3 2004/04/09 12:56:41 benoitf Exp $
24  * --------------------------------------------------------------------------
25  */

26
27 package org.objectweb.alarm.beans;
28
29 import java.rmi.RemoteException JavaDoc;
30
31 import javax.ejb.EJBObject JavaDoc;
32
33 /**
34  * AlarmRecord remote interface
35  */

36 public interface AlarmRecord extends EJBObject JavaDoc {
37
38     /**
39      * Update the record
40      * @param s severity level
41      * @throws RemoteException if remote call failed
42      */

43     void update(int s) throws RemoteException JavaDoc;
44
45     /**
46      * @throws RemoteException if remote call failed
47      */

48     void forget() throws RemoteException JavaDoc;
49
50     /**
51      * @throws RemoteException if remote call failed
52      */

53     void setProcessed() throws RemoteException JavaDoc;
54
55     /**
56      * @return the sender
57      * @throws RemoteException if remote call failed
58      */

59     String JavaDoc getFrom() throws RemoteException JavaDoc;
60
61     /**
62      * @return the severity level
63      * @throws RemoteException if remote call failed
64      */

65     int getSeverity() throws RemoteException JavaDoc;
66
67     /**
68      * @return the number of messages
69      * @throws RemoteException if remote call failed
70      */

71     int getCount() throws RemoteException JavaDoc;
72
73     /**
74      * @return number of alarms
75      * @throws RemoteException if remote call failed
76      */

77     int getAlarmCount() throws RemoteException JavaDoc;
78
79     /**
80      * @return the new ident
81      * @throws RemoteException if remote call failed
82      */

83     int getNewIdent() throws RemoteException JavaDoc;
84
85     /**
86      * @return the data
87      * @throws RemoteException if remote call failed
88      */

89     AlarmData getAlarmData() throws RemoteException JavaDoc;
90 }
Popular Tags