|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jnp.server.Main
public class 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
The thread pool used to handle jnp stub lookup requests |
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 Naming |
theServer
The Naming interface server implementation |
protected boolean |
UseGlobalService
A flag indicating if theServer will try to use the NamingContext.setLocal value |
| Constructor Summary | |
|---|---|
Main()
|
|
Main(String categoryName)
|
|
| Method Summary | |
|---|---|
int |
getBacklog()
|
String |
getBindAddress()
|
String |
getClientSocketFactory()
|
boolean |
getInstallGlobalService()
|
org.jboss.util.threadpool.ThreadPool |
getLookupPool()
|
int |
getPort()
|
String |
getRmiBindAddress()
|
int |
getRmiPort()
|
Naming |
getServer()
|
String |
getServerSocketFactory()
|
boolean |
getUseGlobalService()
Get the UseGlobalService which defines whether the MainMBean's Naming server will initialized from the existing NamingContext.setLocal global value. |
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)
The RMIClientSocketFactory implementation class |
void |
setInstallGlobalService(boolean flag)
Whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value |
void |
setJNPServerSocketFactory(String factoryClassName)
The JNPServerSocketFactory 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)
The RMIServerSocketFactory implementation class |
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Naming 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 boolean UseGlobalService
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
Exceptionpublic 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
IOExceptionpublic void setRmiPort(int p)
setRmiPort in interface MainMBeanpublic int getRmiPort()
getRmiPort in interface MainMBeanpublic void setPort(int p)
setPort in interface MainMBeanpublic int getPort()
getPort in interface MainMBeanpublic String getBindAddress()
getBindAddress in interface MainMBean
public void setBindAddress(String host)
throws UnknownHostException
setBindAddress in interface MainMBeanUnknownHostExceptionpublic String getRmiBindAddress()
getRmiBindAddress in interface MainMBean
public void setRmiBindAddress(String host)
throws UnknownHostException
setRmiBindAddress in interface MainMBeanUnknownHostExceptionpublic int getBacklog()
getBacklog in interface MainMBeanpublic void setBacklog(int backlog)
setBacklog in interface MainMBeanpublic boolean getInstallGlobalService()
getInstallGlobalService in interface MainMBeanpublic void setInstallGlobalService(boolean flag)
MainMBean
setInstallGlobalService in interface MainMBeanpublic boolean getUseGlobalService()
MainMBean
getUseGlobalService in interface MainMBeanpublic void setUseGlobalService(boolean flag)
MainMBean
setUseGlobalService in interface MainMBeanpublic String getClientSocketFactory()
getClientSocketFactory in interface MainMBean
public void setClientSocketFactory(String factoryClassName)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
MainMBean
setClientSocketFactory in interface MainMBeanClassNotFoundException
InstantiationException
IllegalAccessExceptionpublic String getServerSocketFactory()
getServerSocketFactory in interface MainMBean
public void setServerSocketFactory(String factoryClassName)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
MainMBean
setServerSocketFactory in interface MainMBeanClassNotFoundException
InstantiationException
IllegalAccessException
public void setJNPServerSocketFactory(String factoryClassName)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
MainMBean
setJNPServerSocketFactory in interface MainMBeanClassNotFoundException
InstantiationException
IllegalAccessException
public void start()
throws Exception
start in interface MainMBeanExceptionpublic void stop()
stop in interface MainMBean
protected void initJnpInvoker()
throws IOException
IOExceptionprotected void initBootstrapListener()
protected void initCustomSocketFactories()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||