1 /*
2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
186
187 int m;
188 for (m = 0; m < params.length; m++) {
189 if(!argset.contains(params[m]))
190 TestLibrary.bomb("Parameter \"" + params[m] + "\" not set");
191 }
192
193 for (m = 0; m < props.length; m++) {
194 if (!argset.contains("-D" + props[m])) {
195 TestLibrary.bomb("Property binding \"" + props[m] +
196 "\" not set");
197 }
198 }
199
200 // End doctor
201 if (doctor instanceof Retireable)
202 ((Retireable)doctor).retire();
203 actsys.unregisterGroup(gid);
204
205 Thread.sleep(5000);
206 ActivationLibrary.rmidCleanup(rmid);
207 }
208
209 public static class DebugExecWatcher
210 extends Thread
211 {
212 public String found;
213 private BufferedReader str;
214 private OutputStream otherEnd;
215
216 private DebugExecWatcher(InputStream readStream, OutputStream wrStream)
217 {
218 super("DebugExecWatcher");
219 found = null;
220 str = new BufferedReader(new InputStreamReader(readStream));
221 otherEnd = wrStream;
222 }
223
224 static public DebugExecWatcher makeWithPipe()
225 throws IOException
226 {
|
1 /*
2 * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
186
187 int m;
188 for (m = 0; m < params.length; m++) {
189 if(!argset.contains(params[m]))
190 TestLibrary.bomb("Parameter \"" + params[m] + "\" not set");
191 }
192
193 for (m = 0; m < props.length; m++) {
194 if (!argset.contains("-D" + props[m])) {
195 TestLibrary.bomb("Property binding \"" + props[m] +
196 "\" not set");
197 }
198 }
199
200 // End doctor
201 if (doctor instanceof Retireable)
202 ((Retireable)doctor).retire();
203 actsys.unregisterGroup(gid);
204
205 Thread.sleep(5000);
206 rmid.cleanup();
207 }
208
209 public static class DebugExecWatcher
210 extends Thread
211 {
212 public String found;
213 private BufferedReader str;
214 private OutputStream otherEnd;
215
216 private DebugExecWatcher(InputStream readStream, OutputStream wrStream)
217 {
218 super("DebugExecWatcher");
219 found = null;
220 str = new BufferedReader(new InputStreamReader(readStream));
221 otherEnd = wrStream;
222 }
223
224 static public DebugExecWatcher makeWithPipe()
225 throws IOException
226 {
|