Class RemoteDistributedContext

java.lang.Object
org.episteme.core.distributed.RemoteDistributedContext
All Implemented Interfaces:
DistributedContext

public class RemoteDistributedContext extends Object implements DistributedContext
Remote implementation of DistributedContext (stub).

This class serves as a template/interface for future remote distributed computing implementations. Actual implementations could use:

  • Java RMI for traditional remote method invocation
  • gRPC for high-performance cross-language RPCs
  • Apache Spark for large-scale data processing
  • Hazelcast or GridGain for in-memory distributed computing

Serialization Requirements: Tasks submitted to this context MUST:

  • Implement `Serializable` (enforced by API)
  • Have all referenced classes/data serializable
  • Not depend on non-serializable local state (e.g., ThreadLocal)

Math Context Propagation: The implementation should automatically capture the current `MathContext` when tasks are submitted and restore it on remote workers before execution.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • RemoteDistributedContext

      public RemoteDistributedContext(String[] remoteHosts, int port, boolean useEncryption)
      Creates a remote distributed context.
      Parameters:
      remoteHosts - array of remote host addresses (e.g., ["192.168.1.10", "192.168.1.11"])
      port - communication port
      useEncryption - whether to use TLS/SSL encryption
  • Method Details