All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gridvise.LocalAPI.scala Maven / Gradle / Ivy

The newest version!
package org.gridvise
import org.gridvise.logical.ClusterConfigParser
import org.gridvise.mgmtcache.coh.entity.config.ConfigCache
import org.gridvise.mgmtcache.coh.entity.launchable.LaunchableCache

object LocalAPI {

  def start() {
    LaunchableCache.getLaunchablesOnThisMachine().foreach(l => l.start() )
  }

  def stop() {
    LaunchableCache.getLaunchablesOnThisMachine().foreach(l => l.stop())
  }

  def initialize() {
    stop()
    LaunchableCache.clear()
    ClusterConfigParser.initialize(ConfigCache.getConfig())
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy