public class StandaloneMesosWorkerStore extends Object implements MesosWorkerStore
MesosWorkerStore.Worker, MesosWorkerStore.WorkerState
TASKID_FORMAT
Constructor and Description |
---|
StandaloneMesosWorkerStore() |
Modifier and Type | Method and Description |
---|---|
scala.Option<org.apache.mesos.Protos.FrameworkID> |
getFrameworkID()
Get the stored Mesos framework ID.
|
org.apache.mesos.Protos.TaskID |
newTaskID()
Generate a new task ID for a worker.
|
void |
putWorker(MesosWorkerStore.Worker worker)
Put a worker into storage.
|
List<MesosWorkerStore.Worker> |
recoverWorkers()
Recover the stored workers.
|
boolean |
removeWorker(org.apache.mesos.Protos.TaskID taskID)
Remove a worker from storage.
|
void |
setFrameworkID(scala.Option<org.apache.mesos.Protos.FrameworkID> frameworkID)
Set the stored Mesos framework ID.
|
void |
start()
Start the worker store.
|
void |
stop(boolean cleanup)
Stop the worker store.
|
public void start() throws Exception
MesosWorkerStore
start
in interface MesosWorkerStore
Exception
public void stop(boolean cleanup) throws Exception
MesosWorkerStore
stop
in interface MesosWorkerStore
cleanup
- if true, cleanup any stored information.Exception
public scala.Option<org.apache.mesos.Protos.FrameworkID> getFrameworkID() throws Exception
MesosWorkerStore
getFrameworkID
in interface MesosWorkerStore
Exception
public void setFrameworkID(scala.Option<org.apache.mesos.Protos.FrameworkID> frameworkID) throws Exception
MesosWorkerStore
setFrameworkID
in interface MesosWorkerStore
Exception
public List<MesosWorkerStore.Worker> recoverWorkers() throws Exception
MesosWorkerStore
recoverWorkers
in interface MesosWorkerStore
Exception
public org.apache.mesos.Protos.TaskID newTaskID() throws Exception
MesosWorkerStore
newTaskID
in interface MesosWorkerStore
Exception
public void putWorker(MesosWorkerStore.Worker worker) throws Exception
MesosWorkerStore
putWorker
in interface MesosWorkerStore
Exception
public boolean removeWorker(org.apache.mesos.Protos.TaskID taskID) throws Exception
MesosWorkerStore
removeWorker
in interface MesosWorkerStore
Exception
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.