public class MaxRecController extends java.lang.Object implements InputParamController
Let controlling the maximum number of rows that can be output by a TAP service. The maximum and default values are provided by the service connection.
Note:
By default, this parameter can be modified by anyone without any limitation.
The default and maximum value is set by default to TAPJob.UNLIMITED_MAX_REC.
Note:
The special value 0 means that just the metadata of the result must be returned.
Considering the meaning of this value, it will not be considered as an TAPJob.UNLIMITED_MAX_REC,
but like a valid value. The maximum value can then be also 0.
The logic of the output limit is set in this class. Here it is:
TAPJob.UNLIMITED_MAX_REC).| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowModification
Indicates whether the output limit of jobs can be modified.
|
protected ServiceConnection |
service
Connection to the service which knows the maximum and default value of this parameter.
|
| Constructor and Description |
|---|
MaxRecController(ServiceConnection service)
Build a controller for the MaxRec parameter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowModification()
Tells whether the output limit of any managed job can be modified.
|
void |
allowModification(boolean allowModification)
Lets indicating whether the output limit of any managed job can be modified.
|
java.lang.Object |
check(java.lang.Object value)
Checks the value of the controlled parameter and builds a new object from this value.
|
java.lang.Object |
getDefault()
Returns the default value of the controlled parameter.
|
int |
getMaxOutputLimit()
Get the maximum number of rows that can be output.
|
protected final ServiceConnection service
protected boolean allowModification
public MaxRecController(ServiceConnection service)
service - Connection to the TAP service.public final java.lang.Object getDefault()
InputParamControllergetDefault in interface InputParamControllerpublic final int getMaxOutputLimit()
public java.lang.Object check(java.lang.Object value)
throws UWSException
InputParamControllerChecks the value of the controlled parameter and builds a new object from this value.
check in interface InputParamControllervalue - Parameter value to check.UWSException - If the given value is strongly incorrect.public final boolean allowModification()
allowModification in interface InputParamControllerpublic final void allowModification(boolean allowModification)
allowModification - true if the output limit can be modified, false otherwise.