📄 agenthost.java
字号:
/*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -