remotethread.java

来自「JAMPACK Grid programming」· Java 代码 · 共 39 行

JAVA
39
字号
/**
 *
 * Program         : RemoteThread.java
 *
 * Author          : Vijayakrishnan Menon
 *
 * Date            : 13th Dec 2005
 *
 * Organization    : Centre for Excellence in 
 *						Computational Engineering and Networking (CEN),
 *                   		Amrita Viswa Vidyapeetham
 **/

package JAMPack;


/** This interface contains all the methods necessory to control a remote thread.
  * The JRemoteThread class implements this remote interface and can be used to 
  * spawn, initialise and control remote threads. It supports state depended 
  * threads and hence can be used for distributing 
  **/

public interface RemoteThread extends java.rmi.Remote {

    public void suspend() throws java.rmi.RemoteException;
    public void resume() throws java.rmi.RemoteException;
    public void stop() throws java.rmi.RemoteException;
    public void start() throws java.rmi.RemoteException;
    public String getName() throws java.rmi.RemoteException;
    public void setPriority(int newPriority) throws java.rmi.RemoteException;
    public boolean isAlive() throws java.rmi.RemoteException;
    public void initialise(int rank, int size, Task task,JGrid workGrid) 
    											throws java.rmi.RemoteException;
    public int getID() throws java.rmi.RemoteException;
    public boolean getValidity() throws java.rmi.RemoteException;
    public void setGrid(JGrid grid) throws java.rmi.RemoteException;
}

⌨️ 快捷键说明

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