org.jnp.server
Interface MainMBean

All Known Implementing Classes:
Main

public interface MainMBean

The Mbean interface for the jnp provider server.

Version:
$Revision: 57220 $
Author:
Rickard Oberg, Scott.Stark@jboss.org

Method Summary
 int getBacklog()
           
 String getBindAddress()
           
 String getClientSocketFactory()
           
 boolean getInstallGlobalService()
           
 int getPort()
           
 String getRmiBindAddress()
           
 int getRmiPort()
           
 String getServerSocketFactory()
           
 boolean getUseGlobalService()
          Get the UseGlobalService which defines whether the MainMBean's Naming server will initialized from the existing NamingContext.setLocal global value.
 void setBacklog(int backlog)
           
 void setBindAddress(String host)
           
 void setClientSocketFactory(String factoryClassName)
          The RMIClientSocketFactory implementation class
 void setInstallGlobalService(boolean flag)
          Whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value
 void setJNPServerSocketFactory(String factoryClassName)
          The JNPServerSocketFactory implementation class
 void setPort(int port)
           
 void setRmiBindAddress(String host)
           
 void setRmiPort(int port)
           
 void setServerSocketFactory(String factoryClassName)
          The RMIServerSocketFactory implementation class
 void setUseGlobalService(boolean flag)
          Set the UseGlobalService which defines whether the MainMBean's Naming server will initialized from the existing NamingContext.setLocal global value.
 void start()
           
 void stop()
           
 

Method Detail

setRmiPort

void setRmiPort(int port)

getRmiPort

int getRmiPort()

setPort

void setPort(int port)

getPort

int getPort()

setBindAddress

void setBindAddress(String host)
                    throws UnknownHostException
Throws:
UnknownHostException

getBindAddress

String getBindAddress()

setRmiBindAddress

void setRmiBindAddress(String host)
                       throws UnknownHostException
Throws:
UnknownHostException

getRmiBindAddress

String getRmiBindAddress()

setBacklog

void setBacklog(int backlog)

getBacklog

int getBacklog()

setInstallGlobalService

void setInstallGlobalService(boolean flag)
Whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value


getInstallGlobalService

boolean getInstallGlobalService()

getUseGlobalService

boolean getUseGlobalService()
Get the UseGlobalService which defines whether the MainMBean's Naming server will initialized from the existing NamingContext.setLocal global value.

Returns:
true if this should try to use VM global naming service, false otherwise

setUseGlobalService

void setUseGlobalService(boolean flag)
Set the UseGlobalService which defines whether the MainMBean's Naming server will initialized from the existing NamingContext.setLocal global value. This allows one to export multiple servers via different transports and still share the same underlying naming service.


setClientSocketFactory

void setClientSocketFactory(String factoryClassName)
                            throws ClassNotFoundException,
                                   InstantiationException,
                                   IllegalAccessException
The RMIClientSocketFactory implementation class

Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException

getClientSocketFactory

String getClientSocketFactory()

setServerSocketFactory

void setServerSocketFactory(String factoryClassName)
                            throws ClassNotFoundException,
                                   InstantiationException,
                                   IllegalAccessException
The RMIServerSocketFactory implementation class

Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException

getServerSocketFactory

String getServerSocketFactory()

setJNPServerSocketFactory

void setJNPServerSocketFactory(String factoryClassName)
                               throws ClassNotFoundException,
                                      InstantiationException,
                                      IllegalAccessException
The JNPServerSocketFactory implementation class

Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException

start

void start()
           throws Exception
Throws:
Exception

stop

void stop()


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