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