KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > web > WebServiceMBean


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.jboss.web;
23
24 import java.net.URL JavaDoc;
25 import java.net.UnknownHostException JavaDoc;
26
27 import javax.management.ObjectName JavaDoc;
28
29 import org.jboss.mx.util.ObjectNameFactory;
30 import org.jboss.system.ServiceMBean;
31 import org.jboss.util.threadpool.BasicThreadPoolMBean;
32
33 /**
34  * WebService MBean interface
35  *
36  * @version $Revision: 46303 $
37  */

38 public interface WebServiceMBean extends ServiceMBean
39 {
40    /** The default ObjectName */
41    ObjectName JavaDoc OBJECT_NAME = ObjectNameFactory.create("jboss:service=WebService");
42
43    // Attributes ----------------------------------------------------
44

45    /** The specific address the WebService listens on. */
46    void setBindAddress(String JavaDoc host) throws UnknownHostException JavaDoc;
47    String JavaDoc getBindAddress();
48    
49    /** The WebService listening port, 0 for anonymous. */
50    void setPort(int port);
51    int getPort();
52    
53    /** The name of the interface to use for the host portion of the RMI codebase URL. */
54    void setHost(String JavaDoc hostname);
55    String JavaDoc getHost();
56
57    /** The WebService listen queue backlog limit. */
58    void setBacklog(int backlog);
59    int getBacklog();
60    
61    /** Whether the server should attempt to download classes using the thread context
62     * class loader when a request arrives that does not have a class loader key prefix. */

63    void setDownloadServerClasses(boolean flag);
64    boolean getDownloadServerClasses();
65    
66    /** Whether the server will serve resource files. */
67    void setDownloadResources(boolean flag);
68    boolean getDownloadResources();
69
70    /** The thread pool used for the WebServer class loading. */
71    void setThreadPool(BasicThreadPoolMBean threadPool);
72    
73    // Operations ----------------------------------------------------
74

75    URL JavaDoc addClassLoader(ClassLoader JavaDoc cl);
76
77    void removeClassLoader(ClassLoader JavaDoc cl);
78
79 }
80
Popular Tags