-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing comments to HeapUsageDTO
- Loading branch information
Showing
1 changed file
with
43 additions
and
11 deletions.
There are no files selected for viewing
54 changes: 43 additions & 11 deletions
54
com.osgifx.console.agent.api/src/main/java/com/osgifx/console/agent/dto/XHeapUsageDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,76 @@ | ||
/******************************************************************************* | ||
* Copyright 2021-2024 Amit Kumar Mondal | ||
* COPYRIGHT 2021-2024 AMIT KUMAR MONDAL | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
* use this file except in compliance with the License. You may obtain a copy | ||
* of the License at | ||
* use this file except in compliance with the License. You may obtain a copy | ||
* of the License at: | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
******************************************************************************/ | ||
package com.osgifx.console.agent.dto; | ||
|
||
import org.osgi.dto.DTO; | ||
|
||
/** | ||
* Data Transfer Object (DTO) representing heap usage information. | ||
*/ | ||
public class XHeapUsageDTO extends DTO { | ||
|
||
public long uptime; | ||
public XMemoryUsage memoryUsage; | ||
public XMemoryPoolMXBean[] memoryPoolBeans; | ||
/** Uptime of the Java virtual machine. */ | ||
public long uptime; | ||
|
||
/** Memory usage details. */ | ||
public XMemoryUsage memoryUsage; | ||
|
||
/** Memory pool management beans. */ | ||
public XMemoryPoolMXBean[] memoryPoolBeans; | ||
|
||
/** Garbage collector beans. */ | ||
public XGarbageCollectorMXBean[] gcBeans; | ||
|
||
/** | ||
* Inner class representing memory usage details. | ||
*/ | ||
public static class XMemoryUsage extends DTO { | ||
/** Used memory. */ | ||
public long used; | ||
|
||
/** Maximum available memory. */ | ||
public long max; | ||
} | ||
|
||
/** | ||
* Inner class representing memory pool management beans. | ||
*/ | ||
public static class XMemoryPoolMXBean extends DTO { | ||
public String type; | ||
public String name; | ||
/** Type of memory pool. */ | ||
public String type; | ||
|
||
/** Name of memory pool. */ | ||
public String name; | ||
|
||
/** Memory usage details for the pool. */ | ||
public XMemoryUsage memoryUsage; | ||
} | ||
|
||
/** | ||
* Inner class representing garbage collector beans. | ||
*/ | ||
public static class XGarbageCollectorMXBean extends DTO { | ||
/** Name of the garbage collector. */ | ||
public String name; | ||
public long collectionCount; | ||
public long collectionTime; | ||
|
||
/** Number of collections performed by the garbage collector. */ | ||
public long collectionCount; | ||
|
||
/** Total time spent in garbage collection in milliseconds. */ | ||
public long collectionTime; | ||
} | ||
|
||
} |