01: /**
02: *
03: */package clime.messadmin.jmx.mbeans;
04:
05: import java.util.Set;
06:
07: import clime.messadmin.model.IApplicationInfo;
08:
09: /**
10: * @author Cédrik LIME
11: */
12: public interface WebAppMBean extends IApplicationInfo {//implements NotificationEmitter
13:
14: /**
15: * @return <code>Collection<String></code> of all active Sessions Ids.
16: */
17: public Set<String> getActiveSessionsIds();
18:
19: /**
20: * @return <code>Set<String></code> of all the passivated SessionsIds.
21: */
22: public Set<String> getPassiveSessionsIds();
23:
24: // ApplicationInfo data are inherited
25:
26: // WebApp-related actions
27:
28: /**
29: * Set an application-level HTML message (to everyone)
30: * @param message html message to send
31: */
32: public void setApplicationOnceMessage(String message);
33:
34: public void setApplicationPermanentMessage(String message);
35:
36: //public boolean isApplicationMessageSet();//FIXME
37:
38: /**
39: * Send an HTML message to all active sessions.
40: * Future new sessions won't be affected by this.
41: * @param message html message to send
42: */
43: public void sendAllSessionsMessage(String message);
44:
45: //TODO: remove Application attribute(s), etc. (and mirror ServletContext operations)
46: }
|