01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999-2005 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * 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 7791 2005-12-13 21:18:02Z moghrabi $
24: * --------------------------------------------------------------------------
25: */package org.objectweb.alarm.beans;
26:
27: import java.rmi.RemoteException;
28:
29: import javax.ejb.EJBObject;
30:
31: /**
32: * AlarmRecord remote interface
33: */
34: public interface AlarmRecord extends EJBObject {
35:
36: /**
37: * Update the record
38: * @param s severity level
39: * @throws RemoteException if remote call failed
40: */
41: void update(int s) throws RemoteException;
42:
43: /**
44: * @throws RemoteException if remote call failed
45: */
46: void forget() throws RemoteException;
47:
48: /**
49: * @throws RemoteException if remote call failed
50: */
51: void setProcessed() throws RemoteException;
52:
53: /**
54: * @return the sender
55: * @throws RemoteException if remote call failed
56: */
57: String getFrom() throws RemoteException;
58:
59: /**
60: * @return the severity level
61: * @throws RemoteException if remote call failed
62: */
63: int getSeverity() throws RemoteException;
64:
65: /**
66: * @return the number of messages
67: * @throws RemoteException if remote call failed
68: */
69: int getCount() throws RemoteException;
70:
71: /**
72: * @return number of alarms
73: * @throws RemoteException if remote call failed
74: */
75: int getAlarmCount() throws RemoteException;
76:
77: /**
78: * @return the new ident
79: * @throws RemoteException if remote call failed
80: */
81: int getNewIdent() throws RemoteException;
82:
83: /**
84: * @return the data
85: * @throws RemoteException if remote call failed
86: */
87: AlarmData getAlarmData() throws RemoteException;
88: }
|