package com.dy.common.mw.channel.rmi;
|
|
import java.rmi.Remote;
|
import java.rmi.RemoteException;
|
|
public interface RmiFrameWork extends Remote {
|
|
/**
|
* 关闭服务的请求
|
* @return 命令结果的ID,如果为空,则说明出错
|
* @throws RemoteException 异常
|
*/
|
String shutRequest() throws RemoteException;
|
|
/**
|
* 异步请求
|
* @param command 命令
|
* @return 命令结果的ID,如果为空,则说明出错
|
* @throws RemoteException 异常
|
*/
|
String asyncRequest(Object command) throws RemoteException;
|
|
/**
|
* 同步请求
|
* @param command 命令
|
* @return 命令结果,如果为空,则说明出错
|
* @throws RemoteException 异常
|
*/
|
Object syncRequest(Object command) throws RemoteException;
|
}
|
|