com.norbl.cbp.ppe.usermonitor
Class UserMonitorMessageHandler

java.lang.Object
  extended by com.norbl.cbp.ppe.usermonitor.UserMonitorMessageHandler
All Implemented Interfaces:
java.lang.Runnable

public class UserMonitorMessageHandler
extends java.lang.Object
implements java.lang.Runnable

Responds to messages from network manager apps and instances in ppe networks. This class handles and responds to one message, replies and quits, shutting its connection.


Nested Class Summary
static class UserMonitorMessageHandler.MessageType
           
 
Field Summary
static int CREDIT_LIMIT_DEFAULT
           
static int GLOBAL_AMOUNT_LIMIT_DEFAULT
           
 
Constructor Summary
UserMonitorMessageHandler(ParamsEc2 paramEc2, UserDb userDb, UserStatus userStatus, java.net.Socket socket, java.lang.String postAuthorizationUrl)
           
 
Method Summary
 void run()
          This method reads and replies to one message, then closes it's connnections and quits.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GLOBAL_AMOUNT_LIMIT_DEFAULT

public static int GLOBAL_AMOUNT_LIMIT_DEFAULT

CREDIT_LIMIT_DEFAULT

public static int CREDIT_LIMIT_DEFAULT
Constructor Detail

UserMonitorMessageHandler

public UserMonitorMessageHandler(ParamsEc2 paramEc2,
                                 UserDb userDb,
                                 UserStatus userStatus,
                                 java.net.Socket socket,
                                 java.lang.String postAuthorizationUrl)
Method Detail

run

public void run()
This method reads and replies to one message, then closes it's connnections and quits.

Specified by:
run in interface java.lang.Runnable