public class Cluster extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Cluster.ClusterState |
public static Cluster getCluster()
public static Cluster getClusterWithUI()
public static boolean activeCluster()
public static boolean initializedCluster()
public static String stateString(Cluster.ClusterState s)
public static void registerNodeShell(NodeShell shell)
public static Collection<NodeShell> registeredShells()
public static boolean configureCluster(Cluster cluster, String execRootRemote, String fileRootRemote, String execRoot, String fileRoot, String userName)
public Cluster.ClusterState getState()
public boolean init()
public void setLocalHostName(String host)
public ClusterNode getNode(long id)
public void startNode(ClusterNode node)
public void startNode(NodeParameters params)
public boolean hasNode(long id)
public boolean hasNode(ClusterNode node)
public void addStateListener(ClusterStateListener listener)
public void removeStateListener(ClusterStateListener listener)
public void triggerListeners()
public boolean acceptingNodes()
public void waitForAllNodes(long timeout) throws InterruptedException, TimeoutException
InterruptedException
TimeoutException
public void waitUntilReady()
public void waitUntilReady(long timeout)
public int countReadyNodes()
public boolean isReady()
public void jobFinished()
public Set<ClusterNode> getNodes()
public ArrayList<NodeParameters> getNodeParameters()
public NodeCoordinator getNodeCoordinator()
public NodeParametersFactory getParametersFactory()
public void addBottler(Bottler bottler)
public void start()
public int getRunningJobCount()
public int getQueuedJobCount()
protected void haltFinished()
protected void terminateFinished()
public void nodeStopped(ClusterNode node, int nRunningNodes)
public void nodeStarted()
public boolean isShutdown()
public boolean isTerminated()
public void shutdown()
public int getMaxThreads()
public ExecutorService getService(int nThreads)
public ExecutorService getService(float fractionThreads)
public String getLocalHostName()
public void registerUI(ArchipelagoUI ui)
public void deRegisterUI(ArchipelagoUI ui)
public int numRegisteredUIs()
public static boolean isClusterService(ExecutorService es)
Copyright © 2015–2021 Fiji. All rights reserved.