站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

WebServiceMBean (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.web
Interface WebServiceMBean

All Superinterfaces:
org.jboss.system.Service, org.jboss.system.ServiceMBean
All Known Implementing Classes:
WebService

public interface WebServiceMBean
extends org.jboss.system.ServiceMBean

MBean interface.


Field Summary
static javax.management.ObjectName OBJECT_NAME
           
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Method Summary
 URL addClassLoader(ClassLoader cl)
           
 int getBacklog()
          Get the WebService listen queue backlog limit.
 String getBindAddress()
          Get the specific address the WebService listens on.
 boolean getDownloadServerClasses()
          A flag indicating if the server should attempt to download classes from thread context class loader when a request arrives that does not have a class loader key prefix.
 String getHost()
          Set the name of the interface to use for the host portion of the RMI codebase URL.
 int getPort()
          Get the WebService listening port.
 void removeClassLoader(ClassLoader cl)
           
 void setBacklog(int backlog)
          Set the WebService listen queue backlog limit.
 void setBindAddress(String host)
          Set the specific address the WebService listens on.
 void setDownloadServerClasses(boolean flag)
           
 void setHost(String hostname)
          Get the name of the interface to use for the host portion of the RMI codebase URL.
 void setPort(int port)
          Set the WebService listening port.
 void setThreadPool(org.jboss.util.threadpool.BasicThreadPoolMBean threadPool)
          Set the thread pool used for the WebServer class loading.
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

OBJECT_NAME

public static final javax.management.ObjectName OBJECT_NAME
Method Detail

addClassLoader

public URL addClassLoader(ClassLoader cl)

removeClassLoader

public void removeClassLoader(ClassLoader cl)

setPort

public void setPort(int port)
Set the WebService listening port.

Parameters:
port - The listening port; 0 for anonymous

getPort

public int getPort()
Get the WebService listening port.


setHost

public void setHost(String hostname)
Get the name of the interface to use for the host portion of the RMI codebase URL.


getHost

public String getHost()
Set the name of the interface to use for the host portion of the RMI codebase URL.


getBindAddress

public String getBindAddress()
Get the specific address the WebService listens on.

Returns:
the interface name or IP address the WebService binds to.

setBindAddress

public void setBindAddress(String host)
                    throws UnknownHostException
Set the specific address the WebService listens on. This can be used on a multi-homed host for a ServerSocket that will only accept connect requests to one of its addresses.

Parameters:
host - the interface name or IP address to bind. If host is null, connections on any/all local addresses will be allowed.
Throws:
UnknownHostException

getBacklog

public int getBacklog()
Get the WebService listen queue backlog limit. The maximum queue length for incoming connection indications (a request to connect) is set to the backlog parameter. If a connection indication arrives when the queue is full, the connection is refused.

Returns:
the queue backlog limit.

setBacklog

public void setBacklog(int backlog)
Set the WebService listen queue backlog limit. The maximum queue length for incoming connection indications (a request to connect) is set to the backlog parameter. If a connection indication arrives when the queue is full, the connection is refused.


setThreadPool

public void setThreadPool(org.jboss.util.threadpool.BasicThreadPoolMBean threadPool)
Set the thread pool used for the WebServer class loading.


getDownloadServerClasses

public boolean getDownloadServerClasses()
A flag indicating if the server should attempt to download classes from thread context class loader when a request arrives that does not have a class loader key prefix.


setDownloadServerClasses

public void setDownloadServerClasses(boolean flag)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.