001//
002// NAME
003//    Allocator.java
004//
005// COPYRIGHT
006//    Copyright 2007-2014 Cloud Software Group, Inc. ALL RIGHTS RESERVED.
007//    Cloud Software Group, Inc. Confidential Information
008//
009// HISTORY
010//    $Revision: 1.1.2.84 $ $Date: 2014/02/06 20:35:16 $
011//
012// WARNINGS
013//    THIS FILE IS GENERATED, DO NOT EDIT
014//
015
016package com.kabira.platform.osstats;
017
018import java.util.*;
019import com.kabira.platform.annotation.*;
020
021
022/**
023<p>
024       Shared Memory Allocation Statistics
025<p>
026The Allocator interface provides reporting facilities
027for the shared memory allocator.
028
029
030*/
031
032@Managed
033public class Allocator
034{
035        private static final String _RuntimeType = "osstats::Allocator";
036
037/**
038Create a new Allocator
039
040*/
041        public Allocator()
042        {
043                super();
044        }
045
046
047        /**
048        <p>
049       Returns the current percentage
050                of allocated shared memory.
051
052@return                Current percentage
053                of allocated shared memory.
054
055
056        */
057
058        public final native int getMemoryUtilization();
059
060
061        /**
062        <p>
063       Returns the size of shared memory.
064@return                Size of shared memory file in bytes.
065
066        */
067
068        public final native long getMemorySize();
069
070}