public abstract class Command extends BusMessage implements CommandBusMessage
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
canRunInActiveMode |
protected boolean |
canWaitForReady |
protected String |
destination |
protected String |
key |
protected static org.lsst.ccs.utilities.logging.Logger |
log |
detailLevel, origin, priorityLevel, summary, timeStamp| Constructor and Description |
|---|
Command() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRunInActiveMode()
Can this command be executed by a subsystem which is in "active" mode ?
|
boolean |
canWaitForReady()
can this command wait for a single-threaded ownerSubsystem to be ready ?
|
abstract Object |
execute(CommandExecutor s) |
String |
getCorrelId() |
String |
getDestination()
The command destination : subsystem name or "*"
|
String |
getKey()
Key used for lock and arbitration.
|
String |
getMessageType() |
boolean |
isWrite()
is this command a writing command that has to be protected ?
|
void |
setCanRunInActiveMode(boolean canRunInActiveMode) |
void |
setCanWaitForReady(boolean canWaitForReady)
can this command wait for a single-threaded ownerSubsystem to be ready
|
void |
setCorrelId(String correlId)
Correlation id, propagated from command to command
|
void |
setDestination(String destination)
The command destination : subsystem name or "*"
|
void |
setKey(String key)
Key used for lock and arbitration.
|
String |
toString() |
getDetailLevel, getOrigin, getPriorityLevel, getSummary, getTimeStamp, setDetailLevel, setOrigin, setPriorityLevel, setSummary, setTimeStampprotected static org.lsst.ccs.utilities.logging.Logger log
protected String destination
protected String key
protected boolean canWaitForReady
protected boolean canRunInActiveMode
public abstract Object execute(CommandExecutor s)
public String getMessageType()
getMessageType in class BusMessagepublic String getDestination()
public void setDestination(String destination)
destination - public String getKey()
public void setKey(String key)
key - public boolean isWrite()
public boolean canWaitForReady()
public void setCanWaitForReady(boolean canWaitForReady)
canWaitForReady - public boolean canRunInActiveMode()
public void setCanRunInActiveMode(boolean canRunInActiveMode)
public String getCorrelId()
public void setCorrelId(String correlId)
Copyright © 2013 LSST. All Rights Reserved.