?? helloworld.java
字號:
/*
* Copyright 1999 by dreamBean Software,
* All rights reserved.
*/
package masteringrmi.helloworld.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.
*
* @see masteringrmi.helloworld.server.HelloWorldImpl
* @author Rickard 謆erg (rickard@dreambean.com)
* @version $Revision:$
*/
public interface HelloWorld
extends Remote
{
// Constants -----------------------------------------------------
public static String NAME = "helloworld";
// 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;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -