org.gcube.application.enm.service.concurrent
Class JobMonitorBlocking

java.lang.Object
  extended by org.gcube.application.enm.service.concurrent.JobMonitorBlocking

Deprecated. As release 1.0, replaced by JobMonitor.

@Deprecated
public class JobMonitorBlocking
extends Object

Author:
Erik Torres

Constructor Summary
JobMonitorBlocking()
          Deprecated.  
 
Method Summary
 void cancelJob(UUID uuid)
          Deprecated.  
static JobMonitorBlocking get()
          Deprecated. Get the singleton instance of the monitor.
 GenericJob getJob(UUID uuid)
          Deprecated. Returns the job to which the specified uuid is mapped, or null if this map contains no mapping for the uuid.
 void init(ConcurrentMap<UUID,GenericJob> jobsMap)
          Deprecated.  
 GenericJob nextPendingJob()
          Deprecated. Retrieves the next job from the queue, waiting if necessary until a job becomes available.
 void registerNewJob(GenericJob job)
          Deprecated. Register a new job.
 void schedulePendingJob(GenericJob job)
          Deprecated. Inserts the specified job into the priority queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobMonitorBlocking

public JobMonitorBlocking()
Deprecated. 
Method Detail

get

public static JobMonitorBlocking get()
Deprecated. 
Get the singleton instance of the monitor.

Returns:
The singleton instance.

init

public void init(ConcurrentMap<UUID,GenericJob> jobsMap)
          throws IllegalArgumentException
Deprecated. 
Throws:
IllegalArgumentException

nextPendingJob

public GenericJob nextPendingJob()
Deprecated. 
Retrieves the next job from the queue, waiting if necessary until a job becomes available.

Returns:
The next job of the queue.

schedulePendingJob

public void schedulePendingJob(GenericJob job)
Deprecated. 
Inserts the specified job into the priority queue.

Parameters:
job - The job to add.

registerNewJob

public void registerNewJob(GenericJob job)
Deprecated. 
Register a new job.

Parameters:
uuid - Unequally identifies the job.
job - The job to add.

getJob

public GenericJob getJob(UUID uuid)
Deprecated. 
Returns the job to which the specified uuid is mapped, or null if this map contains no mapping for the uuid.

Parameters:
uuid - Unequally identifies the job.
Returns:
The job to which the specified uuid is mapped, or null if this map contains no mapping for the uuid.

cancelJob

public void cancelJob(UUID uuid)
Deprecated. 


Copyright © 2012. All Rights Reserved.