com.ibm.dse.services.appltables
Class ApplicationTablesServerOp

java.lang.Object
  |
  +--com.ibm.dse.base.DSEOperation
        |
        +--com.ibm.dse.base.DSEServerOperation
              |
              +--com.ibm.dse.services.appltables.ApplicationTablesServerOp

public class ApplicationTablesServerOp
extends DSEServerOperation

The ApplicationTablesServerOp is the server operation that will be automatically executed when the application requests to get the static data from a remote location if it is not locally available ( by setting the ApplicationTables service searchRemotelly attribute to true). The proper definitions must be set in the XML files.

See Also:
Serialized Form

Fields inherited from class com.ibm.dse.base.DSEOperation
aOperationRepliedListener, externalizer
 
Constructor Summary
ApplicationTablesServerOp()
          This constructor creates an instance of ApplicationTablesServerOp.
ApplicationTablesServerOp(java.lang.String arg1)
          This constructor creates an instance of ApplicationTablesServerOp and sets its name attribute as arg1.
ApplicationTablesServerOp(java.lang.String arg1, Context arg2)
          This constructor creates an instance of ApplicationTablesServerOp and sets its name attribute as arg1.
ApplicationTablesServerOp(java.lang.String arg1, java.lang.String arg2)
          This constructor creates an instance of ApplicationTablesServerOp and sets its name attribute as arg1.
 
Method Summary
 void execute()
          The execute method will check for the table existence in memory.
 
Methods inherited from class com.ibm.dse.base.DSEServerOperation
getCSReplyFormat, getCSRequestFormat, getOriginWorkstation, runInSession, setCSReplyFormat, setCSRequestFormat, setOriginWorkstation, updateContext
 
Methods inherited from class com.ibm.dse.base.DSEOperation
addElement, addOperationRepliedListener, chainTo, chainToContextNamed, chainToCurrentContext, close, externalizer, fireHandleOperationRepliedEvent, getApplicationId, getContext, getContextByType, getContextName, getContextNamed, getElementAt, getExternalizer, getFormat, getFormats, getHostReceiveFormat, getHostSendFormat, getInstanceOfOperationStep, getKeyedCollection, getName, getOperationStep, getOperationStepRC, getOperationSteps, getParent, getSelfDefinedOpTagInputStream, getService, getServiceByType, getSessionId, getSgmlSelfDefinedOpFileName, getType, getValueAt, hasServices, initializeFormatFrom, initializeFrom, initializeKeyedCollectionValueFrom, initializeOpStep, initializeOpStepsFrom, isCacheable, isChained, isContext, occurrencesNamed, prune, readExternal, readExternal, readObject, reinitialize, removeAt, removeExternal, removeOperationRepliedListener, setApplicationId, setContext, setContextName, setExternalizer, setHostReceiveFormat, setHostSendFormat, setKeyedCollection, setName, setSessionId, setType, setValueAt, toString, toStrings, toTags, unchain, writeExternal, writeExternal, xValidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationTablesServerOp

public ApplicationTablesServerOp()
This constructor creates an instance of ApplicationTablesServerOp.

ApplicationTablesServerOp

public ApplicationTablesServerOp(java.lang.String arg1)
                          throws java.io.IOException
This constructor creates an instance of ApplicationTablesServerOp and sets its name attribute as arg1. It reads the external information for the operation from the operations external definition file.
Parameters:
arg1 - java.lang.String, the operation name
Throws:
java.io.IOException -  

ApplicationTablesServerOp

public ApplicationTablesServerOp(java.lang.String arg1,
                                 Context arg2)
                          throws java.io.IOException,
                                 DSEInvalidRequestException
This constructor creates an instance of ApplicationTablesServerOp and sets its name attribute as arg1. It reads the external information for the operation from the operations external definition file and chains the operation context to arg2.
Parameters:
arg1 - java.lang.String, the operation name
arg2 - com.ibm.dse.base.Context, the operation parent context
Throws:
java.io.IOException -  
DSEInvalidRequestException -  

ApplicationTablesServerOp

public ApplicationTablesServerOp(java.lang.String arg1,
                                 java.lang.String arg2)
                          throws java.io.IOException,
                                 DSEObjectNotFoundException,
                                 DSEInvalidRequestException
This constructor creates an instance of ApplicationTablesServerOp and sets its name attribute as arg1. It reads the external information for the operation from the operations external definition file and chains the operation context to the context named arg2.
Parameters:
arg1 - java.lang.String, the operation name
arg2 - java.lang.String, the operation parent context name
Throws:
java.io.IOException -  
DSEObjectNotFoundException -  
DSEInvalidRequestException -  
Method Detail

execute

public void execute()
             throws java.lang.Exception
The execute method will check for the table existence in memory. If it does not exist, it will try to load it from the external data storage. If the table exists either already in memory or in the external data storage, the table information is retrieved to be sent as response to the client. When the table name is "allTables" then this process is done for all the tables defined.
Overrides:
execute in class DSEServerOperation