copyright The Portico Project 2008.

org.portico.lrc.handlers
Class REQ_DeleteObjectHandler

java.lang.Object
  extended by com.lbf.commons.messaging.AbstractMessageHandler
      extended by org.portico.lrc.handlers.LRCMessageHandler
          extended by 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


Field Summary
 
Fields inherited from class org.portico.lrc.handlers.LRCMessageHandler
interests, logger, lrc, regions, repository, state
 
Fields inherited from class com.lbf.commons.messaging.AbstractMessageHandler
augmentable, name
 
Constructor Summary
REQ_DeleteObjectHandler()
           
 
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 org.portico.lrc.handlers.LRCMessageHandler
error, error, getConnection, getFOM, initialize, sendMessage, success, success, success
 
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
 

Constructor Detail

REQ_DeleteObjectHandler

public REQ_DeleteObjectHandler()
Method Detail

processMessage

public void processMessage(com.lbf.commons.messaging.MessageContext context)
                    throws Exception
This method does the following:
  1. Do any state validity checks (such as ensuring the federate is joined)
  2. If the request was sent with a timestamp, make sure it is not below the current LBTS for this federate
  3. Check that the object handle exists (that we know about it) and that the calling federate has the privilege to delete it
  4. Send the reqeust to the RTI
  5. 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

copyright The Portico Project 2008.