Hi Raydhitya,
In this mail, I'll answer the last of your questions:
> I use my laptop to dive in the source code, run the client,
> and my desktop to run another client. I usually connect the
> clients, share one project to establish the session, and try
> cancelling the next project sharing. Where to look to
> automate this process?
There are two parts in this. First, we have our own test framework (Saros Test
Framework, STF, http://www.saros-project.org/testing and
http://www.saros-project.org/node/140) for remote controlling several Eclipse
instances. You can either use an existing STF test case, or write one on your
own if no existing one fits your purpose.
Second, you can (and should) start multiple Eclipse instances on the same
computer by using different Launch configurations. However, if you still want
to use multiple computers (but the reasons should be really special) you face
two problems:
* Each launched Eclipse instance needs a Saros plugin. The instances
you start locally receive their Saros plugins from the "mother" Eclipse, which
automatically builds the Saros source code. Whenever you start an Eclipse
instance on a different computer, you need to provide this Eclipse with a Saros
plugin in some other way. Depending on your changes, it might be fine to just
the current release of Saros (installed via update-site). But if your code
changes need to be present at all participants of the session to have he
desired effect, you'll have to think about how to get your changes onto the
other machine. We don't have a way to automate this.
* Considered that you have to Eclipse instances running (one local, one
remote), you now want to access them both in an STF test case. Therefore,
you'll need to change your STF settings (e.g. for user "Bob" this would be
BOB_HOST) to access not "localhost" but the IP address of your additional
computer. Furthermore the given port (e.g. BOB_PORT = 12346) needs be
accessible.
Conclusion: Consider running both Eclipse instances on the same computer. That
eases the deployment of your changes (only a right-click on the Launch
configuration).
Franz
From: Raydhitya Yoseph [mailto:raydhitya.yos...@gmail.com]
Sent: Thursday, June 27, 2013 7:29 AM
To: dpp-devel@lists.sourceforge.net
Subject: [DPP-Devel] Few Questions
Few design questions. I hope the answers also point somewhere in the code.
1. Projects stored in a map using String as its key and its main identifier.
How to determine what String will become one project's id?
2. One project resources stored in a map using the project as its key. I see
many methods parameters contain project and its resources and these two are
passed to many methods. Why it is not in one class to simplifying the project
and resources passing? Why not also the class contains the project's id? And
why projects and resources stored in maps? Is simple List is not enough?
3. Why Saros use exception as control flow? Mainly in
CancelableProcess.terminateProcess().
4. I only want to know the reasons for number two question. Really change
project into one class will make big impact to many things. So, I'll keep going
with all the maps. IncomingProjectNegotiation has id-project map.
OutgoingProjectNegotiation only has project list, but the documentation says
"this maps the currently exchanging projects. projectID => project in
workspace". Is it also intended to be id-project map?
My last question is not related to the design. I use my laptop to dive in the
source code, run the client, and my desktop to run another client. I usually
connect the clients, share one project to establish the session, and try
cancelling the next project sharing. Where to look to automate this process?
Best regards,
Raydhitya
--
Raydhitya Yoseph
Informatics Engineering
Institut Teknologi Bandung
http://raydhityayoseph.blogspot.com
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
DPP-Devel mailing list
DPP-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dpp-devel