Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
C
D
E
G
H
I
L
M
N
O
R
S
T
V
A
accessRED(boolean, boolean)
- Method in class com.distributed.api.
Camera
Method to get value of RED while setting it if set is true
allSnapsReceived(int, String)
- Method in class com.distributed.api.
Environment
Sends the global picture of distributed system to the requesting process
APPEND
- Static variable in class com.distributed.api.
ConsensusFinder
Constant used in the Class
appendState(String)
- Method in class com.distributed.api.
Environment
Appends to present global state
C
Camera
- class com.distributed.api.
Camera
.
Class used to implement Global Snapshot Algorithm
Camera(Environment)
- Constructor for class com.distributed.api.
Camera
Constructor to be normally used by the Environment
clock
- Variable in class com.distributed.api.
Message
String Value of Clock of the Message
Clock
- class com.distributed.api.
Clock
.
Clock Used to implement Vector Clock
Clock()
- Constructor for class com.distributed.api.
Clock
Default Constructor
Clock(Clock)
- Constructor for class com.distributed.api.
Clock
Copy Constructor
Clock(int, int)
- Constructor for class com.distributed.api.
Clock
Constructor to be normally used by Environment
Clock(int, int, String)
- Constructor for class com.distributed.api.
Clock
Constructor to be normally used by Environment
clocktype
- Variable in class com.distributed.api.
Message
Clock Value of the Message
com.distributed.api
- package com.distributed.api
compare(Clock)
- Method in class com.distributed.api.
Clock
Method to compare a clock with this object
compare(Clock, Clock)
- Static method in class com.distributed.api.
Clock
Method to compare two clocks
CONSENSUS_PROPOSITION
- Static variable in class com.distributed.api.
Message
Constant used in the Class, Type of Message, Consensus Section
CONSENSUS_START
- Static variable in class com.distributed.api.
Message
Constant used in the Class, Type of Message, Consensus Section
ConsensusFinder
- class com.distributed.api.
ConsensusFinder
.
Class implementing Consensus finding Algorithm
ConsensusFinder(int, int, Environment)
- Constructor for class com.distributed.api.
ConsensusFinder
Constructor to be normally used
consensuson
- Variable in class com.distributed.api.
ConsensusFinder
Variable used by the Users of Class
consensusReached(int)
- Method in interface com.distributed.api.
EnvironmentListener
Method to be called when consensus is finally reached
constructMessage(int, int, String, boolean, String, int)
- Static method in class com.distributed.api.
Message
Method to return a String composing the Message.
CONTROL_PORT
- Static variable in class com.distributed.api.
Environment
Default port number
CS_REQUEST
- Static variable in class com.distributed.api.
Message
Constant used in the Class, Type of Message, Lock section
D
decodeMessage(String)
- Static method in class com.distributed.api.
Message
Method to convert a String received over channel into a Message Object
dest
- Variable in class com.distributed.api.
Message
Destination of the Message
E
Environment
- class com.distributed.api.
Environment
.
Defines all methods that can be used by any distributed appication process
Environment(String, EnvironmentListener)
- Constructor for class com.distributed.api.
Environment
establishes the connections with other processes & starts listening on the channel
EnvironmentListener
- interface com.distributed.api.
EnvironmentListener
.
Interface to be implemented by the user of the API
Event
- class com.distributed.api.
Event
.
Class to hold an event
Event(int)
- Constructor for class com.distributed.api.
Event
Default constructor
G
GETANDSET
- Static variable in class com.distributed.api.
ConsensusFinder
Constant used in the Class
getClock()
- Method in class com.distributed.api.
Environment
Returns the internal clock of the application process
getConsensus(int)
- Method in class com.distributed.api.
Environment
Proposes consensus value of this application process & achieves consensus
getConsensusVal()
- Method in interface com.distributed.api.
EnvironmentListener
Method to give the Consensus Value of this process
getPid()
- Method in class com.distributed.api.
Environment
Returns process id of the application process in distributed system
getUserProcess()
- Method in class com.distributed.api.
Environment
Returns EnvironmentListener of application process
GETVAL
- Static variable in class com.distributed.api.
Camera
Constant used by the entire Class
globalsnapshotreceived
- Variable in class com.distributed.api.
Camera
Variable set by users
H
holdElection()
- Method in class com.distributed.api.
Environment
Does the election using protocol 1
holdElection2()
- Method in class com.distributed.api.
Environment
Does the election using protocol 2
I
incrClock(Event, Clock)
- Method in class com.distributed.api.
Clock
Method used to increment Clock
INTERNAL_EVENT
- Static variable in class com.distributed.api.
Event
Constant to indicate Internal Event
isComparable(Clock)
- Method in class com.distributed.api.
Clock
Method to see if this object and another clock are comparable or not
isComparable(Clock, Clock)
- Static method in class com.distributed.api.
Clock
Method to check if two clocks are comparable or not
isLockAvailable()
- Method in class com.distributed.api.
Lock
Method to see if Lock is available
L
LAMPORT_CLOCK
- Static variable in class com.distributed.api.
Clock
Constant used within the class
lamportClock()
- Method in class com.distributed.api.
Clock
Method to return value of Lamport's clock at this point
lamportClock(String)
- Static method in class com.distributed.api.
Clock
methos to return Lamport Clock value from String
LEADER_ACCEPTED
- Static variable in class com.distributed.api.
Message
Constant used in the Class, Type of Message, Election Section
LEADER_PROPOSITION
- Static variable in class com.distributed.api.
Message
Constant used in the Class, Type of Message, Election Section
Lock
- class com.distributed.api.
Lock
.
Class to implement Mutual Exclusion or Lock
M
MARKER
- Static variable in class com.distributed.api.
Message
Constant used in the Class, Type of Message, Camera Section
markerReceivedFrom(int)
- Method in class com.distributed.api.
Camera
Called when the Marker is received from a process
Message
- class com.distributed.api.
Message
.
Class to hold a Message
Message(int, int, String, boolean, String, int)
- Constructor for class com.distributed.api.
Message
Constructor to be normally used
messageReceived(Message)
- Method in interface com.distributed.api.
MessageReceiverListener
Method to be called when a Message is received
messageReceived(Message)
- Method in class com.distributed.api.
Environment
Handles both control & application messages
MessageReceiver
- class com.distributed.api.
MessageReceiver
.
Class to implement Message Receiver.
MessageReceiver(int, MessageReceiverListener, BufferedReader, PrintWriter)
- Constructor for class com.distributed.api.
MessageReceiver
Constructor to be normally used
MessageReceiver(MessageReceiverListener, BufferedReader, PrintWriter)
- Constructor for class com.distributed.api.
MessageReceiver
Constructor to be normally used
MessageReceiverListener
- interface com.distributed.api.
MessageReceiverListener
.
Interface of MessageReceiverListener to be implemented by the user of the API
messg
- Variable in class com.distributed.api.
Message
Program part of message of the Message
messgtype
- Variable in class com.distributed.api.
Message
Type of the Message
N
N
- Variable in class com.distributed.api.
Environment
Number of processes in distributed system
NEW_COORDINATOR
- Static variable in class com.distributed.api.
Message
Constant used in the Class, Type of Message, Election Section
NO_CLOCK
- Static variable in class com.distributed.api.
Clock
Constant used within the class
NORMAL_MESSAGE
- Static variable in class com.distributed.api.
Message
Constant used in the Class, Type of Message
O
OK_MESSAGE
- Static variable in class com.distributed.api.
Message
Constant used in the Class, Type of Message, Lock Section
othersProposition(int)
- Method in class com.distributed.api.
ConsensusFinder
Method to take action when Proposal is received from others
R
receiveOkay()
- Method in class com.distributed.api.
Lock
Method to take action when OK is received
receiveRequest(int, int)
- Method in class com.distributed.api.
Lock
Method to take action when a request is received
RECV_EVENT
- Static variable in class com.distributed.api.
Event
Constant to indicate Receive Event
red_message
- Variable in class com.distributed.api.
Message
Indicator if message is Red or white
releaseLock()
- Method in class com.distributed.api.
Lock
Method to release a lock or Mutex
releaseLock()
- Method in class com.distributed.api.
Environment
Exits critical sections & releases lock
requestCsEntry()
- Method in class com.distributed.api.
Environment
Enters the application process in critical section
requestLock()
- Method in class com.distributed.api.
Lock
Method to request a Lock
run()
- Method in class com.distributed.api.
Timer
Method to start the Timer
run()
- Method in class com.distributed.api.
MessageReceiver
Method to Initiate Listener
runTask()
- Method in interface com.distributed.api.
TimerTask
Task to be performed when Timer goes off
runTask()
- Method in class com.distributed.api.
ConsensusFinder
Method to Run the entire Consensus task
S
saveChannelState(String, int)
- Method in class com.distributed.api.
Camera
used to save the channel state
saveLocalState(int, int)
- Method in class com.distributed.api.
Environment
Saves local state & turns red
saveState()
- Method in interface com.distributed.api.
EnvironmentListener
Method to be called when state has to saved during Snapshot algorithm
scheduleTask(TimerTask, long)
- Method in class com.distributed.api.
Timer
Method to Schedule a task
SEND_EVENT
- Static variable in class com.distributed.api.
Event
Constant to indicate Send Event
sendTo(int, String)
- Method in class com.distributed.api.
Environment
Sends messgtext message to particular destination
sendTo(int, String, int, boolean, int)
- Method in class com.distributed.api.
Environment
Environment uses this method to send message to a particular destination
sendToAllNeighbours(String)
- Method in class com.distributed.api.
Environment
Broadcasts message
sendToAllNeighbours(String, int, boolean, int)
- Method in class com.distributed.api.
Environment
Used by Environment to broadcast messages
SET
- Static variable in class com.distributed.api.
ConsensusFinder
Constant used in the Class
SETVAL
- Static variable in class com.distributed.api.
Camera
Constant used by the entire Class
SNAPSHOT_REQUEST
- Static variable in class com.distributed.api.
Message
Constant used in the Class, Type of Message, Camera Section
SNAPSHOT_RESPONSE
- Static variable in class com.distributed.api.
Message
Constant used in the Class, Type of Message, Camera Section
source
- Variable in class com.distributed.api.
Message
Source of the Message
startConsensusRounds(int, boolean)
- Method in class com.distributed.api.
ConsensusFinder
Method to start Consensus Process
T
takeSnapshot()
- Method in class com.distributed.api.
Environment
Returns global picture of the entire distributed system
terminate()
- Method in class com.distributed.api.
MessageReceiver
Method to terminate the Receiving part
terminate()
- Method in class com.distributed.api.
Environment
Closes all connection
Timer
- class com.distributed.api.
Timer
.
Class to Implement Timer, used for consensus
Timer()
- Constructor for class com.distributed.api.
Timer
Default Constructor
TimerTask
- interface com.distributed.api.
TimerTask
.
Interface to be implement if Timer is used
toString(int)
- Method in class com.distributed.api.
Clock
Method to convert Clock into String
turnRed(int, int)
- Method in class com.distributed.api.
Camera
Called when this process should Turn Red
type
- Variable in class com.distributed.api.
Event
Variable to hold event type
V
VECTOR_CLOCK
- Static variable in class com.distributed.api.
Clock
Constant used within the class
A
C
D
E
G
H
I
L
M
N
O
R
S
T
V
Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes