1 |
tdb |
1.3 |
/* |
2 |
|
|
* i-scream central monitoring system |
3 |
|
|
* Copyright (C) 2000-2002 i-scream |
4 |
|
|
* |
5 |
|
|
* This program is free software; you can redistribute it and/or |
6 |
|
|
* modify it under the terms of the GNU General Public License |
7 |
|
|
* as published by the Free Software Foundation; either version 2 |
8 |
|
|
* of the License, or (at your option) any later version. |
9 |
|
|
* |
10 |
|
|
* This program 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 |
13 |
|
|
* GNU General Public License for more details. |
14 |
|
|
* |
15 |
|
|
* You should have received a copy of the GNU General Public License |
16 |
|
|
* along with this program; if not, write to the Free Software |
17 |
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 |
|
|
*/ |
19 |
|
|
|
20 |
ajm |
1.1 |
//---PACKAGE DECLARATION--- |
21 |
tdb |
1.2 |
package uk.org.iscream.cms.conient; |
22 |
ajm |
1.1 |
|
23 |
|
|
//---IMPORTS--- |
24 |
|
|
|
25 |
|
|
/** |
26 |
|
|
* This is essentially a wrapper for the java.lang.Process object. |
27 |
|
|
* It allows the connection to take advantage of the reference |
28 |
|
|
* passing of java in order to maintain a reference to the Process |
29 |
|
|
* object that holds the external tunnelling process. |
30 |
|
|
* |
31 |
tdb |
1.3 |
* @author $Author: tdb $ |
32 |
|
|
* @version $Id: TunnelProcess.java,v 1.2 2001/05/29 17:41:32 tdb Exp $ |
33 |
ajm |
1.1 |
*/ |
34 |
|
|
public class TunnelProcess { |
35 |
|
|
|
36 |
|
|
//---FINAL ATTRIBUTES--- |
37 |
|
|
|
38 |
|
|
/** |
39 |
|
|
* The current CVS revision of this class |
40 |
|
|
*/ |
41 |
tdb |
1.3 |
public static final String REVISION = "$Revision: 1.2 $"; |
42 |
ajm |
1.1 |
|
43 |
|
|
//---STATIC METHODS--- |
44 |
|
|
|
45 |
|
|
//---CONSTRUCTORS--- |
46 |
|
|
|
47 |
|
|
//---PUBLIC METHODS--- |
48 |
|
|
|
49 |
|
|
//---PRIVATE METHODS--- |
50 |
|
|
|
51 |
|
|
//---ACCESSOR/MUTATOR METHODS--- |
52 |
|
|
|
53 |
|
|
/** |
54 |
|
|
* Acessor for the process held by this object |
55 |
|
|
* |
56 |
|
|
* @return the process |
57 |
|
|
*/ |
58 |
|
|
public Process getProcess() { |
59 |
|
|
return _process; |
60 |
|
|
} |
61 |
|
|
|
62 |
|
|
/** |
63 |
|
|
* Mutator for the process held by this object |
64 |
|
|
* |
65 |
|
|
* @param process the new process |
66 |
|
|
*/ |
67 |
|
|
public void setProcess(Process process) { |
68 |
|
|
_process = process; |
69 |
|
|
} |
70 |
|
|
|
71 |
|
|
//---ATTRIBUTES--- |
72 |
|
|
|
73 |
|
|
/** |
74 |
|
|
* The process held by this object |
75 |
|
|
*/ |
76 |
|
|
private Process _process; |
77 |
|
|
|
78 |
|
|
//---STATIC ATTRIBUTES--- |
79 |
|
|
|
80 |
|
|
} |