Class DistributedCompute
java.lang.Object
org.episteme.core.distributed.DistributedCompute
Manager for distributed computing contexts.
Allows switching between local parallel execution and distributed cluster execution.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DistributedContextGets the current distributed context.static intConvenience method to get parallelism level.static voidsetContext(DistributedContext newContext) Sets the current distributed context.
-
Constructor Details
-
DistributedCompute
public DistributedCompute()
-
-
Method Details
-
setContext
Sets the current distributed context.- Parameters:
newContext- The new context to use
-
getContext
Gets the current distributed context.- Returns:
- The active DistributedContext
-
getParallelism
public static int getParallelism()Convenience method to get parallelism level.
-