Class Main
java.lang.Object
Main
Entry point for babel-canvas — a peer-to-peer collaborative pixel canvas.
The demo composes the real ParadigmShift overlay stack and lets the Babel runtime wire it together through asynchronous events:
HyParView— partial-view membership (the gossip overlay), which auto-discovers peers on the LAN (it's aDiscoverableProtocol);EagerPushGossipBroadcast— disseminates paint operations to the overlay;AntiEntropy— optional bloom-filter reconciliation that recovers missed paint ops (enabled withcanvas.antientropy.enabled);CanvasApp— the collaborative canvas + web UI on top.
Launch: java -jar babel-canvas.jar [babel.port=<port>]
[babel.interface=<nic>] [babel.address=<ip>] [HyParView.contact=<host>:<port>]
[canvas.ui.port=<port>]. To run several nodes on one machine, give each a
distinct babel.port spaced by ≥ 10 (eager-push binds
babel.port+1 in the default offset mode) and a distinct
babel.discovery.unicast.port.
-
Field Details
-
PAR_DEFAULT_BABEL_PORT
Default value for the TCP port (Babel.PAR_DEFAULT_PORT, i.e.babel.port) HyParView binds. babel-core owns the key but defines no default value, so the demo supplies one here.- See Also:
-
PAR_ANTIENTROPY_ENABLED
Property key — load and wire the anti-entropy reconciliation protocol. Whentrue, Main turns onEagerPushGossipBroadcast.SupportAntiEntropyand givesAntiEntropyits own channel atbabel.port + 2.- See Also:
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
- Throws:
Exception
-