nl.west.aaa
Class AccountingHandler
java.lang.Object
|
+--nl.west.aaa.AccountingHandler
- public abstract class AccountingHandler
- extends java.lang.Object
- implements MessageHandler
A MessageHandler handling accounting messages.
All messages of type Message.ACCOUNTING_REQUEST
are replied to with a Message.ACCOUNTING_REPLY
message. Subclasses must override the handleRequest() method
to store the message in a database or to generate session records.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AccountingHandler
public AccountingHandler(AAAUnit unit)
handleMessage
public boolean handleMessage(Message msg,
AAAUnit unit)
- Process the incoming message. Return true if message is an
ACCOUNTING_REQUEST message, otherwise return false.
A ACCOUNTING_REPLY message is sent back.
- Specified by:
- handleMessage in interface MessageHandler
handleRequest
protected abstract boolean handleRequest(Message msg,
AAAUnit unit)
- Handle the incoming accounting request.
A accounting request should be replied to with
an accounting reply.
addForPolling
public void addForPolling(Identifier id,
long interval)
removeForPolling
public void removeForPolling(Identifier id)
|