org.huihoo.jfox.ejb.server.naming
Class Main

java.lang.Object
  |
  +--org.huihoo.jfox.ejb.server.naming.Main
All Implemented Interfaces:
MainMBean, java.lang.Runnable

public class Main
extends java.lang.Object
implements java.lang.Runnable, MainMBean

Version:
$Revision: 0.1.0 $
Author:
tai_1219@sina.com

Field Summary
static int valveint
           
 
Fields inherited from interface org.huihoo.jfox.ejb.server.naming.MainMBean
OBJECT_NAME
 
Constructor Summary
Main()
          Constructors --------------------------------------------------
Main(java.lang.String categoryName)
           
 
Method Summary
 int getBacklog()
           
 java.lang.String getBindAddress()
           
 java.lang.String getClientSocketFactory()
          Get the RMIClientSocketFactory implementation class
 int getPort()
           
 int getRmiPort()
           
 Main getSelf()
           
 java.lang.String getServerSocketFactory()
          Get the RMIServerSocketFactory implementation class
static void main(java.lang.String[] args)
          protected Category log; Static --------------------------------------------------------
 void run()
          Runnable implementation ---------------------------------------
 void setBacklog(int backlog)
           
 void setBindAddress(java.lang.String host)
           
 void setClientSocketFactory(java.lang.String factoryClassName)
          Set the RMIClientSocketFactory implementation class
 void setJNPServerSocketFactory(java.lang.String factoryClassName)
          Set the ServerSocketFactory implementation class
 void setPort(int p)
           
 void setRmiPort(int p)
          Public --------------------------------------------------------
 void setServerSocketFactory(java.lang.String factoryClassName)
          Set the RMIServerSocketFactory implementation class
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valveint

public static int valveint
Constructor Detail

Main

public Main()
Constructors --------------------------------------------------


Main

public Main(java.lang.String categoryName)
Parameters:
categoryName -
Method Detail

setRmiPort

public void setRmiPort(int p)
Public --------------------------------------------------------

Specified by:
setRmiPort in interface MainMBean
Parameters:
p -

getRmiPort

public int getRmiPort()
Specified by:
getRmiPort in interface MainMBean
Returns:
int

setPort

public void setPort(int p)
Specified by:
setPort in interface MainMBean
Parameters:
p -

getPort

public int getPort()
Specified by:
getPort in interface MainMBean
Returns:
int

getBindAddress

public java.lang.String getBindAddress()
Specified by:
getBindAddress in interface MainMBean
Returns:
String

setBindAddress

public void setBindAddress(java.lang.String host)
                    throws java.net.UnknownHostException
Specified by:
setBindAddress in interface MainMBean
Parameters:
host -
Throws:
java.net.UnknownHostException

getBacklog

public int getBacklog()
Specified by:
getBacklog in interface MainMBean
Returns:
int

setBacklog

public void setBacklog(int backlog)
Specified by:
setBacklog in interface MainMBean
Parameters:
backlog -

getClientSocketFactory

public java.lang.String getClientSocketFactory()
Description copied from interface: MainMBean
Get the RMIClientSocketFactory implementation class

Specified by:
getClientSocketFactory in interface MainMBean
Returns:
String

setClientSocketFactory

public void setClientSocketFactory(java.lang.String factoryClassName)
                            throws java.lang.ClassNotFoundException,
                                   java.lang.InstantiationException,
                                   java.lang.IllegalAccessException
Description copied from interface: MainMBean
Set the RMIClientSocketFactory implementation class

Specified by:
setClientSocketFactory in interface MainMBean
Parameters:
factoryClassName -
Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

getServerSocketFactory

public java.lang.String getServerSocketFactory()
Description copied from interface: MainMBean
Get the RMIServerSocketFactory implementation class

Specified by:
getServerSocketFactory in interface MainMBean
Returns:
String

setServerSocketFactory

public void setServerSocketFactory(java.lang.String factoryClassName)
                            throws java.lang.ClassNotFoundException,
                                   java.lang.InstantiationException,
                                   java.lang.IllegalAccessException
Description copied from interface: MainMBean
Set the RMIServerSocketFactory implementation class

Specified by:
setServerSocketFactory in interface MainMBean
Parameters:
factoryClassName -
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
Description copied from interface: MainMBean
Set the ServerSocketFactory implementation class

Specified by:
setJNPServerSocketFactory in interface MainMBean
Parameters:
factoryClassName -
Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface MainMBean
Throws:
java.lang.Exception

stop

public void stop()
Specified by:
stop in interface MainMBean

run

public void run()
Runnable implementation ---------------------------------------

Specified by:
run in interface java.lang.Runnable

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
protected Category log; Static --------------------------------------------------------

Parameters:
args -
Throws:
java.lang.Exception

getSelf

public Main getSelf()
Specified by:
getSelf in interface MainMBean
Returns:
org.huihoo.jfox.ejb.server.naming.Main