KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sape > carbon > services > jmx > server > mx4j > HttpAdaptorConfiguration


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.jmx.server.mx4j;
19
20 import org.sape.carbon.core.component.ComponentConfiguration;
21 import org.sape.carbon.services.jmx.server.MBeanServerService;
22
23 /**
24  * <P>This is the base template for a new Component Configuration.</P>
25  *
26  * Copyright 2002 Sapient
27  * @since carbon 1.0
28  * @author Greg Hinkle, June 2002
29  * @version $Revision: 1.4 $($Author: dvoet $ / $Date: 2003/05/05 21:21:31 $)
30  */

31 public interface HttpAdaptorConfiguration extends ComponentConfiguration {
32     /**
33      * Gets the port the HttpAdapter runs on.
34      *
35      * @return the port the HttpAdapter runs on.
36      */

37     int getPort();
38
39     /**
40      * Sets the port the HttpAdapter runs on.
41      *
42      * @param value the port the HttpAdapter runs on.
43      */

44     void setPort(int value);
45
46     /**
47      * Gets the hostname the adapter runs on.
48      *
49      * @return the hostname the adapter runs on
50      */

51     String JavaDoc getHostname();
52
53     /**
54      * Sets the hostname the adapter runs on.
55      *
56      * @param hostname the hostname the adapter runs on
57      */

58     void setHostname(String JavaDoc hostname);
59
60     /**
61      * Gets the incremental for port number to try opening
62      *
63      * @return the incremental for port number to try opening
64      */

65     int getPortIncrementals();
66
67     /**
68      * Sets the incremental for port number to try opening
69      *
70      * @param value the incremental for port number to try opening
71      */

72     void setPortIncrementals(int value);
73
74     /** ref:///manage/DefaultMBeanServer */
75     String JavaDoc MBeanServerService = "ref:///manage/DefaultMBeanServer";
76
77     /**
78      * Gets the MBeanServer to expose through the adaptor.
79      *
80      * @return the BeanServer to expose through the adaptor.
81      */

82     MBeanServerService getMBeanServerService();
83
84     /**
85      * Sets the MBeanServer to expose through the adaptor.
86      *
87      * @param mbeanServerService the BeanServer to expose through the adaptor.
88      */

89     void setMBeanServerService(MBeanServerService mbeanServerService);
90
91 }
92
Popular Tags