1 /* 2 * Copyright (C) 2004 ScalAgent Distributed Technologies 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2.1 of the License, or any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 17 * USA. 18 */ 19 package fr.dyade.aaa.agent; 20 21 public interface AgentMBean { 22 /** 23 * Returns this <code>Agent</code>'s name. 24 * 25 * @return this <code>Agent</code>'s name. 26 */ 27 public String getName(); 28 29 /** 30 * Returns the global unique identifier of the agent. 31 * 32 * @return the global unique identifier of the agent. 33 */ 34 public String getAgentId(); 35 36 // /** 37 // * Returns log topic for the agent. 38 // */ 39 // protected String getLogTopic(); 40 41 /** 42 * Tests if the agent is pinned in memory. 43 * 44 * @return true if this agent is pinned in memory; false otherwise. 45 */ 46 public boolean isFixed(); 47 48 /** 49 * Permits this agent to destroy it. 50 */ 51 public void delete(); 52 53 /** 54 * Returns a string representation of this agent, including the agent's 55 * class, name, global identication, and fixed property. 56 * 57 * @return A string representation of this agent. 58 */ 59 public String toString(); 60 } 61