📄 srvsrv.script
字号:
.***************************************************************************.* Software Testing Automation Framework (STAF).* (C) Copyright IBM Corp. 2001.*.* This software is licensed under the Common Public License (CPL) V1.0..***************************************************************************.*************************-START-OF-PROLOG-****************************.*.* File Name : SrvSrv SCRIPT.* Descriptive Name : Software Test Automation Framework Service Service.* Detail:.*.* This file describes the STAF Service Service..*.**************************-END-OF-PROLOG-*****************************:ih1.services:i2.service service:h2 id=srvService.Service Service:h3.Description:p.The SERVICE service is one of the internal STAF services. It provides thefollowing commands.:ul compact.:li.LIST - Displays information about the services, service loaders, orauthenticators available on the machine or requests that have been submittedon the machine:li.QUERY - Displays information about a service, authenticator, or serviceloader available on the machine, or about a request that has been submittedon the machine:li.ADD - Add (register) a service.*:li.REPLACE - Replace a service.*:li.RENAME - Rename a service:li.REMOVE - Remove (unregister) a service:li.FREE - Frees resources for requests that have been submitted on the machine:li.&help.:eul..*.*---------------------------------------------------------------------.*:ih1.service commands:ih2.LIST:i3.service service:h3.LIST:p.LIST will display information about the services, service loaders, orauthenticators available on the machine or requests that have beensubmitted on the machine.:h4.Syntax:xmp.LIST &lbrk.SERVICES | SERVICELOADERS | AUTHENTICATORS | REQUESTS &lbrk.PENDING&rbrk. &lbrk.COMPLETE&rbrk.&rbrk. &lbrk.LONG&rbrk.:exmp.:p.:xph.SERVICES:exph. specifies that you want a list of services that are registered.:p.:xph.SERVICELOADERS:exph. specifies that you want a list of the service loadersthat are registered.:p.:xph.AUTHENTICATORS:exph. specifies that you want a list of the authenticatorsthat are registered.:p.:xph.REQUESTS:exph. specifies that you want a list of requests.:p.:xph.PENDING:exph. specifies that the request list should include pendingrequests, i.e. requests which are still being processed.:p.:xph.COMPLETE:exph. specifies that the request list should include completedrequests which have not yet been :xph.FREE:exph.d.:p.:xph.LONG:exph. specifies that the request list should include more detailedinformation about each request.:p.If neither :xph.PENDING:exph. nor :xph.COMPLETE:exph. is specified the defaultis :xph.PENDING:exph..:h4.Security:p.&seclvl. 2.:h4.Return Codes:p.All return codes from LIST are documented in :hdref refid=retcode..:h4.Results:p.If successful, the result buffer will contain informationabout the request based on the options specified: :ul.:li.The result buffer for a :xph.LIST SERVICES:exph., :xph.LIST SERVICELOADERS:exph.,or :xph.LIST AUTHENTICATORS:exph. request will contain a marshalled:xph.<List> of <Map&colon.STAF/Service/Service/ServiceInfo>:exph.representing the services, serviceloaders, or authenticators that arecurrently registered. The map is defined as follows::table cols='* * * 2*'.:tcap.Definition of map class STAF/Service/Service/ServiceInfo:tnote text='Description'.This map class represents a service, serviceloader,or authenticator.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.name:c.Name:c.&stringObj.:c.:row.:c.library:c.Library:c.&stringObj.:c.:xph.'<Internal>':exph., :xph.'<Delegated>':exph. or library name if external service:row.:c.executable:c.Executable:c.&stringObj. | &noneObj.:c.:tnote text='Notes'.:ol compact.:li.The value for "Library" will depend on the type of service: :ul compact. :li.Internal service: :xph.<Internal>:exph. :li.Delegated service: :xph.<Delegated>:exph. :li.External service: The name of the shared library which implements the service or acts as a proxy for the service. External Java services and authenticators will have a library name of :xph.JSTAF:exph.. :eul.:li.For external Java services, the value for "Executable" will be the name of the Java jar file which implements a service, serviceloader, or authenticator.For non-proxy services libraries (e.g. internal services, delegated services,C++ services), the value for "Executable" will be &noneObj..:eol.:etnote.:etable.:p.:li.The result buffer for a :xph.LIST REQUESTS:exph.request will contain a marshalled :xph.<List> of<Map&colon.STAF/Service/Service/RequestInfo>:exph. representingrequests that have been submitted on the machine.The map is defined as follows::table cols='* * * 2*'.:tcap.Definition of map class STAF/Service/Service/RequestInfo:tnote text='Description'.This map class represents informationabout a request that has been submitted.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.requestNumber:c.Request#.br(Req#):c.&stringObj.:c.:row.:c.state:sup.3:esup.:c.Status:c.&stringObj.:c.:xph.'Pending' | 'Complete':exph.:row.:c.sourceMachine:sup.1:esup.:c.Source Machine.br(Source):c.&stringObj.:c.:row.:c.sourceHandleName:sup.1:esup.:c.Source Handle Name.br(Handle Name):c.&stringObj.:c.:row.:c.sourceHandle:sup.1:esup.:c.Source Handle.br(H#):c.&stringObj.:c.:row.:c.startTimestamp:c.Start Date-Time.br(Date-Time):c.&stringObj.:c.×tampFormat.:row.:c.targetMachine:sup.1:esup.:c.Target Machine.br(Target):c.&stringObj.:c.:row.:c.service:c.Service:c.&stringObj.:c.:row.:c.request:c.Request:c.&stringObj.:c.&maskPrivate.:row.:c.rc:sup.2:esup.:c.Return Code.br(RC):c.&stringObj. | &noneObj.:c.:row.:c.result:sup.2:esup.:c.Result:c.&stringObj. | &noneObj.:c.:tnote text='Notes'.:sl compact.:li.:sup.1:esup. This field is only present if the :xph.LONG:exph. option isspecified in the request.:li.:sup.2:esup. This field is only present if options :xph.COMPLETE:exph. and:xph.LONG:exph. are specified in the request.:li.:sup.3:esup. This field is only present if options :xph.COMPLETE:exph.,:xph.PENDING:exph., and :xph.LONG:exph. are specified in the request.:esl.:ul compact.:li.The value for "Request#" is the request number.:li.The value for "Status" is the state of the request. This will be either:xph.Pending:exph. or :xph.Complete:exph..:li.The values for "Source Machine", "Source Handle Name", and "Source Handle"are the machine endpoint, handle name, and handle number of the process thatoriginated the request.:li.The value for "Start Date-Time" is the timestamp when the request started.:li.The value for "Target Machine" is the machine to which the request was sent.:li.The value for "Service" is the service to which the request was sent.:li.The value for "Request" is the request which was sent.:li.The value for "Return Code" is the return code from the request. This will be&noneObj. if the request status is :xph.Pending:exph..:li.The value for "Result" is the result buffer from the request. This will be&noneObj. if the request status is :xph.Pending:exph..:eul.:etnote.:etable.:eul.:h4.Examples:p.:ul.:li.:hp2.Goal::ehp2. List all the services registered on a machine.:p.:hp2.Syntax::ehp2. :xph.LIST SERVICES:exph.:p.:hp2.Results::ehp2. If the request is issued from thecommand line, the result, in table format, could look like::xmp.Name Library Executable-------- ---------- -------------------------------------CRON JSTAF C:\STAF\services\STAFCron.jarDELAY <Internal> <None>DIAG <Internal> <None>ECHO <Internal> <None>EM JSTAF C:\STAF\services\STAFEventManager.jarEMAIL JSTAF C:\STAF\services\STAFEmail.jarEVENT JSTAF C:\STAF\services\STAFEvent.jarFS <Internal> <None>HANDLE <Internal> <None>HELP <Internal> <None>LOG STAFLog <None>MISC <Internal> <None>MONITOR STAFMon <None>NC JSTAF C:\STAF\services\STAFNamedCounter.jarPING <Internal> <None>PROCESS <Internal> <None>QUEUE <Internal> <None>RESPOOL STAFPool <None>SEM <Internal> <None>SERVICE <Internal> <None>SHUTDOWN <Internal> <None>STAX JSTAF C:\STAF\services\STAX.jarTIMER JSTAF C:\STAF\services\STAFTimer.jarTRACE <Internal> <None>TRUST <Internal> <None>VAR <Internal> <None>:exmp.:p.:li.:hp2.Goal::ehp2. List all the service loaders registered on a machine.:p.:hp2.Syntax::ehp2. :xph.LIST SERVICELOADERS:exph.:p.:hp2.Results::ehp2. If the request is issued from the command line,the result, in table format, could look like::xmp.Name Library Executable------------------ -------- ----------------------------------------STAFSERVICELOADER1 STAFDSLS <None>STAFSERVICELOADER2 JSTAF C:\STAF\services\CustomServiceLoader.jar:exmp.:p.:li.:hp2.Goal::ehp2. List all the authenticators registered on a machine.:p.:hp2.Syntax::ehp2. :xph.LIST AUTHENTICATORS:exph.:p.:hp2.Results::ehp2. If the request is issued from the command line,the result, in table format, could look like::xmp.Name Library Executable---------- ------- --------------------------------------------------------AUTHSAMPLE JSTAF C:\STAF\services\AuthSample.jarIBM JSTAF C:\STAF\services\STAFIBMIntraAuth.jar:exmp.:p.:li.:hp2.Goal::ehp2. List all the pending requests on a machine.:p.:hp2.Syntax::ehp2. :xph.LIST REQUESTS:exph.:p.:hp2.Results::ehp2. If the request is issued from thecommand line, the result, in table format, could look like::xmp.Request# Start Date-Time Service Request-------- ----------------- ------- ------------------------------------------39 20050321-16:33:03 QUEUE GET WAIT63 20050321-16:33:03 QUEUE GET WAIT 10000102 20050321-16:34:42 QUEUE GET WAIT 120000 TYPE ProductA/Test2/Status165 20050321-16:34:52 DELAY DELAY 60000106 20050321-16:34:58 SERVICE LIST REQUESTS:exmp.:p.:li.:hp2.Goal::ehp2. List detailed information on all the pendingrequests on a machine.:p.:hp2.Syntax::ehp2. :xph.LIST REQUESTS LONG:exph.:p.:hp2.Results::ehp2. If the request is issued from thecommand line, the result, in table format, could look like::xmp.Req# Source Handle Name H# Date-Time Target Service Request---- ------- ------------ -- --------- ---------- ------- ---------------------39 local:/ STAF/SERVICE 11 20050321- client1.co QUEUE GET WAIT /local /eM 14:25:04 mpany.com63 local:/ STAF/Service 16 20050321- client1.co QUEUE GET WAIT 10000 /local /TimeR/Watch 14:25:04 mpany.com 102 local:/ ProductA/Tes 21 20050321- client1.co QUEUE GET WAIT 120000 TYPE /local t2 16:34:42 mpany.com ProductA/Test2/Status165 local:/ STAF/Client 27 20050321- client2 DELAY DELAY 60000 /local 16:34:52 180 local:/ STAF/Client 34 20050321- client1.co SERVICE LIST REQUESTS LONG /local 14:39:04 mpany.com:exmp.:p.:li.:hp2.Goal::ehp2. List detailed information on all the pending andcomplete requests on a machine.:p.:hp2.Syntax::ehp2. :xph.LIST REQUESTS PENDING COMPLETE LONG:exph.:p.:hp2.Results::ehp2. If the request is issued from thecommand line, the result, in table format, could look like::xmp.Req# State Source Handle Name H# Date-Time Target Service Request RC Result---- ------- ------- ----------- -- --------- ------ ------- -------- -- ------39 Pending local:/ STAF/SERVIC 11 20050321- client QUEUE GET WAIT <N <None> /local E/eM 14:25:04 1.comp on any.co e> m63 Pending local:/ STAF/Servic 16 20050321- client QUEUE GET WAIT <N <None> /local e/TimeR/Wat 14:25:04 1.comp 10000 on ch any.co e> m102 Pending local:/ ProductA/Te 21 20050321- client QUEUE GET WAIT <N <None> /local st2 16:34:42 1.comp 120000 T on any.co YPE Prod e> m uctA/Tes t2/Statu s165 Pending local:/ STAF/Client 27 20050321- client DELAY DELAY 60 <N <None> /local 16:34:52 2 000 on e>176 Complet local:/ TestA 36 20050321- client MISC VERSION 0 3.0.0 e /local 13:30:14 1.comp any.co m 180 Pending local:/ STAF/Client 38 20050321- client SERVICE LIST REQ <N <None> /local 13:30:16 1.comp UESTS PE on any.co NDING CO e> m MPLETE L ONG:exmp.:p.:li.:hp2.Goal::ehp2. List detailed information on all the complete requests on a machine.:p.:hp2.Syntax::ehp2. :xph.LIST REQUESTS COMPLETE LONG:exph.:p.:hp2.Results::ehp2. If the request is issued from thecommand line, the result, in table format, could look like::xmp.Req# Source Handle Name H# Date-Time Target Service Request RC Result---- ------- ----------- -- --------- ---------- ------- -------- -- ------176 local:/ TestA 36 20050321- client1.co MISC VERSION 0 3.0.0 /local 13:30:14 mpany.com:exmp.:eul..*.*---------------------------------------------------------------------.*:ih2.QUERY:i3.service service:h3.QUERY:p.QUERY will display information about a service, authenticator, or serviceloader available on the machine, or about a request that has been submittedon the machine.:h4.Syntax:xmp.QUERY SERVICE <Service Name> | SERVICELOADER <ServiceLoader Name> | AUTHENTICATOR <Authenticator Name> | REQUEST <Request Number>:exmp.:p.:xph.SERVICE:exph. specifies the name of the service to be queried.:p.:xph.SERVICELOADER:exph. specifies the name of the service loaderto be queried.:p.:xph.AUTHENTICATOR:exph. specifies the name of the authenticator serviceto be queried.:p.:xph.REQUEST:exph. specifies the number of the request to be queried.:h4.Security:p.&seclvl. 2.:h4.Return Codes:p.All return codes from QUERY are documented in :hdref refid=retcode..:h4.Results:p.If successful, the result buffer will contain the following based onthe request::ul.:li.The result buffer for a :xph.QUERY SERVICE:exph.,:xph.QUERY SERVICELOADER:exph., or :xph.QUERY AUTHENTICATOR:exph. requestwill contain a marshalled :xph.<Map&colon.STAF/Service/Service/QueryService>:exph.representing the specified service, service loader, or authenticator.The map is defined as follows::table cols='* * * 2*'.:tcap.Definition of map class STAF/Service/Service/QueryService:tnote text='Description'.This map class represents a service, serviceloader, or authenticator.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.name:c.Name:c.&stringObj.:c.:row.:c.library:c.Library:c.&stringObj.:c.:xph.'<Internal>':exph., :xph.'<Delegated>':exph. or library name if external service:row.:c.executable
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -