public abstract class Command extends BusMessage implements CommandBusMessage
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
canRunInActiveMode |
protected boolean |
canWaitForReady |
protected String |
command |
protected String |
destination |
protected String |
key |
protected static org.lsst.ccs.utilities.logging.Logger |
log |
protected Object[] |
parameters |
protected boolean |
unParsed
indicates that the command is a pure String to be parsed
by the receiver.
|
detailLevel, origin, priorityLevel, summary, timeStamp| Modifier | Constructor and Description |
|---|---|
protected |
Command(String command) |
protected |
Command(String command,
Object[] parameters) |
| 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 ?
|
String |
getCommand() |
String |
getCorrelId() |
String |
getDestination()
The command destination : subsystem name or "*"
|
String |
getKey()
Key used for lock and arbitration.
|
String |
getMessageType() |
Object[] |
getParameters() |
boolean |
isUnParsed() |
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.
|
void |
setUnParsed(boolean unParsed) |
String |
toString() |
getDetailLevel, getOrigin, getPriorityLevel, getSummary, getTimeStamp, setDetailLevel, setOrigin, setPriorityLevel, setSummary, setTimeStampprotected static final org.lsst.ccs.utilities.logging.Logger log
protected String destination
protected String key
protected boolean canWaitForReady
protected boolean canRunInActiveMode
protected boolean unParsed
protected String command
protected Object[] parameters
protected Command(String command)
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)
public boolean isUnParsed()
public void setUnParsed(boolean unParsed)
public String getCommand()
public Object[] getParameters()
Copyright © 2014 LSST. All Rights Reserved.