org.safs.staf.service.var
Class SAFSVariableService3

java.lang.Object
  extended by org.safs.staf.service.var.AbstractSAFSVariableService
      extended by org.safs.staf.service.var.SAFSVariableService3
All Implemented Interfaces:
com.ibm.staf.service.STAFServiceInterfaceLevel30, SimpleVarsInterface

public class SAFSVariableService3
extends AbstractSAFSVariableService
implements com.ibm.staf.service.STAFServiceInterfaceLevel30

This SAFSVariableService3 class is an external STAF service run by the JSTAF Service Proxy. It extends AbstractSAFSVariableService for running on STAF V3.

Since:
MAY 12, 2009
MAY 12, 2009 (JunwuMa) Original Release
JUN 04, 2009 (CANAGL) Improving Thread Safety.
See Also:
SAFSVariableService

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.ibm.staf.service.STAFServiceInterfaceLevel30
com.ibm.staf.service.STAFServiceInterfaceLevel30.InitInfo, com.ibm.staf.service.STAFServiceInterfaceLevel30.RequestInfo
 
Field Summary
protected static int clients
           
protected static com.ibm.staf.STAFHandle singletonClient
           
static java.lang.String SVS3_RESERVED_VARS_KEY
           
 
Fields inherited from class org.safs.staf.service.var.AbstractSAFSVariableService
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_VALUE, tempresult
 
Fields inherited from interface com.ibm.staf.service.STAFServiceInterfaceLevel30
serviceTypeAuthenticator, serviceTypeService, serviceTypeServiceLoader, serviceTypeUnknown
 
Constructor Summary
SAFSVariableService3()
          Initialize the class, primarily, the parser used to parse service requests.
 
Method Summary
 com.ibm.staf.STAFResult acceptRequest(com.ibm.staf.service.STAFServiceInterfaceLevel30.RequestInfo info)
          Handle service request from STAF
protected  com.ibm.staf.STAFResult handleCount()
           
protected  com.ibm.staf.STAFResult handleReset()
           
 com.ibm.staf.STAFResult init(com.ibm.staf.service.STAFServiceInterfaceLevel30.InitInfo info)
          Handle initializing this instance of the service for STAF
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
 
Methods inherited from class org.safs.staf.service.var.AbstractSAFSVariableService
doAcceptRequest, doInit, getHELPInfo, getValue, setValue, smartQuoteField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SVS3_RESERVED_VARS_KEY

public static final java.lang.String SVS3_RESERVED_VARS_KEY
See Also:
Constant Field Values

clients

protected static int clients

singletonClient

protected static com.ibm.staf.STAFHandle singletonClient
Constructor Detail

SAFSVariableService3

public SAFSVariableService3()
Initialize the class, primarily, the parser used to parse service requests.

Method Detail

init

public final com.ibm.staf.STAFResult init(com.ibm.staf.service.STAFServiceInterfaceLevel30.InitInfo info)
Handle initializing this instance of the service for STAF

Specified by:
init in interface com.ibm.staf.service.STAFServiceInterfaceLevel30

acceptRequest

public final com.ibm.staf.STAFResult acceptRequest(com.ibm.staf.service.STAFServiceInterfaceLevel30.RequestInfo info)
Handle service request from STAF

Specified by:
acceptRequest in interface com.ibm.staf.service.STAFServiceInterfaceLevel30

term

public final com.ibm.staf.STAFResult term()
Handle the request to shutdown the service from STAF

Specified by:
term in interface com.ibm.staf.service.STAFServiceInterfaceLevel30

stafGetCommmd

protected java.lang.String stafGetCommmd(java.lang.String varname)
Overrides:
stafGetCommmd in class AbstractSAFSVariableService

stafSetCommmd

protected java.lang.String stafSetCommmd(java.lang.String assignExp)
Overrides:
stafSetCommmd in class AbstractSAFSVariableService

stafDeleteCommand

protected java.lang.String stafDeleteCommand(java.lang.String varname)
Overrides:
stafDeleteCommand in class AbstractSAFSVariableService

stafListCommand

protected java.lang.String stafListCommand()
Overrides:
stafListCommand in class AbstractSAFSVariableService

handleCount

protected com.ibm.staf.STAFResult handleCount()
Overrides:
handleCount in class AbstractSAFSVariableService

handleReset

protected com.ibm.staf.STAFResult handleReset()
Overrides:
handleReset in class AbstractSAFSVariableService