|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface describes configuration of an instance of service.
| Field Summary | |
static int |
INSTANTIATION_PER_CLIENT
One instance per client (i.e. |
static int |
INSTANTIATION_SHARED
One shared instance for all calls. |
| Method Summary | |
int |
getInstantiationMethod()
Gets the instantiation method used (see INSTANTIATION_XXX constants). |
java.lang.Integer |
getMaxInstances()
Returns the maximum number of allocated instances of the service. |
java.lang.Integer |
getTTL()
Returns time-to-live of an instance in seconds. |
boolean |
isPreload()
Checks if the instance is instantiated during server startup. |
void |
setInstantiationMethod(int method)
Sets up the instantiation method used. |
void |
setMaxInstances(java.lang.Integer maxInstances)
Sets the maximum number of allocated instances of the service. |
void |
setPreload(boolean preload)
Sets if the instance is instantiated during server startup. |
void |
setTTL(java.lang.Integer ttl)
Sets time-to-live of an instance in second. |
| Methods inherited from interface org.systinet.wasp.dd.NamedPart |
getName, setName |
| Methods inherited from interface org.systinet.wasp.dd.DeploymentPart |
getDeploymentDescriptor |
| Methods inherited from interface org.systinet.wasp.dd.ImplementablePart |
getImplementationClass, setImplementationClass |
| Methods inherited from interface org.systinet.wasp.dd.ConfigurablePart |
getConfiguration |
| Methods inherited from interface org.systinet.wasp.dd.ExtensiblePart |
addElement, getElements |
| Methods inherited from interface org.systinet.wasp.dd.DocumentablePart |
getDocumentation, setDocumentation |
| Methods inherited from interface org.systinet.wasp.dd.AttributablePart |
getAttributes, newAttributes, setAttributes |
| Field Detail |
public static final int INSTANTIATION_SHARED
getInstantiationMethod(),
setInstantiationMethod(int),
Constant Field Valuespublic static final int INSTANTIATION_PER_CLIENT
getInstantiationMethod(),
setInstantiationMethod(int),
Constant Field Values| Method Detail |
public java.lang.Integer getMaxInstances()
null when not specifiedpublic void setMaxInstances(java.lang.Integer maxInstances)
maxInstances - maximum number of allocated instances of the service
or null when not specifiedpublic boolean isPreload()
true if the instance is instantiated
during server startuppublic void setPreload(boolean preload)
preload - true if instance is instantiated
during server startuppublic java.lang.Integer getTTL()
null when not specifiedpublic void setTTL(java.lang.Integer ttl)
ttl - TTL or null when not specifiedpublic int getInstantiationMethod()
INSTANTIATION_SHARED,
INSTANTIATION_PER_CLIENTpublic void setInstantiationMethod(int method)
method - one of INSTANTIATION_XXX constants.INSTANTIATION_SHARED,
INSTANTIATION_PER_CLIENT
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||