com.norbl.cbp.ppe.usermonitor
Class UserMonitor

java.lang.Object
  extended by com.norbl.cbp.ppe.usermonitor.UserMonitor

public class UserMonitor
extends java.lang.Object

App run on web accessible host to handle user authorization, record user usage and submit bills. This app runs two 'servers', one that accepts commands from the user (requesting billing authorization) and the the other handling the response from AWS to the authorization dialog. The latter runs runs on port 80, which means that this app must run as root (or in a chroot jail).


Field Summary
static java.lang.String POST_AUTH_URI_FLAG
           
static boolean verbose
           
 
Constructor Summary
UserMonitor(java.lang.String[] argv)
          Parameters taken from the config file: awsUserID awsAccessKey awsSecretKey portJ portH
 
Method Summary
static void main(java.lang.String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POST_AUTH_URI_FLAG

public static final java.lang.String POST_AUTH_URI_FLAG
See Also:
Constant Field Values

verbose

public static boolean verbose
Constructor Detail

UserMonitor

public UserMonitor(java.lang.String[] argv)
            throws java.lang.Exception
Parameters taken from the config file:

Parameters:
argv -
Throws:
java.lang.Exception
Method Detail

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Throws:
java.lang.Exception