/** * Create the cluster state store object */ protected ClusterStateStore createClusterStateStore(ClusterSpec spec) { return stateStoreFactory.create(spec); }
public StartServicesCommand(ClusterControllerFactory factory) { this(factory, new ClusterStateStoreFactory()); }
@Override public ClusterStateStore load(ClusterSpec spec) throws Exception { if ("local".equals(spec.getStateStore())) { return new FileClusterStateStore(spec); } else if ("blob".equals(spec.getStateStore())) { return new BlobClusterStateStore(spec); } else if ("memory".equals(spec.getStateStore())) { return new MemoryClusterStateStore(); } else { return new NoopClusterStateStore(); } } });
public RunScriptCommand(ClusterControllerFactory factory) { this(factory, new ClusterStateStoreFactory()); }
@Override public ClusterStateStore load(ClusterSpec spec) throws Exception { if ("local".equals(spec.getStateStore())) { return new FileClusterStateStore(spec); } else if ("blob".equals(spec.getStateStore())) { return new BlobClusterStateStore(spec); } else if ("memory".equals(spec.getStateStore())) { return new MemoryClusterStateStore(); } else { return new NoopClusterStateStore(); } } });
/** * Create the cluster state store object */ protected ClusterStateStore createClusterStateStore(ClusterSpec spec) { return stateStoreFactory.create(spec); }
public ConfigureServicesCommand(ClusterControllerFactory factory) { this(factory, new ClusterStateStoreFactory()); }
public ClusterStateStore getClusterStateStore(ClusterSpec clusterSpec) { return stateStoreFactory.create(clusterSpec); }
public StopServicesCommand(ClusterControllerFactory factory) { this(factory, new ClusterStateStoreFactory()); }
public StartServicesCommand(ClusterControllerFactory factory) { this(factory, new ClusterStateStoreFactory()); }
public AbstractClusterCommand(String name, String description, ClusterControllerFactory factory) { this(name, description, factory, new ClusterStateStoreFactory()); }
public RestartServicesCommand(ClusterControllerFactory factory) { this(factory, new ClusterStateStoreFactory()); }
public AbstractClusterCommand(String name, String description, ClusterControllerFactory factory) { this(name, description, factory, new ClusterStateStoreFactory()); }
public ClusterController() { this(ComputeCache.INSTANCE, new ClusterStateStoreFactory()); }
public RestartServicesCommand(ClusterControllerFactory factory) { this(factory, new ClusterStateStoreFactory()); }
public ListClusterCommand(ClusterControllerFactory factory) { this(factory, new ClusterStateStoreFactory()); }
public StopServicesCommand(ClusterControllerFactory factory) { this(factory, new ClusterStateStoreFactory()); }
public CleanupClusterCommand(ClusterControllerFactory factory) { this(factory, new ClusterStateStoreFactory()); }
public ListClusterCommand(ClusterControllerFactory factory) { this(factory, new ClusterStateStoreFactory()); }
public CleanupClusterCommand(ClusterControllerFactory factory) { this(factory, new ClusterStateStoreFactory()); }