KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jnp > server > MainMBean


1 /*
2  * JBoss, Home of Professional Open Source
3  * Copyright 2005, JBoss Inc., and individual contributors as indicated
4  * by the @authors tag. See the copyright.txt in the distribution for a
5  * full listing of individual contributors.
6  *
7  * This is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as
9  * published by the Free Software Foundation; either version 2.1 of
10  * the License, or (at your option) any later version.
11  *
12  * This software is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this software; if not, write to the Free
19  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21  */

22 package org.jnp.server;
23
24 import java.net.UnknownHostException JavaDoc;
25
26 /**
27  * The Mbean interface for the jnp provider server.
28  *
29  * @author Rickard Oberg
30  * @author Scott.Stark@jboss.org
31  * @version $Revision: 41359 $
32  */

33 public interface MainMBean
34 {
35    // Attributes ---------------------------------------------------
36

37    void setRmiPort(int port);
38    int getRmiPort();
39    
40    void setPort(int port);
41    int getPort();
42
43    void setBindAddress(String JavaDoc host) throws UnknownHostException JavaDoc;
44    String JavaDoc getBindAddress();
45
46    void setRmiBindAddress(String JavaDoc host) throws UnknownHostException JavaDoc;
47    String JavaDoc getRmiBindAddress();
48
49    void setBacklog(int backlog);
50    int getBacklog();
51
52    /** Whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value */
53    void setInstallGlobalService(boolean flag);
54    boolean getInstallGlobalService();
55
56    /** The RMIServerSocketFactory implementation class */
57    void setClientSocketFactory(String JavaDoc factoryClassName)
58       throws ClassNotFoundException JavaDoc, InstantiationException JavaDoc, IllegalAccessException JavaDoc;
59    String JavaDoc getClientSocketFactory();
60    
61    /** The RMIServerSocketFactory implementation class */
62    void setServerSocketFactory(String JavaDoc factoryClassName)
63       throws ClassNotFoundException JavaDoc, InstantiationException JavaDoc, IllegalAccessException JavaDoc;
64    String JavaDoc getServerSocketFactory();
65
66    /** The JNPServerSocketFactory implementation class */
67    void setJNPServerSocketFactory(String JavaDoc factoryClassName)
68       throws ClassNotFoundException JavaDoc, InstantiationException JavaDoc, IllegalAccessException JavaDoc;
69
70    // Operations ----------------------------------------------------
71

72    public void start() throws Exception JavaDoc;
73    
74    public void stop();
75    
76 }
Popular Tags