com.notuvy.singleapp.multiuser
Class MultiUserDefer

java.lang.Object
  extended by com.notuvy.singleapp.multiuser.GenericEnforcer
      extended by com.notuvy.singleapp.multiuser.MultiUserSingleAppEnforcer
          extended by com.notuvy.singleapp.multiuser.MultiUserDefer
All Implemented Interfaces:
Enforcer

public class MultiUserDefer
extends MultiUserSingleAppEnforcer

Basic description

Author:
murali

Field Summary
 
Fields inherited from class com.notuvy.singleapp.multiuser.MultiUserSingleAppEnforcer
fClientConnection, fUserMap, LOG, MSG_TYPE_DEFER_MESSAGE, MSG_TYPE_PING, MSG_TYPE_PREEMPT_ACK, MSG_TYPE_PREEMPT_MESSAGE, TEST_USER_NAME
 
Fields inherited from class com.notuvy.singleapp.multiuser.GenericEnforcer
fAllowSystemExit
 
Constructor Summary
MultiUserDefer(int pPort, Deferable pDeferable)
           
 
Method Summary
protected  void handleConnection(Socket pSocket)
          When the first instance receives a socket connection, handle it.
protected  void handlePortConflict()
          If a conflict with an existing broker happens, define how to proceed.
protected  void handleRelayedMessage()
          Handle the message relayed from the broker.
 
Methods inherited from class com.notuvy.singleapp.multiuser.MultiUserSingleAppEnforcer
alreadyHaveInstanceForUser, attempt, getPort, getServer, getUser, handlePing, reattempt, setServer, shutdownServer, startBrokerClientListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiUserDefer

public MultiUserDefer(int pPort,
                      Deferable pDeferable)
Method Detail

handlePortConflict

protected void handlePortConflict()
Description copied from class: MultiUserSingleAppEnforcer
If a conflict with an existing broker happens, define how to proceed.

Specified by:
handlePortConflict in class MultiUserSingleAppEnforcer

handleConnection

protected void handleConnection(Socket pSocket)
Description copied from class: MultiUserSingleAppEnforcer
When the first instance receives a socket connection, handle it.

Specified by:
handleConnection in class MultiUserSingleAppEnforcer
Parameters:
pSocket - The socket with the new incoming connection.

handleRelayedMessage

protected void handleRelayedMessage()
                             throws IOException
Description copied from class: MultiUserSingleAppEnforcer
Handle the message relayed from the broker.

Specified by:
handleRelayedMessage in class MultiUserSingleAppEnforcer
Throws:
IOException


Copyright © 2012. All Rights Reserved.