org.jnp.server
Interface MainMBean

All Superinterfaces:
NamingBean
All Known Implementing Classes:
Main

public interface MainMBean
extends NamingBean

The Mbean interface for the jnp provider server.

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

Method Summary
 int getBacklog()
           
 String getBindAddress()
           
 String getClientSocketFactory()
           
 RMIClientSocketFactory getClientSocketFactoryBean()
          The RMIClientSocketFactory bean
 boolean getInstallGlobalService()
           
 String getJNPServerSocketFactory()
           
 ServerSocketFactory getJNPServerSocketFactoryBean()
          The JNPServerSocketFactory implementation class
 int getPort()
           
 String getRmiBindAddress()
           
 int getRmiPort()
           
 String getServerSocketFactory()
           
 RMIServerSocketFactory getServerSocketFactoryBean()
          The RMIServerSocketFactory bean
 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 setClientSocketFactoryBean(RMIClientSocketFactory factory)
           
 void setInstallGlobalService(boolean flag)
          Whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value
 void setJNPServerSocketFactory(String factoryClassName)
           
 void setJNPServerSocketFactoryBean(ServerSocketFactory factory)
           
 void setPort(int port)
           
 void setRmiBindAddress(String host)
           
 void setRmiPort(int port)
           
 void setServerSocketFactory(String factoryClassName)
          The RMIServerSocketFactory implementation class
 void setServerSocketFactoryBean(RMIServerSocketFactory factory)
           
 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()
           
 
Methods inherited from interface org.jnp.server.NamingBean
getNamingInstance
 

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()

getClientSocketFactoryBean

RMIClientSocketFactory getClientSocketFactoryBean()
The RMIClientSocketFactory bean


setClientSocketFactoryBean

void setClientSocketFactoryBean(RMIClientSocketFactory factory)

setServerSocketFactory

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

Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException

getServerSocketFactory

String getServerSocketFactory()

getServerSocketFactoryBean

RMIServerSocketFactory getServerSocketFactoryBean()
The RMIServerSocketFactory bean


setServerSocketFactoryBean

void setServerSocketFactoryBean(RMIServerSocketFactory factory)

getJNPServerSocketFactoryBean

ServerSocketFactory getJNPServerSocketFactoryBean()
The JNPServerSocketFactory implementation class


setJNPServerSocketFactoryBean

void setJNPServerSocketFactoryBean(ServerSocketFactory factory)

getJNPServerSocketFactory

String getJNPServerSocketFactory()

setJNPServerSocketFactory

void setJNPServerSocketFactory(String factoryClassName)
                               throws ClassNotFoundException,
                                      InstantiationException,
                                      IllegalAccessException
Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException

start

void start()
           throws Exception
Throws:
Exception

stop

void stop()


Copyright © 2008 JBoss Inc.. All Rights Reserved.