public class Main extends Object implements MainMBean
Modifier and Type | Field and Description |
---|---|
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 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 NamingBean |
theServer
The Naming interface server implementation
|
protected boolean |
UseGlobalService
A flag indicating if theServer will try to use the NamingContext.setLocal value
|
Modifier and Type | Method and Description |
---|---|
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
|
Executor |
getLookupExector() |
Exception |
getLookupListenerException()
Get any exception seen during the lookup listening port creation
|
NamingBean |
getNamingInfo() |
Naming |
getNamingInstance()
Access the
|
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.
|
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.
|
boolean |
isEnableRmiServerHostname() |
static void |
main(String[] args) |
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 |
setEnableRmiServerHostname(boolean enableRmiServerHostname) |
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 |
setLookupExector(Executor lookupExector)
Set the Executor to use for bootstrap socket lookup handling.
|
void |
setLookupPool(org.jboss.util.threadpool.ThreadPool lookupPool)
Deprecated.
|
void |
setNamingInfo(NamingBean info)
Set the NamingBean/Naming implementation
|
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 |
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() |
protected NamingBean 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
public Main()
public Main(String categoryName)
public NamingBean getNamingInfo()
getNamingInfo
in interface MainMBean
public void setNamingInfo(NamingBean info)
setNamingInfo
in interface MainMBean
info
- @Deprecated public void setLookupPool(org.jboss.util.threadpool.ThreadPool lookupPool)
public Executor getLookupExector()
public void setLookupExector(Executor lookupExector)
lookupExector
- - An Executor that supports at least 2 threadspublic Exception getLookupListenerException()
getLookupListenerException
in interface MainMBean
public boolean getCallByValue()
getCallByValue
in interface MainMBean
public void setCallByValue(boolean flag)
setCallByValue
in interface MainMBean
flag
- - true if all lookups are unmarshalled using the caller's TCL,
false if in VM lookups return the value by reference.public Object getNamingProxy() throws Exception
MainMBean
getNamingProxy
in interface MainMBean
Exception
public void setNamingProxy(Object proxy) throws IOException
setNamingProxy
in interface MainMBean
IOException
public void setRmiPort(int p)
setRmiPort
in interface MainMBean
public int getRmiPort()
getRmiPort
in interface MainMBean
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 String getBootstrapURL()
getBootstrapURL
in interface MainMBean
null
if no bound lookup socket existspublic boolean isEnableRmiServerHostname()
public void setEnableRmiServerHostname(boolean enableRmiServerHostname)
public int getBacklog()
getBacklog
in interface MainMBean
public void setBacklog(int backlog)
setBacklog
in interface MainMBean
public boolean getInstallGlobalService()
getInstallGlobalService
in interface MainMBean
public void setInstallGlobalService(boolean flag)
MainMBean
setInstallGlobalService
in interface MainMBean
public boolean getUseGlobalService()
MainMBean
getUseGlobalService
in interface MainMBean
public void setUseGlobalService(boolean flag)
MainMBean
setUseGlobalService
in interface MainMBean
public String getClientSocketFactory()
getClientSocketFactory
in interface MainMBean
public void setClientSocketFactory(String factoryClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException
MainMBean
setClientSocketFactory
in interface MainMBean
ClassNotFoundException
InstantiationException
IllegalAccessException
public RMIClientSocketFactory getClientSocketFactoryBean()
MainMBean
getClientSocketFactoryBean
in interface MainMBean
public void setClientSocketFactoryBean(RMIClientSocketFactory factory)
setClientSocketFactoryBean
in interface MainMBean
public String getServerSocketFactory()
getServerSocketFactory
in interface MainMBean
public void setServerSocketFactory(String factoryClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException
MainMBean
setServerSocketFactory
in interface MainMBean
ClassNotFoundException
InstantiationException
IllegalAccessException
public RMIServerSocketFactory getServerSocketFactoryBean()
MainMBean
getServerSocketFactoryBean
in interface MainMBean
public void setServerSocketFactoryBean(RMIServerSocketFactory factory)
setServerSocketFactoryBean
in interface MainMBean
public String getJNPServerSocketFactory()
getJNPServerSocketFactory
in interface MainMBean
public void setJNPServerSocketFactory(String factoryClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException
setJNPServerSocketFactory
in interface MainMBean
ClassNotFoundException
InstantiationException
IllegalAccessException
public ServerSocketFactory getJNPServerSocketFactoryBean()
MainMBean
getJNPServerSocketFactoryBean
in interface MainMBean
public void setJNPServerSocketFactoryBean(ServerSocketFactory factory)
setJNPServerSocketFactoryBean
in interface MainMBean
public Naming getNamingInstance()
getNamingInstance
in interface NamingBean
public void start() throws Exception
protected void initJnpInvoker() throws IOException
IOException
protected void initBootstrapListener()
protected void initCustomSocketFactories()
Copyright © 2015 JBoss by Red Hat. All rights reserved.