smartworld.java
来自「最新的关于精通rmi这本书的源码」· Java 代码 · 共 45 行
JAVA
45 行
/*
* Copyright 1999 by dreamBean Software,
* All rights reserved.
*/
package smartworld.interfaces;
import java.rmi.Remote;
import java.rmi.RemoteException;
/**
* This is the remote interface of the remote object.
*
* It has one method which can be invoked remotely.
*
* @author Rickard 謆erg (rickard@dreambean.com)
* @version $Revision:$
*/
public interface SmartWorld
extends Remote
{
// Constants -----------------------------------------------------
public static String NAME = "smartworld";
// Public --------------------------------------------------------
/**
* Send the name of the caller, and return a greeting.
*
* Tip: Send "World" as name to get "Hello World!" back.
*
* @param name a name
* @return a greeting
* @exception RemoteException thrown if something goes wrong in the RMI-implementation
*/
public String helloWorld(String name)
throws RemoteException;
public void sayHi(String name, boolean nice)
throws RemoteException;
public String[] testArrays(int[][] arr)
throws RemoteException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?