|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jnp.server.Main
A main() entry point for running the jnp naming service implementation as a standalone process.
Field Summary | |
protected int |
backlog
The serverSocket listen queue depth |
protected InetAddress |
bindAddress
The interface to bind to for the lookup socket. |
protected RMIClientSocketFactory |
clientSocketFactory
An optional custom client socket factory |
protected String |
clientSocketFactoryName
The class name of the optional custom client socket factory |
protected boolean |
InstallGlobalService
A flag indicating if theServer will be set as the NamingContext.setLocal value |
protected boolean |
isStubExported
|
protected ServerSocketFactory |
jnpServerSocketFactory
An optional custom server socket factory |
protected String |
jnpServerSocketFactoryName
The class name of the optional custom JNP server socket factory |
protected org.jboss.logging.Logger |
log
|
protected org.jboss.util.threadpool.ThreadPool |
lookupPool
|
protected int |
port
The jnp protocol listening port. |
protected InetAddress |
rmiBindAddress
The interface to bind to for the Naming RMI server. |
protected int |
rmiPort
The RMI port on which the Naming implementation will be exported. |
protected ServerSocket |
serverSocket
The jnp server socket through which the NamingServer stub is vended |
protected RMIServerSocketFactory |
serverSocketFactory
An optional custom server socket factory |
protected String |
serverSocketFactoryName
The class name of the optional custom server socket factory |
protected MarshalledObject |
serverStub
|
protected NamingServer |
theServer
The Naming interface server implementation |
Constructor Summary | |
Main()
|
|
Main(String categoryName)
|
Method Summary | |
int |
getBacklog()
|
String |
getBindAddress()
|
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. |
org.jboss.util.threadpool.ThreadPool |
getLookupPool()
|
int |
getPort()
|
String |
getRmiBindAddress()
|
int |
getRmiPort()
|
Naming |
getServer()
|
String |
getServerSocketFactory()
Get the RMIServerSocketFactory implementation class |
protected void |
initBootstrapListener()
Bring up the bootstrap lookup port for obtaining the naming service proxy |
protected void |
initCustomSocketFactories()
Init the clientSocketFactory, serverSocketFactory using the bind address. |
protected void |
initJnpInvoker()
This code should be moved to a seperate invoker in the org.jboss.naming package. |
static void |
main(String[] args)
|
void |
setBacklog(int backlog)
|
void |
setBindAddress(String host)
|
void |
setClientSocketFactory(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(String factoryClassName)
Set the ServerSocketFactory implementation class |
void |
setLookupPool(org.jboss.util.threadpool.ThreadPool lookupPool)
|
void |
setNamingProxy(Object proxy)
|
void |
setPort(int p)
|
void |
setRmiBindAddress(String host)
|
void |
setRmiPort(int p)
|
void |
setServerSocketFactory(String factoryClassName)
Set the RMIServerSocketFactory implementation class |
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected NamingServer theServer
protected MarshalledObject serverStub
protected boolean isStubExported
protected ServerSocket serverSocket
protected RMIClientSocketFactory clientSocketFactory
protected RMIServerSocketFactory serverSocketFactory
protected ServerSocketFactory jnpServerSocketFactory
protected String clientSocketFactoryName
protected String serverSocketFactoryName
protected String jnpServerSocketFactoryName
protected InetAddress bindAddress
protected InetAddress rmiBindAddress
protected int backlog
protected int port
protected int rmiPort
protected boolean InstallGlobalService
protected org.jboss.logging.Logger log
protected org.jboss.util.threadpool.ThreadPool lookupPool
Constructor Detail |
public Main()
public Main(String categoryName)
Method Detail |
public static void main(String[] args) throws Exception
Exception
public Naming getServer()
public org.jboss.util.threadpool.ThreadPool getLookupPool()
public void setLookupPool(org.jboss.util.threadpool.ThreadPool lookupPool)
public void setNamingProxy(Object proxy) throws IOException
IOException
public void setRmiPort(int p)
setRmiPort
in interface MainMBean
public int getRmiPort()
getRmiPort
in interface MainMBean
public void setPort(int p)
public int getPort()
public String getBindAddress()
getBindAddress
in interface MainMBean
public void setBindAddress(String host) throws UnknownHostException
setBindAddress
in interface MainMBean
UnknownHostException
public String getRmiBindAddress()
getRmiBindAddress
in interface MainMBean
public void setRmiBindAddress(String host) throws UnknownHostException
setRmiBindAddress
in interface MainMBean
UnknownHostException
public int getBacklog()
getBacklog
in interface MainMBean
public void setBacklog(int backlog)
setBacklog
in interface MainMBean
public boolean getInstallGlobalService()
MainMBean
getInstallGlobalService
in interface MainMBean
public void setInstallGlobalService(boolean flag)
MainMBean
setInstallGlobalService
in interface MainMBean
public String getClientSocketFactory()
MainMBean
getClientSocketFactory
in interface MainMBean
public void setClientSocketFactory(String factoryClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException
MainMBean
setClientSocketFactory
in interface MainMBean
public String getServerSocketFactory()
MainMBean
getServerSocketFactory
in interface MainMBean
public void setServerSocketFactory(String factoryClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException
MainMBean
setServerSocketFactory
in interface MainMBean
public void setJNPServerSocketFactory(String factoryClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException
MainMBean
setJNPServerSocketFactory
in interface MainMBean
public void start() throws Exception
public void stop()
protected void initJnpInvoker() throws IOException
IOException
protected void initBootstrapListener()
protected void initCustomSocketFactories()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |