Code Search for Developers
 
 
  

Job.java from GridBlocks at Krugle


Show Job.java syntax highlighted

/*
 * Copyright (c) 2005
 * Helsinki Institute of Physics
 * see LICENSE file for details
 *
 * Job.java
 * Created on 27.7.2005
 */
package fi.hip.gb.portlet.jobs;

import java.util.List;
import java.util.Set;

/**
 * Represents a job that can be submitted to the specific grid service
 *
 * @author Antti Ahvenlampi
 * @version $Id: Job.java 475 2005-08-15 14:14:04Z ahvenlam $
 */
public interface Job {
	
	/**
	 * @return name of the job
	 */
	public String getName();
	
	/**
	 * Set name for the job
	 * 
	 * @param name
	 */
	public void setName(String name);
	
	/**
	 * Add parameter to the job
	 * 
	 * @param param
	 */
	public void addParameter(String param);
	
	/**
	 * @return list of the parameters
	 */
	public List getParameters();
	
	/**
	 * Set value of the flag
	 * 
	 * @param name
	 * @param value
	 */
	public void setFlagValue(String name, String value);
	
	/**
	 * Remove flag
	 * 
	 * @param name
	 */
	public void removeFlag(String name);
	
	/**
	 * @param name
	 * @return value of the flag
	 */
	public String getFlagValue(String name);
	
	/**
	 * @return set of the flags
	 */
	public Set getFlags();
	
	/**
	 * @return list of the parameters this job supports
	 */
	public List getSupportedParameters();
	
	/**
	 * @return list of the flags this job supports
	 */
	public List getSupportedFlags();
	
	/**
	 * @param name
	 * @return description of the flag
	 */
	public FlagDescription getFlagDescription(String name);
	
	/**
	 * Submits job to the grid service
	 * 
	 * @return true if succeeded else false
	 */
	public boolean submit();
	
}




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

  agent/
    AgentJob.java
  FlagDescription.java
  Job.java