public class SimpleServer
extends org.griphyn.vdl.toolkit.Toolkit
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
c_logger |
static boolean |
c_terminate |
(package private) org.griphyn.vdl.dbschema.DatabaseSchema |
m_dbschema |
private boolean |
m_emptyFail |
private boolean |
m_noDBase |
(package private) InvocationParser |
m_parser |
(package private) ServerSocket |
m_server |
private static int |
port |
Constructor and Description |
---|
SimpleServer(int port) |
Modifier and Type | Method and Description |
---|---|
int |
checkFile(String filename)
Reads the contents of the specified file, and returns with the
remote exit code contained in the job chain.
|
private int |
determineExitStatus(InvocationRecord ivr)
Determines the exit code of an invocation record.
|
private String |
extractToMemory(File input)
Copy the content of the file into memory.
|
static boolean |
getTerminate() |
static void |
main(String[] args) |
static void |
setTerminate(boolean b) |
void |
showUsage()
Prints the short usage string onto stdout.
|
private static final int port
public static boolean c_terminate
public static org.apache.log4j.Logger c_logger
private boolean m_emptyFail
private boolean m_noDBase
org.griphyn.vdl.dbschema.DatabaseSchema m_dbschema
InvocationParser m_parser
ServerSocket m_server
public static void setTerminate(boolean b)
public static boolean getTerminate()
public void showUsage()
org.griphyn.vdl.toolkit.Toolkit
showUsage
in class org.griphyn.vdl.toolkit.Toolkit
private String extractToMemory(File input) throws org.griphyn.vdl.toolkit.FriendlyNudge
input
- is the file instance from which to read contents.org.griphyn.vdl.toolkit.FriendlyNudge
private int determineExitStatus(InvocationRecord ivr)
ivr
- is the invocation record to put into the database0 regular exit with exit code 0 1 regular exit with exit code > 0 2 failure to run program from kickstart 3 application had died on signal 4 application was suspended (should not happen) 5 failure in exit code parsing 6 impossible case
public int checkFile(String filename)
filename
- is the name of the file with the kickstart record.public static void main(String[] args) throws IOException
IOException