KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > outerj > daisy > repository > serverimpl > SystemInfoImplMBean


1 /*
2  * Copyright 2004 Outerthought bvba and Schaubroeck nv
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.outerj.daisy.repository.serverimpl;
17
18 import java.util.Date JavaDoc;
19
20 /**
21  * MBean for providing some general system information.
22  */

23 public interface SystemInfoImplMBean {
24     /**
25      * Shows the current amount of free memory in the VM, measured in bytes.
26      */

27     long getFreeVmMemory();
28
29     String JavaDoc getVmMemoryFormatted();
30
31     /**
32      * Shows the maximum amount of memory that the VM will attempt to use, measured in bytes.
33      */

34     long getMaxVmMemory();
35
36     /**
37      * Shows the total amount of free memory in the VM, measured in bytes.
38      */

39     long getTotalVmMemory();
40
41     /**
42      * Shows the number of available processors for the VM
43      */

44     int getAvailableProcessors();
45
46     /**
47      * Shows the (approx.) time when the system was started.
48      */

49     Date JavaDoc getStartTime();
50
51     /**
52      * Shows the (approx.) current system uptime
53      */

54     String JavaDoc getUpTime();
55
56     /**
57      * Suggests the VM to run the Garbage Collector
58      */

59     void triggerGarbageCollector();
60
61     /**
62      * Shows file encoding.
63      */

64     String JavaDoc getFileEncoding();
65     
66     /**
67      *
68      */

69     String JavaDoc getServerVersion();
70 }
71
Popular Tags