1 /* 2 * Copyright (C) The MX4J Contributors. 3 * All rights reserved. 4 * 5 * This software is distributed under the terms of the MX4J License version 1.0. 6 * See the terms of the MX4J License in the documentation provided with this software. 7 */ 8 9 package mx4j.tools.naming; 10 11 /** 12 * Management interface for the CosNamingService MBean. 13 * 14 * @version $Revision: 1.4 $ 15 */ 16 public interface CosNamingServiceMBean 17 { 18 /** 19 * Sets the port on which tnameserv listens for incoming connections. 20 * 21 * @see #getPort 22 */ 23 public void setPort(int port); 24 25 /** 26 * Returns the port on which tnameserv listens for incoming connections 27 * 28 * @see #setPort 29 */ 30 public int getPort(); 31 32 /** 33 * Returns whether this MBean has been started and not yet stopped. 34 * 35 * @see #start 36 */ 37 public boolean isRunning(); 38 39 /** 40 * Starts this MBean: tnameserv can now accept incoming calls 41 * 42 * @see #stop 43 * @see #isRunning 44 */ 45 public void start() throws Exception; 46 47 /** 48 * Stops this MBean: tnameserv cannot accept anymore incoming calls 49 * 50 * @see #start 51 */ 52 public void stop(); 53 } 54