org.jnp.server
Interface MainMBean

All Known Implementing Classes:
Main (src)

public interface MainMBean

The Mbean interface for the jnp provider server.


Method Summary
 int getBacklog()
           
 java.lang.String getBindAddress()
           
 java.lang.String getClientSocketFactory()
          Get the RMIClientSocketFactory implementation class
 boolean getInstallGlobalService()
          Get the InstallGlobalService which defines whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value.
 int getPort()
           
 java.lang.String getRmiBindAddress()
           
 int getRmiPort()
           
 java.lang.String getServerSocketFactory()
          Get the RMIServerSocketFactory implementation class
 void setBacklog(int backlog)
           
 void setBindAddress(java.lang.String host)
           
 void setClientSocketFactory(java.lang.String factoryClassName)
          Set the RMIClientSocketFactory implementation class
 void setInstallGlobalService(boolean flag)
          Set the InstallGlobalService which defines whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value.
 void setJNPServerSocketFactory(java.lang.String factoryClassName)
          Set the ServerSocketFactory implementation class
 void setPort(int p)
           
 void setRmiBindAddress(java.lang.String host)
           
 void setRmiPort(int p)
           
 void setServerSocketFactory(java.lang.String factoryClassName)
          Set the RMIServerSocketFactory implementation class
 void start()
           
 void stop()
           
 

Method Detail

setRmiPort

public void setRmiPort(int p)

getRmiPort

public int getRmiPort()

setPort

public void setPort(int p)

getPort

public int getPort()

getBindAddress

public java.lang.String getBindAddress()

setBindAddress

public void setBindAddress(java.lang.String host)
                    throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

getRmiBindAddress

public java.lang.String getRmiBindAddress()

setRmiBindAddress

public void setRmiBindAddress(java.lang.String host)
                       throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

getBacklog

public int getBacklog()

setBacklog

public void setBacklog(int backlog)

getInstallGlobalService

public boolean getInstallGlobalService()
Get the InstallGlobalService which defines whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value.

Returns:
true if this is the VM global naming service, false otherwise

setInstallGlobalService

public void setInstallGlobalService(boolean flag)
Set the InstallGlobalService which defines whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value.

Returns:
true if this is the VM global naming service, false otherwise

getClientSocketFactory

public java.lang.String getClientSocketFactory()
Get the RMIClientSocketFactory implementation class


setClientSocketFactory

public void setClientSocketFactory(java.lang.String factoryClassName)
                            throws java.lang.ClassNotFoundException,
                                   java.lang.InstantiationException,
                                   java.lang.IllegalAccessException
Set the RMIClientSocketFactory implementation class

Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

getServerSocketFactory

public java.lang.String getServerSocketFactory()
Get the RMIServerSocketFactory implementation class


setServerSocketFactory

public void setServerSocketFactory(java.lang.String factoryClassName)
                            throws java.lang.ClassNotFoundException,
                                   java.lang.InstantiationException,
                                   java.lang.IllegalAccessException
Set the RMIServerSocketFactory implementation class

Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

setJNPServerSocketFactory

public void setJNPServerSocketFactory(java.lang.String factoryClassName)
                               throws java.lang.ClassNotFoundException,
                                      java.lang.InstantiationException,
                                      java.lang.IllegalAccessException
Set the ServerSocketFactory implementation class

Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

start

public void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop()