Hiya,
Thanks for the reply.For point 1 STAF has many threads to handle requests
(good), but how are these passed onto my service?
I mean if i develop a new service, and then fire 1000 requests to it per
minute, will STAF queue them
and call acceptRequest in my service on a single thread one at a time, or will
acceptRequest be called on multiple threads?
As I'm also new to Java I seem to be getting an error loading my service
I get a class not found exception when adding the service
The .jar file for the service contains two .class files in correct place
STAF-INF/classes directory
But when the service class entry point creates an instance of the second class
i get this error
Thanks,
Clayton
________________________________
From: Sharon Lucas <luc...@us.ibm.com>
To: clayton neal <clayton_n...@yahoo.co.uk>
Cc: "staf-users@lists.sourceforge.net" <staf-users@lists.sourceforge.net>
Sent: Monday, 26 September 2011, 17:46
Subject: Re: [staf-users] STAF Design questions
Hi Clayton,
Welcome to the STAF project. Here
are answers to your questions:
1. If I were to write a new STAF service,
how are requests to that service managed? I guess there are placed
on the handle queue, but does STAF create many threads to handle them?
Is there any control of threading to handle large number of requests?
The service requests are not placed
on a handle's queue. STAF provides threading support to handle STAF
service requests via its thread manager which manages the thread pool.
You can configure the number of threads initially created to handle
service requests via the INITIALTHREADS operational parameter in the STAF.cfg
file and you can specify the number of additional threads which should
be created when all existing threads are busy via the THREADGROWTHDELTA
operational parameter. See section "4.7 Operational parameters"
in the STAF User's Guide at
http://staf.sourceforge.net/current/STAFUG.htm#HDROPPARMSfor more information
on these operational parameters.
2. What's the difference between a message
and a request? A request will call code in my service, but a message
doesn't? Its just placed on a queue?
A STAF service request is a request
that is submitted to a STAF service (e.g. a START request submitted to
the PROCESS service, or a QUEUE request submitted to the QUEUE service,
etc). The QUEUE service is one of the many STAF internal services.
The QUEUE service lets you send a message string via its QUEUE request
to a STAF handle's queue.
3. Is there any control of handle queue
sizes, request time-outs etc?
Yes. Section "4.7 Operational
parameters"in the STAF User's Guide contains more information about the STAF
operational
parameters such as MAXQUEUESIZE, CONNECTRETRYDELAY, and CONNECTATTEMPTS
that can be set in the STAF.cfg file. For example, MAXQUEUESIZE specifies
the maximum size of the queue associated with each handle.
The MISC (Miscellaneous) service provides
a LIST SETTINGS request that lists the current operational settings for
STAF and provides a SET request that allows you to dynamically change some
of the operational settings including MAXQUEUESIZE. The MISC service
also provides a LIST INTERFACES request that allows you to list the interfaces
(aka connection providers) that are enabled and their configuration settings.
See section "4.3.2 STAFTCP Connection
Provider" in the STAF User's Guide contains more information about
configuration options for the STAF TCP interface such as CONNECTTIMEOUT.
The TCP connection provider's
ReadWriteTimeout is based on the CONNECTTIMEOUT value.
Each STAF service may have some settings
used to configure the service. These are talked about in section
"8.0 Service reference" in the STAF User's Guide for each individual
service. Each service may have parameters that can be specified when
registering the service (and possibly changed dynamically if the service
provides a SET request to do so) For example, the LOG service has
a MAXRECORDSIZE parameter that can be used to override the default maximum
length of a logged message in a log file.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From:
clayton neal <clayton_n...@yahoo.co.uk>
To:
"staf-users@lists.sourceforge.net"
<staf-users@lists.sourceforge.net>,
Date:
09/24/2011 02:49 AM
Subject:
[staf-users]
STAF Design questions
________________________________
Dear STAF,
I am looking to implement a software testing framework for my company,
and came accross STAF
It may save me some time to implement - and is im a .net person, a chance
to learn some Java
Before I settle on STAF as my wepon of choice in the automation war's,
I'd like to ask a few questions first.
The framework I need to implement has to handle quite large load, so my
questions would be:
1. If I were to write a new STAF service, how are requests to that service
managed?
I guess there are placed on the
handle queue, but does STAF create many threads to handle them?
Is there any control of threading
to handle large number of requests?
2. Whats the difference between a message and a request?
A request will call code in my
service, but a message doesnt? Its just placed on a queue
3. Is there any control of handle queue sizes, request time-outs etc?
I'm coming from a WCF background here, so if your familiar with that, 1
would relate to ConcurrencyMode
Thanks again,
Clayton
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users