public class EvwServCtrlProvFtry extends eventweb.servutil.EvwSrvcBase implements SrvcProvFtry
Provides control functions.
| Modifier and Type | Class and Description |
|---|---|
class |
EvwServCtrlProvFtry.CtrlProvImp
The template service provider implementation.
|
protected class |
EvwServCtrlProvFtry.SrvrMonitor |
| Modifier and Type | Field and Description |
|---|---|
static java.util.TreeSet<java.lang.String> |
ctrlList
Supported control requests
|
static java.lang.String[] |
DEP_LIST
Class dependencies
|
static int |
MAX_MSG_SIZE
Maximum expected message size (send or receive)
|
EvwServCtrlProvFtry.SrvrMonitor |
monitor |
static java.lang.String |
PNL |
static int |
PREF_ACTIVITY_TMO
Preferred activity timeout
|
static java.util.TreeSet<java.lang.String> |
stopList
Supported stop 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_VERSIONIF_VERSION| Constructor and Description |
|---|
EvwServCtrlProvFtry()
Create a new EvwServCtrlProvFtry instance
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addAddress(java.lang.String address,
java.util.List<java.net.InetAddress> inetList)
Add a host to to a List of InetAddress
|
static boolean |
addressInList(java.net.InetAddress address,
java.util.List<java.net.InetAddress> inetList)
See if an address is in a list of allowed addresses
|
static java.util.LinkedList<java.net.InetAddress> |
getHostAddresses()
Get all addresses assigned to this host
|
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
|
EvwServCtrlProvFtry.CtrlProvImp |
newClient()
Get a SrvcProvImp for a new client
|
void |
quiesce()
Stop accepting new requests and release resources
|
void |
slowMonitor() |
void |
stopMonitor() |
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.lang.String PNL
public EvwServCtrlProvFtry.SrvrMonitor monitor
public static final java.util.TreeSet<java.lang.String> tagList
public static final java.util.TreeSet<java.lang.String> ctrlList
public static final java.util.TreeSet<java.lang.String> stopList
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 EvwServCtrlProvFtry()
public static java.util.LinkedList<java.net.InetAddress> getHostAddresses()
public static boolean addAddress(java.lang.String address,
java.util.List<java.net.InetAddress> inetList)
public static boolean addressInList(java.net.InetAddress address,
java.util.List<java.net.InetAddress> inetList)
address - The address to checkinetList - The list of allowed addressespublic void init(eventweb.servutil.SrvcRegistry registry,
TvList params)
init in interface eventweb.servutil.RegInitinit in class eventweb.servutil.EvwSrvcBaseregistry - The service registryparams - Initialization parameterspublic java.util.Set<java.lang.String> getSupportedTags()
getSupportedTags in interface eventweb.servutil.SelfDescribingpublic java.util.Set<java.lang.String> getSupportedValues(java.lang.String tag)
getSupportedValues in interface eventweb.servutil.SelfDescribingtag - The tag to get values for.public java.util.List<java.lang.Integer> getSupportedMedia()
getSupportedMedia in interface eventweb.servutil.SelfDescribingMimeTypepublic int getMaxMsgSize()
getMaxMsgSize in interface eventweb.servutil.SelfDescribingpublic int suggestActivityTimeout()
suggestActivityTimeout in interface eventweb.servutil.SelfDescribingpublic EvwServCtrlProvFtry.CtrlProvImp newClient()
newClient in interface SrvcProvFtrypublic void slowMonitor()
public void stopMonitor()