public class EmbeddedVariableService extends AbstractSAFSVariableService implements ServiceInterface
Modifier and Type | Field and Description |
---|---|
protected boolean |
embedVars |
protected com.ibm.staf.service.STAFCommandParser |
localparser |
protected java.util.Hashtable<java.lang.String,java.lang.String> |
localvars |
c, client, dq, empty, eq, exp, parser, q, r, s, service_maps_available, servicemaps, servicename, serviceparms, SVS_CARET, SVS_FALSE_CARET, SVS_SERVICE_INIT_ARGS_MAX, SVS_SERVICE_PARM_MAP_VAR_LOOP, SVS_SERVICE_PROCESS_NAME, SVS_SERVICE_REQUEST_ARGS_MAX, SVS_SERVICE_REQUEST_COUNT, SVS_SERVICE_REQUEST_DELETE, SVS_SERVICE_REQUEST_GET, SVS_SERVICE_REQUEST_HANDLEID, SVS_SERVICE_REQUEST_HELP, SVS_SERVICE_REQUEST_LIST, SVS_SERVICE_REQUEST_NOEXPRESSIONS, SVS_SERVICE_REQUEST_RESET, SVS_SERVICE_REQUEST_RESOLVE, SVS_SERVICE_REQUEST_SAFSMAPS, SVS_SERVICE_REQUEST_SEPARATOR, SVS_SERVICE_REQUEST_SET, SVS_SERVICE_REQUEST_V2, SVS_SERVICE_REQUEST_VALUE, tempresult
Constructor and Description |
---|
EmbeddedVariableService() |
Modifier and Type | Method and Description |
---|---|
com.ibm.staf.STAFResult |
acceptRequest(InfoInterface.RequestInfo info) |
protected com.ibm.staf.STAFResult |
deleteStoredVariable(java.lang.String deleteCmd)
Made to be overridden by subclasses, if any.
|
protected com.ibm.staf.STAFResult |
getStoredValue(java.lang.String getCmd)
Made to be overridden by subclasses, if any.
|
protected com.ibm.staf.STAFResult |
handleCount() |
protected com.ibm.staf.STAFResult |
handleList(com.ibm.staf.service.STAFCommandParseResult parsedData)
Return the STAF VAR LIST STAFResult.result in marshalled V3 format UNLESS the
V2 command option was given.
|
protected com.ibm.staf.STAFResult |
handleReset() |
com.ibm.staf.STAFResult |
init(InfoInterface.InitInfo initInfo)
Intercepts initializing the instance of the service to get servicename information.
|
protected void |
registerHandle(java.lang.String handleId) |
void |
setEmbedVars(boolean bool)
Set true to tell the service to store variable values locally and not use the STAF VAR service.
|
protected com.ibm.staf.STAFResult |
setStoredValue(java.lang.String setCmd)
Made to be overridden by subclasses, if any.
|
protected java.lang.String |
stafDeleteCommand(java.lang.String varname) |
protected java.lang.String |
stafGetCommmd(java.lang.String varname) |
protected java.lang.String |
stafListCommand() |
protected java.lang.String |
stafSetCommmd(java.lang.String assignExp) |
com.ibm.staf.STAFResult |
term()
Handle the request to shutdown the service from STAF
|
com.ibm.staf.STAFResult |
terminateService() |
doAcceptRequest, doInit, getHELPInfo, getValue, setValue, smartQuoteField
protected boolean embedVars
protected java.util.Hashtable<java.lang.String,java.lang.String> localvars
protected com.ibm.staf.service.STAFCommandParser localparser
protected void registerHandle(java.lang.String handleId) throws com.ibm.staf.STAFException
com.ibm.staf.STAFException
public void setEmbedVars(boolean bool)
bool
- public com.ibm.staf.STAFResult init(InfoInterface.InitInfo initInfo)
This service is registered under process name "STAF/Service/<ServiceName>".
public com.ibm.staf.STAFResult acceptRequest(InfoInterface.RequestInfo info)
acceptRequest
in interface ServiceInterface
public final com.ibm.staf.STAFResult term()
protected java.lang.String stafGetCommmd(java.lang.String varname)
stafGetCommmd
in class AbstractSAFSVariableService
protected java.lang.String stafSetCommmd(java.lang.String assignExp)
stafSetCommmd
in class AbstractSAFSVariableService
protected java.lang.String stafDeleteCommand(java.lang.String varname)
stafDeleteCommand
in class AbstractSAFSVariableService
protected java.lang.String stafListCommand()
stafListCommand
in class AbstractSAFSVariableService
protected com.ibm.staf.STAFResult getStoredValue(java.lang.String getCmd)
AbstractSAFSVariableService
getStoredValue
in class AbstractSAFSVariableService
protected com.ibm.staf.STAFResult setStoredValue(java.lang.String setCmd)
AbstractSAFSVariableService
setStoredValue
in class AbstractSAFSVariableService
protected com.ibm.staf.STAFResult deleteStoredVariable(java.lang.String deleteCmd)
deleteStoredVariable
in class AbstractSAFSVariableService
deleteCmd
- protected com.ibm.staf.STAFResult handleCount()
handleCount
in class AbstractSAFSVariableService
protected com.ibm.staf.STAFResult handleReset()
handleReset
in class AbstractSAFSVariableService
protected com.ibm.staf.STAFResult handleList(com.ibm.staf.service.STAFCommandParseResult parsedData)
handleList
in class AbstractSAFSVariableService
public com.ibm.staf.STAFResult terminateService()
terminateService
in interface ServiceInterface
Copyright © SAS Institute. All Rights Reserved.