com.norbl.cbp.ppe.usermonitor
Class UserMonitor
java.lang.Object
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).
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 |
POST_AUTH_URI_FLAG
public static final java.lang.String POST_AUTH_URI_FLAG
- See Also:
- Constant Field Values
verbose
public static boolean verbose
UserMonitor
public UserMonitor(java.lang.String[] argv)
throws java.lang.Exception
- Parameters taken from the config file:
- awsUserID
- awsAccessKey
- awsSecretKey
- portJ
- portH
- Parameters:
argv
-
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] argv)
throws java.lang.Exception
- Throws:
java.lang.Exception