public class MessagingApplicationLayer extends Object
SPECS TO BE IMPLEMENTED:
each Subsystems should have its own Application layer (an instance for each subsystem).
this instance deals with linking command/response and data that links subsystem name with
routing data for the transport layer
the fact that the transport layer is a singleton should be transparent
(for instance in Jgroups this is not the case! each subssystem can have its own Address on the net!)
So this class should be dumped and MessagingFactroy changed
the messaging should be a protected member of subsystem
| Constructor and Description |
|---|
MessagingApplicationLayer() |
| Modifier and Type | Method and Description |
|---|---|
org.lsst.ccs.bus.Command |
commandForSending(org.lsst.ccs.bus.Command cmd)
the command id tagged with a token, an origin, and a correlation
|
String |
getToken() |
boolean |
isReplyRequested() |
org.lsst.ccs.bus.LogEvent |
logForSending(org.lsst.ccs.bus.LogEvent log) |
void |
noAutoReply() |
org.lsst.ccs.bus.Command |
receivingCommand(org.lsst.ccs.bus.Command command) |
org.lsst.ccs.bus.LogEvent |
receivingLog(org.lsst.ccs.bus.LogEvent log) |
org.lsst.ccs.bus.CommandAckOrReply |
receivingReply(org.lsst.ccs.bus.CommandAckOrReply reply)
if you are not the one who initiated the command, ditch it!
it means that CommandReply should have a destination !
is this a transport or an application layer problem?
|
org.lsst.ccs.bus.Status |
receivingStatus(org.lsst.ccs.bus.Status status) |
org.lsst.ccs.bus.CommandAckOrReply |
replyForSending(org.lsst.ccs.bus.CommandAckOrReply reply)
this method shoudl be modified to us a transport layer information to be returned
|
org.lsst.ccs.bus.Status |
statusForSending(org.lsst.ccs.bus.Status status) |
public String getToken()
public boolean isReplyRequested()
public void noAutoReply()
public org.lsst.ccs.bus.Command commandForSending(org.lsst.ccs.bus.Command cmd)
cmd - public org.lsst.ccs.bus.CommandAckOrReply receivingReply(org.lsst.ccs.bus.CommandAckOrReply reply)
reply - public org.lsst.ccs.bus.Command receivingCommand(org.lsst.ccs.bus.Command command)
public org.lsst.ccs.bus.CommandAckOrReply replyForSending(org.lsst.ccs.bus.CommandAckOrReply reply)
reply - public org.lsst.ccs.bus.Status statusForSending(org.lsst.ccs.bus.Status status)
public org.lsst.ccs.bus.LogEvent logForSending(org.lsst.ccs.bus.LogEvent log)
public org.lsst.ccs.bus.Status receivingStatus(org.lsst.ccs.bus.Status status)
public org.lsst.ccs.bus.LogEvent receivingLog(org.lsst.ccs.bus.LogEvent log)
Copyright © 2013 LSST. All Rights Reserved.