Class ClusterImpl

  • All Implemented Interfaces:
    it.unibo.alchemist.boundary.grid.cluster.Cluster , java.lang.AutoCloseable

    
    public final class ClusterImpl
     implements Cluster
                        

    An implementation of Cluster uses Apache Ignite.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ClusterImpl(Path configPath)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      WorkerSet getWorkersSet(Complexity complexity)
      void close() Leave the cluster.
      • Methods inherited from class java.lang.AutoCloseable

        close
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClusterImpl

        ClusterImpl(Path configPath)
        Parameters:
        configPath - path of Ignite's configuration file
    • Method Detail

      • getWorkersSet

         WorkerSet getWorkersSet(Complexity complexity)
        Parameters:
        complexity - a simulation's complexity
        Returns:

        Workers' set that can execute a simulation with given complexity

      • close

         void close()

        Leave the cluster.