KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > naming > NamingServiceMBean


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.naming;
23
24 /**
25  * MBean interface.
26  */

27 public interface NamingServiceMBean extends org.jboss.system.ServiceMBean, org.jnp.server.MainMBean {
28
29    //default object name
30
public static final javax.management.ObjectName JavaDoc OBJECT_NAME = org.jboss.mx.util.ObjectNameFactory.create("jboss:service=Naming");
31
32    /**
33     * Set the thread pool used for the bootstrap lookups
34     * @param poolMBean */

35   void setLookupPool(org.jboss.util.threadpool.BasicThreadPoolMBean poolMBean) ;
36
37    /**
38     * Get the call by value flag for jndi lookups.
39     * @return true if all lookups are unmarshalled using the caller's TCL, false if in VM lookups return the value by reference. */

40   boolean getCallByValue() ;
41
42    /**
43     * Set the call by value flag for jndi lookups.
44     * @param flag - true if all lookups are unmarshalled using the caller's TCL, false if in VM lookups return the value by reference. */

45   void setCallByValue(boolean flag) ;
46
47    /**
48     * Expose the Naming service interface mapping as a read-only attribute
49     * @return A Map<Long hash, Method> of the Naming interface */

50   java.util.Map JavaDoc getMethodMap() ;
51
52    /**
53     * Expose the Naming service via JMX to invokers.
54     * @param invocation A pointer to the invocation object
55     * @return Return value of method invocation.
56     * @throws Exception Failed to invoke method. */

57   java.lang.Object JavaDoc invoke(org.jboss.invocation.Invocation invocation) throws java.lang.Exception JavaDoc;
58   
59   /**
60    * Create an alias
61    *
62    * @param fromName the from name
63    * @param toName the to name
64    * @throws Exception for any error
65    */

66   void createAlias(String JavaDoc fromName, String JavaDoc toName) throws Exception JavaDoc;
67   
68   /**
69    * Remove an alias
70    *
71    * @param name the name
72    * @throws Exception for any error
73    */

74   void removeAlias(String JavaDoc name) throws Exception JavaDoc;
75 }
76
Popular Tags