mqwfes
Class server

java.lang.Object
  |
  +--mqwfes.server

public class server
extends java.lang.Object

MQ Workflow Event Server Main class
handles connections to MQWF, gets server list, starts programm classes.

The MQ Workflow Event Server reads special designed activities in MQ Workflow to perform Flow Control operations.
See manual for user details


For description of the command line parameters of this main class, go to the comment on the "checkArgs" method

Author:
Kevin Bullmann

Constructor Summary
server()
          Creates a new instance of server
 
Method Summary
static Configuration checkargs(java.lang.String[] args)
          Gets and "checks" the parameters and values in args[].
static java.lang.String getState(int value)
          converts numerical value of a state of an item to its string representation
static void main(java.lang.String[] args)
          main method.
static Configuration parseConfig()
          checks if config file is valid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

server

public server()
Creates a new instance of server

Method Detail

main

public static void main(java.lang.String[] args)
main method. Startup, start threads, log on to runtime ect...

Parameters:
args - the command line arguments

parseConfig

public static Configuration parseConfig()
                                 throws java.io.FileNotFoundException,
                                        java.io.IOException
checks if config file is valid

Returns:
returns true if config file valid, false if not
Throws:
java.io.FileNotFoundException - config file could possibly not be found
java.io.IOException - for errors while reading config file. InputStream stuff...

checkargs

public static Configuration checkargs(java.lang.String[] args)
Gets and "checks" the parameters and values in args[].

Parameters:
args - commandline arguments
Returns:
returns a Configuration object with all commandline settings Command line Arguments:
-u USERNAME --- for the runtime login name
-p PASSWORD --- for the runtime password
-i PathToINI-FILE --- for the full path to the ini-file
-s KEYWORD --- for the server mode (DIRECTORY or DELAY)
-r REFRESHworklist --- for the delay between worklist refreshes

for Priorities in DIRECTORY mode:
-p1 PRIORITY1, -p2 PRIORITY2, -p3 PRIORITY3, -p4 PRIORITY4, -p5 PRIORITY5, -p6 PRIORITY6

getState

public static java.lang.String getState(int value)
converts numerical value of a state of an item to its string representation

Parameters:
value - numerical value of a state of an item
Returns:
returns the string representation of the state of an item