com.codemonster.surinam.export.service.command
Class MappedCommand

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by com.codemonster.surinam.export.service.command.MappedCommand
All Implemented Interfaces:
RawCommand, Serializable, Cloneable, Map
Direct Known Subclasses:
RunnableMappedCommand

public class MappedCommand
extends HashMap
implements RawCommand

This is a generic command object that designates a contract to be found and an operation that should be invoked, along with the parameters to be passed along for the operation. This is useful for jumping over the layer of isolation enforced by the Service Block.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
MappedCommand()
           
 
Method Summary
 String getContractName()
           
 int getOperationCode()
           
 String getOperationName()
           
 Object[] getParameters()
           
 void setContractName(String contractName)
           
 void setOperationCode(int operationCode)
           
 void setOperationName(String operationName)
           
 void setParameters(Object[] parameters)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

MappedCommand

public MappedCommand()
Method Detail

getContractName

public String getContractName()
                       throws IllegalStateException
Throws:
IllegalStateException

setContractName

public void setContractName(String contractName)

getOperationName

public String getOperationName()
                        throws IllegalStateException
Throws:
IllegalStateException

getOperationCode

public int getOperationCode()

setOperationCode

public void setOperationCode(int operationCode)

setOperationName

public void setOperationName(String operationName)

getParameters

public Object[] getParameters()
                       throws IllegalStateException
Throws:
IllegalStateException

setParameters

public void setParameters(Object[] parameters)


Copyright © 2010. All Rights Reserved.