Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
L
M
O
P
R
S
T
V
W
A
alive
- Variable in class com.notuvy.singleapp.
DummyApp
alreadyHaveInstanceForUser(BrokerConnection)
- Method in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
attempt()
- Method in interface com.notuvy.singleapp.
Enforcer
attempt()
- Method in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
attempt()
- Method in class com.notuvy.singleapp.
SingleAppEnforcer
attempt()
- Method in class com.notuvy.singleapp.
SingleUserEnforcer
B
Broker
- Class in
com.notuvy.singleapp.multiuser
This is the entity that listens for connections.
BrokerConnection
- Class in
com.notuvy.singleapp.multiuser
Basic description
BrokerConnection(String, Socket)
- Constructor for class com.notuvy.singleapp.multiuser.
BrokerConnection
BrokerConnection(Socket)
- Constructor for class com.notuvy.singleapp.multiuser.
BrokerConnection
Create an incoming connection.
C
canCommunicate()
- Method in class com.notuvy.singleapp.multiuser.
BrokerConnection
closeByInput()
- Method in class com.notuvy.singleapp.multiuser.
BrokerConnection
closeByOutput()
- Method in class com.notuvy.singleapp.multiuser.
BrokerConnection
com.notuvy.singleapp
- package com.notuvy.singleapp
A framework for ensuring singleton application launching.
com.notuvy.singleapp.multiuser
- package com.notuvy.singleapp.multiuser
createWith(MultiUserSingleAppEnforcer)
- Static method in class com.notuvy.singleapp.multiuser.
Broker
CURRENT
- Static variable in class com.notuvy.singleapp.multiuser.
Broker
D
defer(int, SingleApp)
- Static method in class com.notuvy.singleapp.
SingleAppEnforcer
Deferable
- Interface in
com.notuvy.singleapp
A singleton application that will not start if another instance is active.
deferControl()
- Method in class com.notuvy.singleapp.
SingleAppEnforcer
DummyApp
- Class in
com.notuvy.singleapp
Basic description
DummyApp.Defer
- Class in
com.notuvy.singleapp
DummyApp.Defer()
- Constructor for class com.notuvy.singleapp.
DummyApp.Defer
DummyApp.Preemt
- Class in
com.notuvy.singleapp
DummyApp.Preemt()
- Constructor for class com.notuvy.singleapp.
DummyApp.Preemt
DummyWebBrowser
- Class in
com.notuvy.singleapp
An example of the Deferal pattern.
DummyWebBrowser(String)
- Constructor for class com.notuvy.singleapp.
DummyWebBrowser
E
Enforcer
- Interface in
com.notuvy.singleapp
User: murali Date: 7/14/12 Time: 12:54 PM To change this template use File | Settings | File Templates.
F
fAllowSystemExit
- Variable in class com.notuvy.singleapp.multiuser.
GenericEnforcer
fClientConnection
- Variable in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
forceExit()
- Method in interface com.notuvy.singleapp.
SingleApp
Force death if not graceful.
fUserMap
- Variable in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
G
GenericEnforcer
- Class in
com.notuvy.singleapp.multiuser
GenericEnforcer()
- Constructor for class com.notuvy.singleapp.multiuser.
GenericEnforcer
getInput()
- Method in class com.notuvy.singleapp.multiuser.
BrokerConnection
getOutput()
- Method in class com.notuvy.singleapp.multiuser.
BrokerConnection
getPort()
- Method in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
getPort()
- Method in class com.notuvy.singleapp.
SingleAppEnforcer
getPort()
- Method in class com.notuvy.singleapp.
SingleUserEnforcer
getServer()
- Method in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
getUser()
- Method in class com.notuvy.singleapp.multiuser.
BrokerConnection
getUser()
- Method in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
gracefulExitForPreempt()
- Method in class com.notuvy.singleapp.
DummyApp.Preemt
gracefulExitForPreempt()
- Method in interface com.notuvy.singleapp.
Preemptable
The final hook allowing the preempted application to shutdown gracefully.
gracefulExitForPreempt()
- Method in interface com.notuvy.singleapp.
SingleApp
The final hook allowing the preempted application to shutdown gracefully.
H
handleConnection(Socket)
- Method in class com.notuvy.singleapp.multiuser.
MultiUserDefer
handleConnection(Socket)
- Method in class com.notuvy.singleapp.multiuser.
MultiUserPreempt
handleConnection(Socket)
- Method in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
When the first instance receives a socket connection, handle it.
handleConnection(SingleApp, Socket)
- Method in class com.notuvy.singleapp.
SingleAppEnforcer
handleConnection(Socket)
- Method in class com.notuvy.singleapp.
SingleUserEnforcer
handlePing()
- Method in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
handlePortConflict()
- Method in class com.notuvy.singleapp.multiuser.
MultiUserDefer
handlePortConflict()
- Method in class com.notuvy.singleapp.multiuser.
MultiUserPreempt
handlePortConflict()
- Method in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
If a conflict with an existing broker happens, define how to proceed.
handlePortConflict()
- Method in class com.notuvy.singleapp.
SingleAppEnforcer
handlePortConflict()
- Method in class com.notuvy.singleapp.
SingleUserEnforcer
handleRelayedMessage()
- Method in class com.notuvy.singleapp.multiuser.
MultiUserDefer
handleRelayedMessage()
- Method in class com.notuvy.singleapp.multiuser.
MultiUserPreempt
handleRelayedMessage()
- Method in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
Handle the message relayed from the broker.
L
launchDefer(Deferable)
- Method in class com.notuvy.singleapp.
SingletonApplicationLauncher
launchPreempt(Preemptable)
- Method in class com.notuvy.singleapp.
SingletonApplicationLauncher
LOG
- Static variable in class com.notuvy.singleapp.
DummyApp
LOG
- Static variable in class com.notuvy.singleapp.multiuser.
Broker
LOG
- Static variable in class com.notuvy.singleapp.multiuser.
BrokerConnection
LOG
- Static variable in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
LOG
- Static variable in class com.notuvy.singleapp.
SingleAppEnforcer
LOG
- Static variable in class com.notuvy.singleapp.
SingletonApplicationLauncher
LOG
- Static variable in class com.notuvy.singleapp.
SingleUserEnforcer
M
main(String[])
- Static method in class com.notuvy.singleapp.
DummyApp
main(String[])
- Static method in class com.notuvy.singleapp.
DummyWebBrowser
MSG_TYPE_DEFER_MESSAGE
- Static variable in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
MSG_TYPE_PING
- Static variable in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
MSG_TYPE_PREEMPT_ACK
- Static variable in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
MSG_TYPE_PREEMPT_MESSAGE
- Static variable in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
MultiUserDefer
- Class in
com.notuvy.singleapp.multiuser
Basic description
MultiUserDefer(int, Deferable)
- Constructor for class com.notuvy.singleapp.multiuser.
MultiUserDefer
MultiUserPreempt
- Class in
com.notuvy.singleapp.multiuser
Basic description
MultiUserPreempt(int, Preemptable, boolean)
- Constructor for class com.notuvy.singleapp.multiuser.
MultiUserPreempt
MultiUserSingleAppEnforcer
- Class in
com.notuvy.singleapp.multiuser
A utility that enforces the invocation of a single application instance.
MultiUserSingleAppEnforcer(int, Runnable)
- Constructor for class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
O
onPort(int)
- Static method in class com.notuvy.singleapp.
SingletonApplicationLauncher
openURL(String)
- Method in class com.notuvy.singleapp.
DummyWebBrowser
P
preempt(int, SingleApp)
- Static method in class com.notuvy.singleapp.
SingleAppEnforcer
Preemptable
- Interface in
com.notuvy.singleapp
An application that want to automatically be managed as a single invocation must implement this to be able to use SingleAppEnforcer.
R
readAck()
- Method in class com.notuvy.singleapp.multiuser.
BrokerConnection
readObjectMessage()
- Method in class com.notuvy.singleapp.multiuser.
BrokerConnection
readOwnedBrokerWasShutdown()
- Method in class com.notuvy.singleapp.multiuser.
BrokerConnection
readUserConflict(String)
- Method in class com.notuvy.singleapp.multiuser.
BrokerConnection
reattempt()
- Method in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
recvFromDeferred(Object)
- Method in interface com.notuvy.singleapp.
Deferable
Callback to handle the situation where this instance is running, and a second instance attempted to start but deferred to this.
recvFromDeferred(Object)
- Method in class com.notuvy.singleapp.
DummyApp.Defer
recvFromDeferred(Object)
- Method in interface com.notuvy.singleapp.
SingleApp
Callback to handle the situation where this instance is running, and a second instance attempted to start but deferred to this.
recvFromPreempted(Object)
- Method in class com.notuvy.singleapp.
DummyApp.Preemt
recvFromPreempted(Object)
- Method in interface com.notuvy.singleapp.
Preemptable
Callback to handle the situation where an earlier instance is running, and a this instance started and told it to die.
recvFromPreempted(Object)
- Method in interface com.notuvy.singleapp.
SingleApp
Callback to handle the situation where an earlier instance is running, and a this instance started and told it to die.
run()
- Method in class com.notuvy.singleapp.
DummyApp
run()
- Method in class com.notuvy.singleapp.
DummyWebBrowser
run()
- Method in class com.notuvy.singleapp.multiuser.
Broker
run()
- Method in class com.notuvy.singleapp.
SingleAppEnforcer
run()
- Method in class com.notuvy.singleapp.
SingleUserEnforcer
S
sendFromDeferred()
- Method in interface com.notuvy.singleapp.
Deferable
Callback to handle the situation where another instance was running earlier, and this instance attempted to start but deferred to that.
sendFromDeferred()
- Method in class com.notuvy.singleapp.
DummyApp.Defer
sendFromDeferred()
- Method in interface com.notuvy.singleapp.
SingleApp
Callback to handle the situation where another instance was running earlier, and this instance attempted to start but deferred to that.
sendToPreemptor()
- Method in class com.notuvy.singleapp.
DummyApp.Preemt
sendToPreemptor()
- Method in interface com.notuvy.singleapp.
Preemptable
Callback to handle the situation where this instance is running, and a second instance started and told this one to die.
sendToPreemptor()
- Method in interface com.notuvy.singleapp.
SingleApp
Callback to handle the situation where this instance is running, and a second instance started and told this one to die.
setAllowSystemExit(boolean)
- Method in class com.notuvy.singleapp.
SingletonApplicationLauncher
setMultiUser()
- Method in class com.notuvy.singleapp.
SingletonApplicationLauncher
setServer(ServerSocket)
- Method in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
setSingleUser()
- Method in class com.notuvy.singleapp.
SingletonApplicationLauncher
shutdown()
- Method in class com.notuvy.singleapp.
SingletonApplicationLauncher
shutdownServer()
- Method in interface com.notuvy.singleapp.
Enforcer
shutdownServer()
- Method in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
shutdownServer()
- Method in class com.notuvy.singleapp.
SingleUserEnforcer
SingleApp
- Interface in
com.notuvy.singleapp
An application that want to automatically be managed as a single invocation must implement this to be able to use SingleAppEnforcer.
SingleAppEnforcer
- Class in
com.notuvy.singleapp
A utility that enforces the invocation of a single application instance.
SingleAppEnforcer(int, SingleApp)
- Constructor for class com.notuvy.singleapp.
SingleAppEnforcer
SingletonApplicationLauncher
- Class in
com.notuvy.singleapp
Basic description
SingletonApplicationLauncher.Strategy
- Enum in
com.notuvy.singleapp
SingleUserEnforcer
- Class in
com.notuvy.singleapp
A utility that enforces the invocation of a system-wide singleton application instance.
SingleUserEnforcer(int, Runnable)
- Constructor for class com.notuvy.singleapp.
SingleUserEnforcer
startBrokerClientListener(BrokerConnection, Runnable)
- Method in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
T
takeControl()
- Method in class com.notuvy.singleapp.
SingleAppEnforcer
takeControl()
- Method in class com.notuvy.singleapp.
SingleUserEnforcer
terminateCurrent()
- Static method in class com.notuvy.singleapp.multiuser.
Broker
TEST_USER_NAME
- Static variable in class com.notuvy.singleapp.multiuser.
MultiUserSingleAppEnforcer
V
valueOf(String)
- Static method in enum com.notuvy.singleapp.
SingletonApplicationLauncher.Strategy
Returns the enum constant of this type with the specified name.
values()
- Static method in enum com.notuvy.singleapp.
SingletonApplicationLauncher.Strategy
Returns an array containing the constants of this enum type, in the order they are declared.
W
wrest()
- Method in class com.notuvy.singleapp.
SingleAppEnforcer
wrest(Preemptable)
- Method in class com.notuvy.singleapp.
SingleUserEnforcer
writeAck()
- Method in class com.notuvy.singleapp.multiuser.
BrokerConnection
writeObjectMessage(Object)
- Method in class com.notuvy.singleapp.multiuser.
BrokerConnection
writeOwnedBrokerWasShutdown(boolean)
- Method in class com.notuvy.singleapp.multiuser.
BrokerConnection
writeUserConflict(boolean)
- Method in class com.notuvy.singleapp.multiuser.
BrokerConnection
A
B
C
D
E
F
G
H
L
M
O
P
R
S
T
V
W
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
Copyright © 2012. All Rights Reserved.