Code Search for Developers
 
 
  

Storage.java from GridBlocks at Krugle


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

GridBlocks

GridBlocks builds a grid application framework via easy-to-use building blocks in distributed environment. The framework offers components for Grid security, distributed storage, computing, and Portlet web interfaces.

Project homepage: http://sourceforge.net/projects/gridblocks
Programming language(s): Java,JSP,XML
License: other

  plugin/
    ConfigPlugin.java
  types/
  Config.java
  ConfigMBean.java
  DefaultStorage.java
  JobAttachment.java
  JobExecutable.java
  JobInfo.java
  SerializedObject.java
  SessionHandler.java
  SessionHandlerMBean.java
  SessionListener.java
  Storage.java
  WorkDescription.java
  WorkResult.java
  WorkStatus.java
  package.html