KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > klg > jprobe > profiler > api > JPPerformanceNopAPIImpl


1 /*****************************************************************************
2  * Copyright (c) 1999, KL GROUP INC. All Rights Reserved.
3  * http://www.klg.com
4  *
5  * This software is the confidential and proprietary information of KL
6  * Group, Inc. ("Confidential Information"). You shall not disclose such
7  * Confidential Information and shall use it only in accordance with the
8  * terms of the license agreement you entered into with KL Group.
9  *
10  * KL GROUP MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY
11  * OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
12  * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
13  * PURPOSE, OR NON-INFRINGEMENT. KL GROUP SHALL NOT BE LIABLE FOR ANY
14  * DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
15  * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
16  *****************************************************************************/

17 // RCSID -- $RCSfile: JPPerformanceNopAPIImpl.java $ $Revision: 1.2 $ $Date: 1999/07/18 18:15:12 $ $Locker: $ KL Group Inc.
18

19 /**
20  *
21  * @version $Revision: 1.2 $
22  * @author $Author: paulj $
23  */

24
25 package com.klg.jprobe.profiler.api;
26
27 /*
28  * A JProbeAPI that does nothing. Created by factory methods if
29  * if associated .dlls cannot be found.
30  */

31 class JPPerformanceNopAPIImpl extends JPPerformanceAPI {
32
33 /**
34  * Protected to disallow public
35  * instantiation.
36  */

37 protected JPPerformanceNopAPIImpl() {
38 }
39
40 public boolean pauseRecording() {
41     return false;
42 }
43
44 public boolean resumeRecording() {
45     return false;
46 }
47
48 public boolean isRecording() {
49     return false;
50 }
51
52 public boolean clear() {
53     return false;
54 }
55
56 public boolean save(String JavaDoc snapshot_name) {
57     return false;
58 }
59
60 public boolean isRunning() {
61     return false;
62 }
63
64 public void suspend() {
65 }
66
67 }
68
Popular Tags