com.pepper.platform.program
Class PepperProgramProcess

java.lang.Object
  extended by com.pepper.platform.process.PepperProcess
      extended by com.pepper.platform.program.PepperProgramProcess
All Implemented Interfaces:
Serializable, Runnable

public class PepperProgramProcess
extends com.pepper.platform.process.PepperProcess

Subclass of PepperProgram that represents an AbstractPepperProgram instance

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.pepper.platform.process.PepperProcess
initFailed
 
Constructor Summary
PepperProgramProcess(int pid, String classname, String[] args, List classPathUrls)
          Creates a new PepperProgramProcess instance.
 
Method Summary
 Object constructClass()
          Override class construction
 Object getInitPageArg()
          Get any init page arguments
 String getInitPageURLArg()
          From the URL query string, get the attribute "showPage", which represents the url of the intial page to show when the package is launched
 AbstractPepperProgram getProgram()
          Describe getProgram method here.
 boolean getShowProgramArg()
          Get the attribute "showProcess" from the URL query string
 String getURLArg()
          Return the value of the url argument which represents the url used to launch this package
 void setInitPageArg(Object arg)
          Set any args that need to be passed to the initial page
 void setInitPageURL(String url)
          Override the init page url
 void terminate()
          First call destroy on the PepperProgram before killing the thread
 
Methods inherited from class com.pepper.platform.process.PepperProcess
getArgs, getClassLoader, getInitFailed, getPid, getProcessThreadGroup, getTheObject, run, setLauncher, setPackageId, setPackageTitle, setTheObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PepperProgramProcess

public PepperProgramProcess(int pid,
                            String classname,
                            String[] args,
                            List classPathUrls)
Creates a new PepperProgramProcess instance.

Parameters:
classname - a String value
args - a String[] value
classPathUrls - a List value
Method Detail

getProgram

public AbstractPepperProgram getProgram()
Describe getProgram method here.

Returns:
an AbstractPepperProgram value

terminate

public void terminate()
               throws Exception
First call destroy on the PepperProgram before killing the thread

Overrides:
terminate in class com.pepper.platform.process.PepperProcess
Throws:
Exception

constructClass

public Object constructClass()
                      throws Exception
Override class construction

Overrides:
constructClass in class com.pepper.platform.process.PepperProcess
Throws:
Exception

getURLArg

public String getURLArg()
Return the value of the url argument which represents the url used to launch this package

Returns:
a String value

getShowProgramArg

public boolean getShowProgramArg()
Get the attribute "showProcess" from the URL query string

Returns:
false if showProcess is explicity set to false. Return true otherwise, even if showProcess doesn't exist

getInitPageURLArg

public String getInitPageURLArg()
From the URL query string, get the attribute "showPage", which represents the url of the intial page to show when the package is launched

Returns:
the value of the initial page url if any specified

setInitPageURL

public void setInitPageURL(String url)
Override the init page url

Parameters:
url - a String value

setInitPageArg

public void setInitPageArg(Object arg)
Set any args that need to be passed to the initial page

Parameters:
arg - an Object value

getInitPageArg

public Object getInitPageArg()
Get any init page arguments

Returns:
an Object value


Copyright © 2006-2007 Pepper Computer, Inc. All Rights Reserved.