public class TpltEvwProvFtry extends eventweb.servutil.EvwSrvcBase implements SrvcProvFtry
This is a template for EventWeb service provider factories.
The service provided sends a series of asynchronous test messages to the
client and keeps a count of the number of times the test has been run.
The test message sequence is maintained in the client context,
and the test run count is maintained in the shared context.
Modifier and Type | Class and Description |
---|---|
class |
TpltEvwProvFtry.TpltProvImp
The template service provider implementation.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
DEP_LIST
Class dependencies
|
static int |
MAX_MSG_SIZE
Maximum expected message size (send or receive)
|
static int |
PREF_ACTIVITY_TMO
Preferred activity timeout
|
static java.util.TreeSet<java.lang.String> |
rsrcList
Supported resource requests
|
static java.util.List<java.lang.Integer> |
SUPPORTED_MEDIA
MIME types supported by the service, in order of preference.
|
static java.util.TreeSet<java.lang.String> |
tagList
Supported request tags
|
static java.lang.String |
VERSION
Class version
|
IF_VERSION
IF_VERSION
Constructor and Description |
---|
TpltEvwProvFtry()
Create a new TpltEvwProvFtry instance
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxMsgSize()
Get the maximum message size expected by the service.
|
java.util.List<java.lang.Integer> |
getSupportedMedia()
Get the MIME types supported by the service.
|
java.util.Set<java.lang.String> |
getSupportedTags()
Get the tags supported by the service.
|
java.util.Set<java.lang.String> |
getSupportedValues(java.lang.String tag)
Get the values that are valid for a tag.
|
void |
init(eventweb.servutil.SrvcRegistry registry,
TvList params)
Initialize the provider
|
TpltEvwProvFtry.TpltProvImp |
newClient()
Get a SrvcProvImp for a new client
|
void |
quiesce()
Stop accepting new requests and release resources
|
int |
suggestActivityTimeout()
Suggest an activity timeout for the service.
|
public static final java.lang.String VERSION
public static final java.lang.String[] DEP_LIST
public static final java.util.TreeSet<java.lang.String> tagList
public static final java.util.TreeSet<java.lang.String> rsrcList
public static final java.util.List<java.lang.Integer> SUPPORTED_MEDIA
public static final int MAX_MSG_SIZE
public static final int PREF_ACTIVITY_TMO
public void init(eventweb.servutil.SrvcRegistry registry, TvList params)
init
in interface eventweb.servutil.RegInit
init
in class eventweb.servutil.EvwSrvcBase
registry
- The service registryparams
- Initialization parameterspublic java.util.Set<java.lang.String> getSupportedTags()
getSupportedTags
in interface eventweb.servutil.SelfDescribing
public java.util.Set<java.lang.String> getSupportedValues(java.lang.String tag)
getSupportedValues
in interface eventweb.servutil.SelfDescribing
tag
- The tag to get values for.public java.util.List<java.lang.Integer> getSupportedMedia()
getSupportedMedia
in interface eventweb.servutil.SelfDescribing
MimeType
public int getMaxMsgSize()
getMaxMsgSize
in interface eventweb.servutil.SelfDescribing
public int suggestActivityTimeout()
suggestActivityTimeout
in interface eventweb.servutil.SelfDescribing
public TpltEvwProvFtry.TpltProvImp newClient()
newClient
in interface SrvcProvFtry