[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [flux-dev] Regarding flux operation
|
Hey!
First, you should now that Eclipse Flux is a proof-of-concept prototype implementation, not a production-ready implementation.
However, the basic architecture behind it should allow you to do what you describe.
The Flux node server could be hosted anywhere (in the cloud, for example).
This doesn’t do any file syncing yet. The server is more or less a message-distribution channel.
Clients can connect to this distribution channel, exchange messages, and sync files by using those messages.
This is what the Eclipse plugin is doing under the hood. Once you connect a project to Flux, the Eclipse plugin sends those syncing messages around and reacts to coming ones.
This is also what the plugin for Orion is doing under the hood (for the Orion UI example that comes with Flux).
In addition to the message distribution, the node server also contains an in-memory-backup of the synced files. It is implemented by listening and reacting to those syncing messages (more or less as an example, since using an in-memory strategy for this isn’t really suitable for any production usage anyway).
As you can see, this is a fairly distributed system and every participant is equal. All you need to do is to connect to the message channel and receive and respond to messages (file syncing messages, in your case).
So you could write your own client that listens to those syncing messages and keeps files on disc in sync, for example like:
https://github.com/Serli/flux-file-watcher
*But again, this is by no means for production usage.*
Hope this helps!
-Martin
> Am 26.08.2016 um 12:02 schrieb Ahmedali Durga <ahmedali@xxxxxxxxxxxxxxxx>:
>
> Hi
>
> Could you please let me know if there is a way to use the flux back-end in some way to reflect the local code changes (on eclipse IDE) in real-time to other location (I wish to use it to facilitate remote build).
>
> I think there must be a client which is plugged into the Orion UI which listens and acts upon the json message stream to achieve the sync. I would like to use the same mechanism to listen to the server from a remote process and replicate the local state to file system there.
>
> Your help is really appreciated.
>
> Thanks & Regards
> Ahmedali
> SDE, CodeNation
>
> On Wed, Aug 24, 2016 at 6:31 PM, Ahmedali Durga <ahmedali@xxxxxxxxxxxxxxxx> wrote:
> Hi
>
> Also, When I run jdt headless, it throws error saying:
> Connecting to Channel: $super$
> Aug 24, 2016 6:19:28 PM io.socket.IOConnection sendPlain
> INFO: > 5:1+::{"args":[{"channel":"$super$"}],"name":"connectToChannel"}
> Aug 24, 2016 6:19:28 PM io.socket.IOConnection transportMessage
> INFO: < 6:::1+[{"error":"\"ahmedali-durga\" is not allowed to join channel \"$super$'","connectedToChannel":false}]
>
> And when running jdt from eclipse, the same portion works with log:
> Connecting to Channel: ahmedali-durga
> Aug 24, 2016 6:21:56 PM io.socket.IOConnection sendPlain
> INFO: > 5:1+::{"args":[{"channel":"ahmedali-durga"}],"name":"connectToChannel"}
> Aug 24, 2016 6:21:56 PM io.socket.IOConnection transportMessage
> INFO: < 6:::1+[{"connectedToChannel":true}]
>
> I guess some problem with the channel name while using headless jdt service. Would be great if you could help.
>
> BTW, your prompt help is really appreciated. Thank you :)
>
> Regards
> Ahmedali
>
> On Wed, Aug 24, 2016 at 5:38 PM, Ahmedali Durga <ahmedali@xxxxxxxxxxxxxxxx> wrote:
> Hi
>
> I registered a new application and somehow it now works. I wanted to know how to leverage the sync mechanism.. as in where does the jdt service store the content and how to reflect it to some other headless environment?
>
> Request you to point me to resources on how to write a client for the same purpose.
>
> Thanks & Regards
> Ahmedali
>
> On Wed, Aug 24, 2016 at 9:56 AM, Ahmedali Durga <ahmedali@xxxxxxxxxxxxxxxx> wrote:
> Well I did.. to no avail
>
> When I use the eclipse based jdt service, it doesn't show any logs for the requested resource. But in case of a headless jdt service running independently, It shows the logs saying resource requested, nevertheless no result comes up. I am also unable to see the project in the left pane as demonstrated.
>
> Regards
> Ahmedali
>
> On Wed, Aug 24, 2016 at 12:20 AM, Vershinin Fjodor <fjodor@xxxxxxxxxxxxx> wrote:
> Have you refreshed orion ui after connection?
>
> 2016-08-23 20:48 GMT+03:00 Ahmedali Durga <ahmedali@xxxxxxxxxxxxxxxx>:
> Hi
>
> I did try both ways.. by specifying/with defaultuser. Neither way seemed to work
>
> Regards
> Ahmedali
>
> On Tue, Aug 23, 2016 at 11:13 PM, Vershinin Fjodor <fjodor@xxxxxxxxxxxxx> wrote:
> Yes I have.. Apart from the node server and the eclipse runtime workbe, is there anything else that would be needed to run?
> Have you set 'GitHub Id' in the flux preferences?
> --
> Thanks,
> Fjodor
>
> _______________________________________________
> flux-dev mailing list
> flux-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/flux-dev
>
>
> _______________________________________________
> flux-dev mailing list
> flux-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/flux-dev
>
>
>
> --
> Thanks,
> Fjodor
>
> _______________________________________________
> flux-dev mailing list
> flux-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/flux-dev
>
>
>
>
> _______________________________________________
> flux-dev mailing list
> flux-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/flux-dev