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