gov.bnl.star.offline.scheduler.util.sandbox
Interface Sandbox

All Known Implementing Classes:
LocalSandbox, PackmanSandbox, ZipSandbox

public interface Sandbox

Base interface for all sandboxs

Author:
Levente Hajdu

Method Summary
 void addPackage(SandboxPackage sandboxPackage)
          Used to add a package to the sand box
 void addSandboxedFiles(java.lang.String file)
           
 java.lang.String CopyCommand(SandboxPackage packageObj)
           
 java.util.List getPackages()
          Returns a List of sandboxPackage object that are part of the sandbox
 java.util.List getSandboxedFiles()
           
 java.lang.String InitializationCommands()
           
 java.lang.String installCommand(SandboxPackage packageObj, Job job)
           
 boolean MakePackage(SandboxPackage packageObj, Request request)
          Make the package if possible.
 boolean PackageExists(SandboxPackage packageObj)
           
 void Sandbox()
          Creates a new instance of Sandbox
 void setPackages(java.util.List packages)
          Sets the list of packages that make up the sand box, it is best to set one by one using addPackage(SandboxPackage sandboxPackage)
 void setSandboxedFiles(java.util.List SandboxedFiles)
           
 

Method Detail

Sandbox

void Sandbox()
Creates a new instance of Sandbox


addPackage

void addPackage(SandboxPackage sandboxPackage)
Used to add a package to the sand box


getPackages

java.util.List getPackages()
Returns a List of sandboxPackage object that are part of the sandbox


setPackages

void setPackages(java.util.List packages)
Sets the list of packages that make up the sand box, it is best to set one by one using addPackage(SandboxPackage sandboxPackage)


MakePackage

boolean MakePackage(SandboxPackage packageObj,
                    Request request)
Make the package if possible.

Returns:
true if the package was made

PackageExists

boolean PackageExists(SandboxPackage packageObj)
Returns:
true of the package exists

InitializationCommands

java.lang.String InitializationCommands()

installCommand

java.lang.String installCommand(SandboxPackage packageObj,
                                Job job)
Returns:
the install command to install the package

CopyCommand

java.lang.String CopyCommand(SandboxPackage packageObj)
Returns:
the cammand to copy the pakege

getSandboxedFiles

java.util.List getSandboxedFiles()

setSandboxedFiles

void setSandboxedFiles(java.util.List SandboxedFiles)

addSandboxedFiles

void addSandboxedFiles(java.lang.String file)


Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.