copyright The Portico Project 2008.

org.portico.lrc.handlers
Class REQ_LocalDeleteHandler

java.lang.Object
  extended by com.lbf.commons.messaging.AbstractMessageHandler
      extended by org.portico.lrc.handlers.LRCMessageHandler
          extended by org.portico.lrc.handlers.REQ_LocalDeleteHandler
All Implemented Interfaces:
com.lbf.commons.messaging.IMessageHandler

public class REQ_LocalDeleteHandler
extends LRCMessageHandler

Handles requests by the federate to do a local delete. This won't actually delete the instance, it will just have the RTI act as if the federate had never discovered the federate.


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_LocalDeleteHandler()
           
 
Method Summary
 void processMessage(com.lbf.commons.messaging.MessageContext context)
          This method handles a request to delete an object locally for the associated federate.
 
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_LocalDeleteHandler

public REQ_LocalDeleteHandler()
Method Detail

processMessage

public void processMessage(com.lbf.commons.messaging.MessageContext context)
                    throws Exception
This method handles a request to delete an object locally for the associated federate. It will ensure that the federate is in the appropriate state to issue the request (eg. not in the middle of a save etc...) and that the instance has been previously discovered by the federate. If this is the case, it will finally check that the federate does not currently own any attributes in the object instance before forwarding the request to the RTI for further processing.

Specified by:
processMessage in interface com.lbf.commons.messaging.IMessageHandler
Specified by:
processMessage in class LRCMessageHandler
Throws:
Exception

copyright The Portico Project 2008.