Skip to content

Commit

Permalink
Added missing comments to HeapUsageDTO
Browse files Browse the repository at this point in the history
  • Loading branch information
amitjoy committed Jun 21, 2024
1 parent 867853f commit 1771829
Showing 1 changed file with 43 additions and 11 deletions.
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;
}

}

0 comments on commit 1771829

Please sign in to comment.