KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > cli > jmx > support > InspectResult


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23  
24 /*
25  * $Header: /cvs/glassfish/admin-cli/cli-api/src/java/com/sun/cli/jmx/support/InspectResult.java,v 1.3 2005/12/25 03:45:47 tcfujii Exp $
26  * $Revision: 1.3 $
27  * $Date: 2005/12/25 03:45:47 $
28  */

29  
30
31 package com.sun.cli.jmx.support;
32
33 import java.io.Serializable JavaDoc;
34
35 import javax.management.*;
36
37
38 /*
39     The result of inspecting an MBean. This class should be treated as a struct; code should
40     not be added to it and it should remain final.
41  */

42 public final class InspectResult implements Serializable JavaDoc
43 {
44     public ObjectInstance objectInstance;
45     public String JavaDoc summary;
46     public MBeanAttributeInfo [] attrInfo;
47     public MBeanOperationInfo [] operationsInfo;
48     public MBeanConstructorInfo [] constructorsInfo;
49     public MBeanNotificationInfo [] notificationsInfo;
50     public boolean includeDescription;
51     
52         public
53     InspectResult( ObjectInstance instance )
54     {
55         objectInstance = instance;
56         summary = null;
57         attrInfo = null;
58         operationsInfo = null;
59         constructorsInfo = null;
60         notificationsInfo = null;
61         includeDescription = true;
62     }
63     
64         public
65     InspectResult(
66         ObjectInstance instance,
67         String JavaDoc summaryIn,
68         MBeanAttributeInfo [] attributes,
69         MBeanOperationInfo [] operations,
70         MBeanConstructorInfo [] constructors,
71         MBeanNotificationInfo [] notifs)
72     {
73         objectInstance = instance;
74         summary = summaryIn;
75         attrInfo = attributes;
76         operationsInfo = operations;
77         constructorsInfo = constructors;
78         notificationsInfo = notifs;
79         includeDescription = true;
80     }
81 }
82
83
84
85
Popular Tags