com.notuvy.singleapp.multiuser
Class MultiUserPreempt
java.lang.Object
com.notuvy.singleapp.multiuser.GenericEnforcer
com.notuvy.singleapp.multiuser.MultiUserSingleAppEnforcer
com.notuvy.singleapp.multiuser.MultiUserPreempt
- All Implemented Interfaces:
- Enforcer
public class MultiUserPreempt
- extends MultiUserSingleAppEnforcer
Basic description
- Author:
- murali
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiUserPreempt
public MultiUserPreempt(int pPort,
Preemptable pPreemptable,
boolean pAllowSystemExit)
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.