Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vollt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sonia Zorba
vollt
Commits
7cf50cbe
Commit
7cf50cbe
authored
10 years ago
by
gmantele
Browse files
Options
Downloads
Patches
Plain Diff
[TAP] Add missing javadoc (for the function ServiceConnection.getNbMaxAsyncJob).
parent
d2cf3702
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/tap/ServiceConnection.java
+17
-1
17 additions, 1 deletion
src/tap/ServiceConnection.java
src/tap/TAPFactory.java
+2
-2
2 additions, 2 deletions
src/tap/TAPFactory.java
with
19 additions
and
3 deletions
src/tap/ServiceConnection.java
+
17
−
1
View file @
7cf50cbe
...
...
@@ -16,7 +16,8 @@ package tap;
* You should have received a copy of the GNU Lesser General Public License
* along with TAPLibrary. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2012 - UDS/Centre de Données astronomiques de Strasbourg (CDS)
* Copyright 2012,2014 - UDS/Centre de Données astronomiques de Strasbourg (CDS),
* Astronomisches Rechen Institut (ARI)
*/
import
java.util.Collection
;
...
...
@@ -28,6 +29,12 @@ import tap.log.TAPLog;
import
tap.metadata.TAPMetadata
;
import
uws.service.UserIdentifier
;
/**
* TODO JAVADOC OF THE WHOLE CLASS!
*
* @author Grégory Mantelet (CDS;ARI)
* @version 2.0 (09/2014)
*/
public
interface
ServiceConnection
{
public
static
enum
LimitUnit
{
...
...
@@ -64,6 +71,15 @@ public interface ServiceConnection {
public
Collection
<
String
>
getCoordinateSystems
();
/**
* <p>Get the maximum number of asynchronous jobs that can run in the same time.</p>
*
* <p>A null or negative value means <b>no limit</b> on the number of running asynchronous jobs.</p>
*
* @return Maximum number of running jobs (≤0 => no limit).
*
* @since 2.0
*/
public
int
getNbMaxAsyncJobs
();
public
TAPLog
getLogger
();
...
...
This diff is collapsed.
Click to expand it.
src/tap/TAPFactory.java
+
2
−
2
View file @
7cf50cbe
...
...
@@ -137,8 +137,8 @@ public abstract class TAPFactory extends AbstractUWSFactory {
* <p>This function is called particularly by the queue manager in order to determine whether a job can start.
* It won't start if no connection is available.</p>
*
* <p><i>
Note:
* If the implementation of this factory creates connections on the fly, the value
1
(or bigger) must always be returned.
* <p><i>
<b>Important note:</b>
* If the implementation of this factory creates connections on the fly, the value
2
(or bigger) must always be returned.
* However, if the connections are managed by a connection pool, the count value must be asked to it.
* </i></p>
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment