org.jboss.naming
Interface NamingServiceMBean

All Superinterfaces:
org.jnp.server.MainMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean
All Known Implementing Classes:
NamingService

public interface NamingServiceMBean
extends org.jboss.system.ServiceMBean, org.jnp.server.MainMBean

MBean interface.


Field Summary
static javax.management.ObjectName 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
 
Method Summary
 void createAlias(String fromName, String toName)
          Create an alias
 boolean getCallByValue()
          Get the call by value flag for jndi lookups.
 Map getMethodMap()
          Expose the Naming service interface mapping as a read-only attribute
 Object invoke(Invocation invocation)
          Expose the Naming service via JMX to invokers.
 void removeAlias(String name)
          Remove an alias
 void setCallByValue(boolean flag)
          Set the call by value flag for jndi lookups.
 void setLookupPool(org.jboss.util.threadpool.BasicThreadPoolMBean poolMBean)
          Set the thread pool used for the bootstrap lookups
 
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
getBacklog, getBindAddress, getClientSocketFactory, getInstallGlobalService, getPort, getRmiBindAddress, getRmiPort, getServerSocketFactory, getUseGlobalService, setBacklog, setBindAddress, setClientSocketFactory, setInstallGlobalService, setJNPServerSocketFactory, setPort, setRmiBindAddress, setRmiPort, setServerSocketFactory, setUseGlobalService, start, stop
 

Field Detail

OBJECT_NAME

static final javax.management.ObjectName OBJECT_NAME
Method Detail

setLookupPool

void setLookupPool(org.jboss.util.threadpool.BasicThreadPoolMBean poolMBean)
Set the thread pool used for the bootstrap lookups

Parameters:
poolMBean -

getCallByValue

boolean getCallByValue()
Get the call by value flag for jndi lookups.

Returns:
true if all lookups are unmarshalled using the caller's TCL, false if in VM lookups return the value by reference.

setCallByValue

void setCallByValue(boolean flag)
Set the call by value flag for jndi lookups.

Parameters:
flag - - true if all lookups are unmarshalled using the caller's TCL, false if in VM lookups return the value by reference.

getMethodMap

Map getMethodMap()
Expose the Naming service interface mapping as a read-only attribute

Returns:
A Map of the Naming interface

invoke

Object invoke(Invocation invocation)
              throws Exception
Expose the Naming service via JMX to invokers.

Parameters:
invocation - A pointer to the invocation object
Returns:
Return value of method invocation.
Throws:
Exception - Failed to invoke method.

createAlias

void createAlias(String fromName,
                 String toName)
                 throws Exception
Create an alias

Parameters:
fromName - the from name
toName - the to name
Throws:
Exception - for any error

removeAlias

void removeAlias(String name)
                 throws Exception
Remove an alias

Parameters:
name - the name
Throws:
Exception - for any error


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.