Comments (5)
The main barrier behind this now solved. Now every node/dispatcher can identify
and can
update the node list/dispatcher list before the leader election starts up
again. So the
LE side of this request now fixed. Have to complete the node/dispatcher side
work now.
Original comment by harshana05
on 2 Jun 2010 at 6:05
from epzilla.
What do you mean by "node/dispatcher side" work, re-initializing the STM with
the new
Leader as the server and connecting the others as clients?
Original comment by [email protected]
on 3 Jun 2010 at 3:52
from epzilla.
Yes. That part. Since you have pointed out the place to start work, I have done
some
thing like following.
I have moved the Leader Identification part which was in the leaderReg.Main to
a new
method.
public static void startSTM(){
String leader = "";
while (leader.equalsIgnoreCase("")) {
leader = LeaderElectionInitiator.getLeader();
}
if (leader.equalsIgnoreCase(ipAddress)) {
NodeController.setLeader(true);
initSTM();
} else {
NodeController.setLeader(false);
NodeController.setLeaderIP(leader);
initSTM();
}
}
and in the NodeAsNonLeader, I have done the following. The section below the
comment
//Initializing LE.
public static void checkServerStatus() {
final java.util.Timer timer1 = new java.util.Timer();
timer1.schedule(new TimerTask() {
@Override
public void run() {
final SocketClient.Status serverStatus=client.getStatus();
if (serverStatus == SocketClient.Status.DISCONNECTED) {
NodeUIController.appendTextToStatus("Server Status :" +
serverStatus);
this.cancel();
//Initializing LE
org.epzilla.clusterNode.leaderReg.Main.triggerLEFromRemote();
org.epzilla.clusterNode.leaderReg.Main.startSTM();
}
}
}, 10, 1000);
}
Now this works fine and elects a leader and starts a new UI and STM. But there
are 2
issue AKAIK.
1. The previous UI is not hidden. So now there are 2 UIs :).
2. The content of the previous STM is not included in the new STM.
So as our STM expert, dishan has to work on 2 and as our UI expert Chathura has
to
work on 1.
I'm attaching the current work as attachments.
Original comment by harshana05
on 3 Jun 2010 at 9:00
Attachments:
- [attachment for enhancemet 4.zip](https://storage.googleapis.com/google-code-attachments/epzilla/issue-4/comment-3/attachment for enhancemet 4.zip)
from epzilla.
I have not committed the current work to the repo since i wasn't sure it was
the
correct way of doing that.
Original comment by harshana05
on 3 Jun 2010 at 9:03
from epzilla.
I have tested the fix provided by Dishan on #r814 and verified the correctness.
I am changing the status to Verified.
Original comment by harshana05
on 12 Jun 2010 at 4:37
- Changed state: Verified
from epzilla.
Related Issues (19)
- Event Processing Engine Code HOT 2
- Simulation system configuration component HOT 1
- NPE Thrown after starting up the UI HOT 1
- Displaying Client IPs in the Leader's window HOT 4
- Displaying Dispatcher Info in the Dispatcher UI HOT 1
- Sending RMI messages to Dispatcher by Cluster Leader HOT 1
- Integrating LE for Dispatchers HOT 4
- Implement a method to identify the dead non-leader nodes/dispatchers. HOT 4
- Updating the cluster ip list/dispatcher list when cluster nodes/dispatchers are dead. HOT 5
- Implement the Dynamic load balancing HOT 2
- Integrating Dynamic Load balancing HOT 4
- Displaying cluster node IPs in the Non Leader node window HOT 1
- Integrating Esper for demo HOT 1
- Dispatcher UI does not come up HOT 1
- NPE From Stratification HOT 1
- Exception from System Restructuing HOT 1
- NPE for Wake on Lan and Sleep HOT 2
- NPE for Wake HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epzilla.