|
||||||||||
| 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()
|
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)
|
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 NamingServiceMBeanpoolMBean - public boolean getCallByValue()
getCallByValue in interface NamingServiceMBeanpublic void setCallByValue(boolean flag)
setCallByValue in interface NamingServiceMBeanflag - - 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.MainMBeanpublic int getPort()
getPort in interface org.jnp.server.MainMBeanpublic void setRmiPort(int port)
setRmiPort in interface org.jnp.server.MainMBeanpublic int getRmiPort()
getRmiPort in interface org.jnp.server.MainMBeanpublic String getBindAddress()
getBindAddress in interface org.jnp.server.MainMBean
public void setBindAddress(String host)
throws UnknownHostException
setBindAddress in interface org.jnp.server.MainMBeanUnknownHostExceptionpublic String getRmiBindAddress()
getRmiBindAddress in interface org.jnp.server.MainMBean
public void setRmiBindAddress(String host)
throws UnknownHostException
setRmiBindAddress in interface org.jnp.server.MainMBeanUnknownHostExceptionpublic int getBacklog()
getBacklog in interface org.jnp.server.MainMBeanpublic void setBacklog(int backlog)
setBacklog in interface org.jnp.server.MainMBeanpublic boolean getInstallGlobalService()
getInstallGlobalService in interface org.jnp.server.MainMBeanpublic void setInstallGlobalService(boolean flag)
setInstallGlobalService in interface org.jnp.server.MainMBeanpublic String getClientSocketFactory()
getClientSocketFactory in interface org.jnp.server.MainMBean
public void setClientSocketFactory(String factoryClassName)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
setClientSocketFactory in interface org.jnp.server.MainMBeanClassNotFoundException
InstantiationException
IllegalAccessExceptionpublic String getServerSocketFactory()
getServerSocketFactory in interface org.jnp.server.MainMBean
public void setServerSocketFactory(String factoryClassName)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
setServerSocketFactory in interface org.jnp.server.MainMBeanClassNotFoundException
InstantiationException
IllegalAccessException
public void setJNPServerSocketFactory(String factoryClassName)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
setJNPServerSocketFactory in interface org.jnp.server.MainMBeanClassNotFoundException
InstantiationException
IllegalAccessExceptionpublic void setInvokerProxyFactory(JRMPProxyFactoryMBean proxyFactory)
protected void startService()
throws Exception
startService in class org.jboss.system.ServiceMBeanSupportException
protected void stopService()
throws Exception
stopService in class org.jboss.system.ServiceMBeanSupportExceptionprotected 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 NamingServiceMBeanfromName - the from nametoName - the to name
Exception - for any error
public void removeAlias(String name)
throws Exception
NamingServiceMBean
removeAlias in interface NamingServiceMBeanname - the name
Exception - for any error
public Object invoke(Invocation invocation)
throws Exception
invoke in interface NamingServiceMBeaninvocation - 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 | |||||||||