KickJava   Java API By Example, From Geeks To Geeks.

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


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

32 public interface JrmpRemotingConfiguration extends ComponentConfiguration {
33     /** 1099 */
34     int Port = 1099;
35
36     /**
37      * Gets the port to expose the Jrmp connection on.
38      *
39      * @return the port to expose the Jrmp connection on
40      */

41     int getPort();
42
43     /**
44      * Sets the port to expose the Jrmp connection on.
45      *
46      * @param port the port to expose the Jrmp connection on
47      */

48     void setPort(int port);
49
50     /** localhost */
51     String JavaDoc Hostname = "localhost";
52
53     /**
54      * Gets the hostname of the machine exposing the Jrmp port.
55      *
56      * @return the hostname of the machine exposing the Jrmp port
57      */

58     String JavaDoc getHostname();
59
60     /**
61      * Sets the hostname of the machine exposing the Jrmp port.
62      *
63      * @param hostname the hostname of the machine exposing the Jrmp port
64      */

65     void setHostname(String JavaDoc hostname);
66
67     // MBEAN SERVER SERVICE
68
/** ref:///manage/DefaultMBeanServer */
69     String JavaDoc MBeanServerService = "ref:///manage/DefaultMBeanServer";
70
71     /**
72      * Gets the MBeanServer to expose through the adaptor.
73      *
74      * @return the BeanServer to expose through the adaptor
75      */

76     MBeanServerService getMBeanServerService();
77
78     /**
79      * Sets the MBeanServer to expose through the adaptor.
80      *
81      * @param mbeanServerService the BeanServer to expose through the adaptor
82      */

83      void setMBeanServerService(MBeanServerService mbeanServerService);
84
85     /** com.sun.jndi.rmi.registry.RegistryContextFactory */
86     String JavaDoc InitialContextFactoryClass =
87         "com.sun.jndi.rmi.registry.RegistryContextFactory";
88
89     /**
90      * Gets the class for use as the InitialContext.
91      *
92      * @return the class for use as the InitialContext
93      */

94     Class JavaDoc getInitialContextFactoryClass();
95
96     /**
97      * Sets the class for use as the InitialContext.
98      *
99      * @param initialContextFactory the class for use as the InitialContext
100      */

101     void setInitialContextFactoryClass(Class JavaDoc initialContextFactory);
102
103 }
104
Popular Tags