org.yamcs.commanding.CommandQueueMemento Maven / Gradle / Ivy
package org.yamcs.commanding;
import java.util.HashMap;
import java.util.Map;
import com.google.gson.annotations.SerializedName;
/**
* Object that is used to persist link state information across Yamcs restarts.
*/
public class CommandQueueMemento {
@SerializedName("queues")
private Map queues = new HashMap<>();
public void addCommandQueueState(String queue, CommandQueueState state) {
queues.put(queue, state);
}
public CommandQueueState getCommandQueueState(String queue) {
return queues.get(queue);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy