agenthost.java

来自「最新的关于精通rmi这本书的源码」· Java 代码 · 共 30 行

JAVA
30
字号
/*
 * Copyright 1999 by dreamBean Software,
 * All rights reserved.
 */
package masteringrmi.agent.interfaces;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Collection;

/**
 *   This is the interface that all agent hosts must implement.
 *      
 *   @author Rickard 謆erg
 *   @version $Revision:$
 */
public interface AgentHost
   extends Remote
{
   // Public --------------------------------------------------------
   public Agent addAgent(Agent agent)
      throws RemoteException;
      
   public Agent removeAgent(Agent agent)
      throws RemoteException, NoSuchAgentException;
      
   public Collection getAgents()
      throws RemoteException;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?