com.gigaspaces.grid.master
Interface JobSubmission

All Superinterfaces:
net.jini.admin.Administrable, org.jini.rio.event.EventProducer, org.jini.rio.core.MonitorableService, java.rmi.Remote, org.jini.rio.resources.servicecore.Service, org.jini.rio.watch.Watchable

public interface JobSubmission
extends org.jini.rio.resources.servicecore.Service

Provides Job submission management. The Job Submission Management service submits concrete implementations of Task (implementations of a Entry) objects, and writes the Task objects to the GigaSpace and correlates results.


Method Summary
 void deleteJob(Identity jobID)
          Delete a Job job identified by the Identity object
 net.jini.space.JavaSpace getAssociatedSpace()
          Get a JavaSpace from the JobSubmission Association management.
 Job[] getJobs()
          Get configured Job objects from the JobSubmission.
 JobResult submit(Job newJob, boolean useTxn, boolean batch)
          Submit a Job for procesing
 
Methods inherited from interface net.jini.admin.Administrable
getAdmin
 
Methods inherited from interface org.jini.rio.core.MonitorableService
monitor, ping, startHeartbeat
 
Methods inherited from interface org.jini.rio.event.EventProducer
register
 
Methods inherited from interface org.jini.rio.watch.Watchable
fetch, fetch
 

Method Detail

submit

JobResult submit(Job newJob,
                 boolean useTxn,
                 boolean batch)
                 throws JobException,
                        java.rmi.RemoteException
Submit a Job for procesing

Parameters:
newJob - User Job implementation
useTxn - Submit under transaction
batch - Submission mode
Throws:
java.rmi.RemoteException - If communication errors occur
JobException

deleteJob

void deleteJob(Identity jobID)
               throws JobException,
                      java.rmi.RemoteException
Delete a Job job identified by the Identity object

Parameters:
jobID - The Identity object which uniquely identifies the Job
Throws:
java.rmi.RemoteException - If communication errors occur
JobException

getAssociatedSpace

net.jini.space.JavaSpace getAssociatedSpace()
                                            throws java.rmi.RemoteException
Get a JavaSpace from the JobSubmission Association management. If there is no associated JavaSpace, return null.

Throws:
java.rmi.RemoteException - If communication errors occur

getJobs

Job[] getJobs()
              throws java.rmi.RemoteException
Get configured Job objects from the JobSubmission.

Returns:
An array of Job objects that have been configured. If there are no configured Job objects, a zero-length array is returned
Throws:
java.rmi.RemoteException - If communication errors occur


Copyright (c) 2007 GigaSpaces Technologies, Inc.
All Rights Reserved.