|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.naming.NamingService
public class NamingService
A JBoss service that starts the jnp JNDI server.
Field Summary |
---|
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.naming.NamingServiceMBean |
---|
OBJECT_NAME |
Fields inherited from interface org.jboss.system.ServiceMBean |
---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
---|---|
NamingService()
|
Method Summary | |
---|---|
void |
createAlias(String fromName,
String toName)
Create an alias |
int |
getBacklog()
|
String |
getBindAddress()
|
boolean |
getCallByValue()
Get the call by value flag for jndi lookups. |
String |
getClientSocketFactory()
|
boolean |
getInstallGlobalService()
|
Map |
getMethodMap()
Expose the Naming service interface mapping as a read-only attribute |
protected org.jnp.server.Main |
getNamingServer()
The getNamingServer method makes this class
extensible, but it is a hack. |
int |
getPort()
|
String |
getRmiBindAddress()
|
int |
getRmiPort()
|
String |
getServerSocketFactory()
|
boolean |
getUseGlobalService()
|
Object |
invoke(Invocation invocation)
Expose the Naming service via JMX to invokers. |
void |
removeAlias(String name)
Remove an alias |
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)
|
void |
setInstallGlobalService(boolean flag)
|
void |
setInvokerProxyFactory(JRMPProxyFactoryMBean proxyFactory)
|
void |
setJNPServerSocketFactory(String factoryClassName)
|
void |
setLookupPool(org.jboss.util.threadpool.BasicThreadPoolMBean poolMBean)
Set the thread pool used for the bootstrap lookups |
void |
setPort(int port)
|
void |
setRmiBindAddress(String host)
|
void |
setRmiPort(int port)
|
void |
setServerSocketFactory(String factoryClassName)
|
void |
setUseGlobalService(boolean flag)
|
protected void |
startService()
|
protected void |
stopService()
|
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
---|
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Methods inherited from interface org.jnp.server.MainMBean |
---|
start, stop |
Constructor Detail |
---|
public NamingService()
Method Detail |
---|
public void setLookupPool(org.jboss.util.threadpool.BasicThreadPoolMBean poolMBean)
setLookupPool
in interface NamingServiceMBean
poolMBean
- public boolean getCallByValue()
getCallByValue
in interface NamingServiceMBean
public void setCallByValue(boolean flag)
setCallByValue
in interface NamingServiceMBean
flag
- - true if all lookups are unmarshalled using the caller's TCL,
false if in VM lookups return the value by reference.public void setPort(int port)
setPort
in interface org.jnp.server.MainMBean
public int getPort()
getPort
in interface org.jnp.server.MainMBean
public void setRmiPort(int port)
setRmiPort
in interface org.jnp.server.MainMBean
public int getRmiPort()
getRmiPort
in interface org.jnp.server.MainMBean
public String getBindAddress()
getBindAddress
in interface org.jnp.server.MainMBean
public void setBindAddress(String host) throws UnknownHostException
setBindAddress
in interface org.jnp.server.MainMBean
UnknownHostException
public String getRmiBindAddress()
getRmiBindAddress
in interface org.jnp.server.MainMBean
public void setRmiBindAddress(String host) throws UnknownHostException
setRmiBindAddress
in interface org.jnp.server.MainMBean
UnknownHostException
public int getBacklog()
getBacklog
in interface org.jnp.server.MainMBean
public void setBacklog(int backlog)
setBacklog
in interface org.jnp.server.MainMBean
public boolean getInstallGlobalService()
getInstallGlobalService
in interface org.jnp.server.MainMBean
public void setInstallGlobalService(boolean flag)
setInstallGlobalService
in interface org.jnp.server.MainMBean
public boolean getUseGlobalService()
getUseGlobalService
in interface org.jnp.server.MainMBean
public void setUseGlobalService(boolean flag)
setUseGlobalService
in interface org.jnp.server.MainMBean
public String getClientSocketFactory()
getClientSocketFactory
in interface org.jnp.server.MainMBean
public void setClientSocketFactory(String factoryClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException
setClientSocketFactory
in interface org.jnp.server.MainMBean
ClassNotFoundException
InstantiationException
IllegalAccessException
public String getServerSocketFactory()
getServerSocketFactory
in interface org.jnp.server.MainMBean
public void setServerSocketFactory(String factoryClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException
setServerSocketFactory
in interface org.jnp.server.MainMBean
ClassNotFoundException
InstantiationException
IllegalAccessException
public void setJNPServerSocketFactory(String factoryClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException
setJNPServerSocketFactory
in interface org.jnp.server.MainMBean
ClassNotFoundException
InstantiationException
IllegalAccessException
public void setInvokerProxyFactory(JRMPProxyFactoryMBean proxyFactory)
protected void startService() throws Exception
startService
in class org.jboss.system.ServiceMBeanSupport
Exception
protected void stopService() throws Exception
stopService
in class org.jboss.system.ServiceMBeanSupport
Exception
protected org.jnp.server.Main getNamingServer()
getNamingServer
method makes this class
extensible, but it is a hack. The NamingServer should be
exposed directly as an xmbean, and the startup logic put in
either an interceptor, the main class itself, or an auxilliary
mbean (for the enc).
Main
valuepublic Map getMethodMap()
getMethodMap
in interface NamingServiceMBean
public void createAlias(String fromName, String toName) throws Exception
NamingServiceMBean
createAlias
in interface NamingServiceMBean
fromName
- the from nametoName
- the to name
Exception
- for any errorpublic void removeAlias(String name) throws Exception
NamingServiceMBean
removeAlias
in interface NamingServiceMBean
name
- the name
Exception
- for any errorpublic Object invoke(Invocation invocation) throws Exception
invoke
in interface NamingServiceMBean
invocation
- A pointer to the invocation object
Exception
- Failed to invoke method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |