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 getDownloadResources()
           
 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 setDownloadResources(boolean flag)
           
 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

static final javax.management.ObjectName OBJECT_NAME
Method Detail

addClassLoader

URL addClassLoader(ClassLoader cl)

removeClassLoader

void removeClassLoader(ClassLoader cl)

setPort

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

Parameters:
port - The listening port; 0 for anonymous

getPort

int getPort()
Get the WebService listening port.


setHost

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


getHost

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


getBindAddress

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

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

setBindAddress

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

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

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.

Parameters:
backlog, - the queue backlog limit.

setThreadPool

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


getDownloadServerClasses

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

void setDownloadServerClasses(boolean flag)

getDownloadResources

boolean getDownloadResources()

setDownloadResources

void setDownloadResources(boolean flag)


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