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: 88682 $
Author:
Rickard Oberg, Scott.Stark@jboss.org

Method Summary
 int getBacklog()
           
 String getBindAddress()
           
 String getBootstrapURL()
          Returns a URL suitable for use as a java.naming.provider.url value in a set of naming environment properties; i.e.
 boolean getCallByValue()
          Get the call by value flag for jndi lookups.
 String getClientSocketFactory()
           
 RMIClientSocketFactory getClientSocketFactoryBean()
          The RMIClientSocketFactory bean
 boolean getInstallGlobalService()
           
 String getJNPServerSocketFactory()
           
 ServerSocketFactory getJNPServerSocketFactoryBean()
          The JNPServerSocketFactory implementation class
 Exception getLookupListenerException()
          Get any exception seen during the lookup listening port creation
 NamingBean getNamingInfo()
           
 Object getNamingProxy()
          Get the externally define Naming proxy instance
 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 setCallByValue(boolean flag)
          Set the call by value flag for jndi lookups.
 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 setNamingInfo(NamingBean info)
          Set the NamingBean/Naming implementation
 void setNamingProxy(Object proxy)
           
 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()

getBootstrapURL

String getBootstrapURL()
Returns a URL suitable for use as a java.naming.provider.url value in a set of naming environment properties; i.e. one that can be used to connect to the lookup socket.

Returns:
the URL, or null if no bound lookup socket exists

getNamingInfo

NamingBean getNamingInfo()

setNamingInfo

void setNamingInfo(NamingBean info)
Set the NamingBean/Naming implementation

Parameters:
info -

getCallByValue

boolean getCallByValue()
Get the call by value flag for jndi lookups.

Returns:
true if all lookups are unmarshalled using the caller's TCL, false if in VM lookups return the value by reference.

setCallByValue

void setCallByValue(boolean flag)
Set the call by value flag for jndi lookups.

Parameters:
flag - - true if all lookups are unmarshalled using the caller's TCL, false if in VM lookups return the value by reference.

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

getNamingProxy

Object getNamingProxy()
                      throws Exception
Get the externally define Naming proxy instance

Returns:
Throws:
Exception

setNamingProxy

void setNamingProxy(Object proxy)
                    throws IOException
Throws:
IOException

getLookupListenerException

Exception getLookupListenerException()
Get any exception seen during the lookup listening port creation

Returns:

start

void start()
           throws Exception
Throws:
Exception

stop

void stop()
          throws Exception
Throws:
Exception


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.