Code example for LinkedList

Methods: indexOf

0
	 * @see eu.planets_project.ifr.core.wee.api.WeeManager#getPositionInQueue(java.util.UUID) 
	 */ 
	public int getPositionInQueue(UUID ticket) throws PlanetsException{
		if(this.mapUUIDtoWF.containsKey(ticket)){
			WorkflowInstance wf = mapUUIDtoWF.get(ticket);
			return this.localJobqueue.indexOf(wf);
		} 
		log.debug("WEEManager: requesting position for unknown ticket #"+ticket);
		throw new PlanetsException("WEEManager: requesting position for unknown ticket #"+ticket);
	} 
 
 
	/* (non-Javadoc) 
	 * @see eu.planets_project.ifr.core.wee.api.WeeManager#getStatus(java.util.UUID) 
	 */ 
	public WorkflowExecutionStatus getStatus(UUID ticket) throws PlanetsException{
		if(isTicketKnown(ticket)){
			return this.mapUUIDtoExecStatus.get(ticket);
		} 
		log.debug("WEEManager: requesting status for unknown ticket #"+ticket);