MonitoredAttributeInfo.java revision 608:7e06bf1dcb09
150477Speter/* 233548Sjkh * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. 32893Sdfr * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 42893Sdfr * 533548Sjkh * This code is free software; you can redistribute it and/or modify it 633548Sjkh * under the terms of the GNU General Public License version 2 only, as 72893Sdfr * published by the Free Software Foundation. Oracle designates this 82893Sdfr * particular file as subject to the "Classpath" exception as provided 92893Sdfr * by Oracle in the LICENSE file that accompanied this code. 102893Sdfr * 112893Sdfr * This code is distributed in the hope that it will be useful, but WITHOUT 122893Sdfr * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 132893Sdfr * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 142893Sdfr * version 2 for more details (a copy is included in the LICENSE file that 152893Sdfr * accompanied this code). 162893Sdfr * 172893Sdfr * You should have received a copy of the GNU General Public License version 182893Sdfr * 2 along with this work; if not, write to the Free Software Foundation, 192893Sdfr * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 202893Sdfr * 212893Sdfr * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 222893Sdfr * or visit www.oracle.com if you need additional information or have any 232893Sdfr * questions. 242893Sdfr */ 252893Sdfrpackage com.sun.corba.se.spi.monitoring; 262893Sdfr 272893Sdfrimport java.util.*; 282893Sdfr 292893Sdfr/** 302893Sdfr * <p> 312893Sdfr * 322893Sdfr * @author Hemanth Puttaswamy 332893Sdfr * </p> 342893Sdfr * <p> 35139776Simp * Monitored AttributeInfo contains the meta information of the Monitored 362893Sdfr * Attribute. 378876Srgrimes * </p> 382893Sdfr */ 392893Sdfrpublic interface MonitoredAttributeInfo { 408876Srgrimes 412893Sdfr /////////////////////////////////////// 428876Srgrimes // operations 432893Sdfr 442893Sdfr/** 452893Sdfr * <p> 462893Sdfr * If the Attribute is writable from ASAdmin then isWritable() will return 478876Srgrimes * true. 482893Sdfr * </p> 492893Sdfr * <p> 502893Sdfr * 5123351Sbde * @return a boolean with true or false 5223351Sbde * </p> 5323351Sbde */ 5455206Speter public boolean isWritable(); 5523351Sbde/** 56204470Skib * <p> 57204470Skib * isStatistic() is true if the attribute is presented as a Statistic. 58204470Skib * </p> 59131523Stjr * <p> 60131523Stjr * 6130354Sphk * @return a boolean with true or false 6230354Sphk * </p> 6330354Sphk */ 6430354Sphk public boolean isStatistic(); 65131523Stjr/** 66131523Stjr * <p> 672893Sdfr * Class Type: We will allow only basic class types: 1)Boolean 2)Integer 6896755Strhodes * 3)Byte 4)Long 5)Float 6)Double 7)String 8)Character 692893Sdfr * </p> 702893Sdfr * <p> 712893Sdfr * 72137036Sphk * @return a Class Type 73137036Sphk * </p> 742893Sdfr */ 752893Sdfr public Class type(); 76118837Strhodes/** 77118837Strhodes * <p> 78118837Strhodes * Get's the description for the Monitored Attribute. 79118837Strhodes * </p> 80189120Sjhb * <p> 81189120Sjhb * 822893Sdfr * @return a String with description 8356674Snyan * </p> 8433548Sjkh */ 852893Sdfr public String getDescription(); 8633548Sjkh 872893Sdfr} // end MonitoredAttributeInfo 882893Sdfr