com.sun.slamd.admin
Class JobPack

java.lang.Object
  extended by com.sun.slamd.admin.JobPack

public class JobPack
extends java.lang.Object

This class defines methods for dealing with SLAMD job packs. A job pack is a JAR file containing one or more SLAMD jobs and supporting files that may be uploaded as a group and automatically registered with the SLAMD server.

Author:
Neil A. Wilson

Constructor Summary
JobPack(RequestInfo requestInfo)
          Creates a new job pack definition with the provided request.
JobPack(RequestInfo requestInfo, java.lang.String filePath)
          Creates a new job pack definition from a file on the server's filesystem.
 
Method Summary
 void processJobPack()
          Extracts the contents of the job pack and registers the included jobs with the SLAMD server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobPack

public JobPack(RequestInfo requestInfo)
Creates a new job pack definition with the provided request.

Parameters:
requestInfo - Information about the request from the client, including the file data.

JobPack

public JobPack(RequestInfo requestInfo,
               java.lang.String filePath)
Creates a new job pack definition from a file on the server's filesystem.

Parameters:
requestInfo - Information about the request from the client.
filePath - The path to the job pack file on the server's filesystem.
Method Detail

processJobPack

public void processJobPack()
                    throws SLAMDServerException
Extracts the contents of the job pack and registers the included jobs with the SLAMD server.

Throws:
SLAMDServerException - If a problem occurs while processing the job pack JAR file.