|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsst.ccs.bus.BusMessage
org.lsst.ccs.bus.Command
public abstract class Command
A command sent on the CCS bus Will be executed by the destination subsystem.
| Field Summary | |
|---|---|
protected boolean |
canRunInActiveMode
|
protected boolean |
canWaitForReady
|
protected String |
destination
|
protected String |
key
|
protected static org.apache.log4j.Logger |
log
|
| Fields inherited from class org.lsst.ccs.bus.BusMessage |
|---|
detailLevel, origin, priorityLevel, summary, timeStamp |
| Constructor Summary | |
|---|---|
Command()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.lsst.ccs.bus.BusMessage |
|---|
getDetailLevel, getOrigin, getPriorityLevel, getSummary, getTimeStamp, setDetailLevel, setOrigin, setPriorityLevel, setSummary, setTimeStamp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger log
protected String destination
protected String key
protected boolean canWaitForReady
protected boolean canRunInActiveMode
| Constructor Detail |
|---|
public Command()
| Method Detail |
|---|
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 toString()
toString in class Objectpublic String getCorrelId()
public void setCorrelId(String correlId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||