KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sape > carbon > services > management > interceptor > ManagementInterceptorConfiguration


1 /*
2  * The contents of this file are subject to the Sapient Public License
3  * Version 1.0 (the "License"); you may not use this file except in compliance
4  * with the License. You may obtain a copy of the License at
5  * http://carbon.sf.net/License.html.
6  *
7  * Software distributed under the License is distributed on an "AS IS" basis,
8  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
9  * the specific language governing rights and limitations under the License.
10  *
11  * The Original Code is The Carbon Component Framework.
12  *
13  * The Initial Developer of the Original Code is Sapient Corporation
14  *
15  * Copyright (C) 2003 Sapient Corporation. All Rights Reserved.
16  */

17
18 package org.sape.carbon.services.management.interceptor;
19
20 import org.sape.carbon.core.config.Configuration;
21
22 /**
23  * This Configuration object is used to configure
24  * the default ManagementInterceptor.
25  * It configures what MBeanServerService to use and whether or not to
26  * send notifications during lifecycle changes.
27  *
28  * Copyright 2002 Sapient
29  * @since carbon 1.1
30  * @author Greg Hinkle, October 2002
31  * @version $Revision: 1.4 $($Author: dvoet $ / $Date: 2003/05/05 21:21:33 $)
32  */

33 public interface ManagementInterceptorConfiguration extends Configuration {
34     /** /manage/DefaultMBeanServer */
35     String JavaDoc mBeanServerService = "/manage/DefaultMBeanServer";
36
37     /**
38      * Gets the config location of teh MBeanServerService.
39      *
40      * @return config location of teh MBeanServerService
41      */

42     String JavaDoc getMBeanServerServiceLocation();
43
44     /**
45      * Sets the config location of teh MBeanServerService.
46      *
47      * @param serverServiceLocation config location of teh MBeanServerService
48      */

49     void setMBeanServerServiceLocation(String JavaDoc serverServiceLocation);
50
51     /** true **/
52     boolean sendNotifications = true;
53
54     /**
55      * Indicates if the interceptor sends notifications.
56      *
57      * @return if the interceptor sends notifications
58      */

59     boolean isSendNotifications();
60
61     /**
62      * Sets if the interceptor sends notifications.
63      *
64      * @param shouldSend if the interceptor sends notifications
65      */

66     void setSendNotifications(boolean shouldSend);
67
68     /** CarbonComponent */
69     String JavaDoc ObjectNameDomain = "CarbonComponent";
70
71     /**
72      * Gets the object name domain
73      *
74      * @return the object name domain
75      */

76     String JavaDoc getObjectNameDomain();
77
78     /**
79      * Sets the object name domain
80      *
81      * @param domainName the object name domain
82      */

83     void setObjectNameDomain(String JavaDoc domainName);
84
85     /**
86      * Gets the object environment name
87      *
88      * @return the object environment name
89      */

90     String JavaDoc getEnvironmentName();
91
92     /**
93      * Sets the object environment name
94      *
95      * @param environmentName the object environment name
96      */

97      void setEnvironmentName(String JavaDoc environmentName);
98
99     /**
100      * Gets the object instance name
101      *
102      * @return the object instance name
103      */

104     String JavaDoc getInstanceName();
105
106     /**
107      * Sets the object instance name
108      *
109      * @param instanceName the object instance name
110      */

111     void setInstanceName(String JavaDoc instanceName);
112
113     /** false */
114     boolean UsingVMID = false;
115
116     /**
117      * Indicates if the interceptor is using the VM id
118      *
119      * @return if the interceptor is using the VM id
120      */

121     boolean isUsingVMID();
122
123     /**
124      * Sets if the interceptor is using the VM id
125      *
126      * @param useVMID if the interceptor is using the VM id
127      */

128     void setUsingVMID(boolean useVMID);
129 }
130
Popular Tags