PaP
Class startPaP

java.lang.Object
  |
  +--PaP.startPaP
All Implemented Interfaces:
java.io.Serializable

public class startPaP
extends java.lang.Object
implements java.io.Serializable

This class is used to download and start PNES, PAS, and DebugServer. It takes care of environment and properties for JVM and uses PaPurlLoader for loading the classes to be started.

See Also:
Serialized Form

Field Summary
private static java.lang.String[] args
          Command line style arguments to pass to PaP support classes after start
private static java.lang.String codebase
          Key variable for JVM properties, PaP configuration and class loading
private static java.lang.String debugServer
          Key variable for JVM properties, PaP configuration and class loading
private static java.lang.String homeInterface
          Key variable for JVM properties, PaP configuration and class loading
static PaPurlLoader loader
          Dedicated class loader for PaP support
private static java.lang.String nodeProfile
          Key variable for JVM properties, PaP configuration and class loading
private static java.lang.String policy
          Key variable for JVM properties, PaP configuration and class loading
private static java.lang.String whatToStart
          Key variable for JVM properties, PaP configuration and class loading
 
Constructor Summary
startPaP()
           
 
Method Summary
private static void dbg(java.lang.String dbg)
           
private static java.lang.reflect.Method findMethod(java.lang.Class pClass, java.lang.String pMethodName)
          Utility to find specified method of a given class for dynamic loading and invocation.
static void helpMessage()
          Utility method to print usage help message for startPaP.
static void main(java.lang.String[] argv)
          Sets up environment and properties for the JVM, locates, loads, instantiates, initializes and starts PaP support entities.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

loader

public static PaPurlLoader loader
Dedicated class loader for PaP support

whatToStart

private static java.lang.String whatToStart
Key variable for JVM properties, PaP configuration and class loading

codebase

private static java.lang.String codebase
Key variable for JVM properties, PaP configuration and class loading

policy

private static java.lang.String policy
Key variable for JVM properties, PaP configuration and class loading

homeInterface

private static java.lang.String homeInterface
Key variable for JVM properties, PaP configuration and class loading

debugServer

private static java.lang.String debugServer
Key variable for JVM properties, PaP configuration and class loading

nodeProfile

private static java.lang.String nodeProfile
Key variable for JVM properties, PaP configuration and class loading

args

private static java.lang.String[] args
Command line style arguments to pass to PaP support classes after start
Constructor Detail

startPaP

public startPaP()
Method Detail

helpMessage

public static void helpMessage()
Utility method to print usage help message for startPaP.

main

public static void main(java.lang.String[] argv)
Sets up environment and properties for the JVM, locates, loads, instantiates, initializes and starts PaP support entities.

dbg

private static void dbg(java.lang.String dbg)

findMethod

private static java.lang.reflect.Method findMethod(java.lang.Class pClass,
                                                   java.lang.String pMethodName)
                                            throws java.lang.Exception
Utility to find specified method of a given class for dynamic loading and invocation.
Parameters:
pClass - The class in which the method to look up.
pMethodName - The method to look up.
Returns:
Reference to the method that were found.