Show Storage.java syntax highlighted
/**
* Copyright (c) 2006
* Helsinki Institute of Physics
* see LICENSE file for details
*
* Storage.java
* Created on Jun 17, 2003
*/
package fi.hip.gb.core;
import java.rmi.RemoteException;
import fi.hip.gb.net.ChangeListener;
/**
* Storage interface for managing local copies of work description, status,
* results and errors. Used by many classes which need these basic storage
* components. Supports notifications.
*
* @author Juho Karppinen
*/
public interface Storage extends ChangeListener {
/**
* Initialise containers.
* @param workDescription
* description of the job which status will be stored
*/
public void init(WorkDescription workDescription);
/**
* Gets the work description of the job.
*
* @return <code>WorkDescription</code> containing descriptions of the job.
*/
public WorkDescription getDescription();
/**
* Gets the current status of the execution.
*
* @return <code>WorkStatus</code> containing status of the job.
*/
public WorkStatus getStatus();
/**
* Gets the results of the job.
*
* @return <code>WorkResult</code> containg results of the job.
*/
public WorkResult getResult();
/**
* Adds or remove listeners for changes in the status and results.
*
* @param listener listener for notifications
* @param enabled enable or disable notification messages
* @throws RemoteException if could not set the listener
*/
public void setChangeListener(ChangeListener listener, Boolean enabled);
}
See more files for this project here