org.portico.lrc.handlers
Class REQ_DeleteObjectHandler
java.lang.Object
com.lbf.commons.messaging.AbstractMessageHandler
org.portico.lrc.handlers.LRCMessageHandler
org.portico.lrc.handlers.REQ_DeleteObjectHandler
- All Implemented Interfaces:
- com.lbf.commons.messaging.IMessageHandler
public class REQ_DeleteObjectHandler
- extends LRCMessageHandler
This class handles requests to delete an object instance
Fields inherited from class com.lbf.commons.messaging.AbstractMessageHandler |
augmentable, name |
Method Summary |
void |
processMessage(com.lbf.commons.messaging.MessageContext context)
This method does the following:
Do any state validity checks (such as ensuring the federate is joined)
If the request was sent with a timestamp, make sure it is not below the current LBTS
for this federate
Check that the object handle exists (that we know about it) and that the calling
federate has the privilege to delete it
Send the reqeust to the RTI
If the request is a success, remove the instance from the
LRCInstanceRepository
|
Methods inherited from class com.lbf.commons.messaging.AbstractMessageHandler |
getName, isAugmentable, setAugmentable, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REQ_DeleteObjectHandler
public REQ_DeleteObjectHandler()
processMessage
public void processMessage(com.lbf.commons.messaging.MessageContext context)
throws Exception
- This method does the following:
- Do any state validity checks (such as ensuring the federate is joined)
- If the request was sent with a timestamp, make sure it is not below the current LBTS
for this federate
- Check that the object handle exists (that we know about it) and that the calling
federate has the privilege to delete it
- Send the reqeust to the RTI
- If the request is a success, remove the instance from the
LRCInstanceRepository
- Specified by:
processMessage
in interface com.lbf.commons.messaging.IMessageHandler
- Specified by:
processMessage
in class LRCMessageHandler
- Throws:
Exception