01: /*
02: * Copyright 1990-2006 Sun Microsystems, Inc. All Rights Reserved.
03: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
04: *
05: * This program is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU General Public License version
07: * 2 only, as published by the Free Software Foundation.
08: *
09: * This program is distributed in the hope that it will be useful, but
10: * WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * General Public License version 2 for more details (a copy is
13: * included at /legal/license.txt).
14: *
15: * You should have received a copy of the GNU General Public License
16: * version 2 along with this work; if not, write to the Free Software
17: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18: * 02110-1301 USA
19: *
20: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
21: * Clara, CA 95054 or visit www.sun.com if you need additional
22: * information or have any questions.
23: */
24:
25: package com.sun.jump.module.lifecycle.remote;
26:
27: import com.sun.jump.executive.JUMPIsolateProxy;
28: import com.sun.jump.executive.JUMPApplicationProxy;
29: import com.sun.jump.module.JUMPModule;
30: import com.sun.jump.common.JUMPAppModel;
31: import com.sun.jump.common.JUMPProcessProxy;
32: import com.sun.jump.common.JUMPApplication;
33:
34: import java.rmi.Remote;
35: import java.rmi.RemoteException;
36:
37: /**
38: * <code>JUMPApplicationProxyRemote</code> is an remote module
39: * to the <code>JUMPApplicationProxy</code> object in the executive.
40: * This can be used to control lifecycle operations of an application
41: * running in another Isolate.
42: */
43: public interface JUMPApplicationProxyRemote extends Remote {
44:
45: /**
46: * Returns the <code>JUMPApplication</code> this proxy is associated with.
47: */
48: public JUMPApplication getApplication() throws RemoteException;
49:
50: /**
51: * Pauses the application associated with this
52: * <code>JUMPApplicationProxy</code>.
53: **/
54: public void pauseApp() throws RemoteException;
55:
56: /**
57: * Resumes the application associated with this
58: * <code>JUMPApplicationProxy</code>.
59: **/
60: public void resumeApp() throws RemoteException;
61:
62: /**
63: * Destroys the application associated with this
64: * <code>JUMPApplicationProxy</code>.
65: **/
66: public void destroyApp() throws RemoteException;
67:
68: /**
69: * Returns the state of the application associated with this
70: * <code>JUMPApplicationProxy</code>.
71: **/
72: public int getAppState() throws RemoteException;
73: }
|