// Path: server/core/src/main/java/org/kercoin/magrit/core/Pair.java
// public class Pair<T, U> {
// 	private T t;
// 	private U u;
// 
// 	public Pair(T t, U u) {
// 		super();
// 		this.t = t;
// 		this.u = u;
// 	}
// 	
// 	public T getT() {
// 		return t;
// 	}
// 
// 	public U getU() {
// 		return u;
// 	}
// 
// 	@Override
// 	public int hashCode() {
// 		final int prime = 31;
// 		int result = 1;
// 		result = prime * result + ((t == null) ? 0 : t.hashCode());
// 		result = prime * result + ((u == null) ? 0 : u.hashCode());
// 		return result;
// 	}
// 
// 	@Override
// 	public boolean equals(Object obj) {
// 		if (this == obj)
// 			return true;
// 		if (obj == null)
// 			return false;
// 		if (getClass() != obj.getClass())
// 			return false;
// 		@SuppressWarnings("unchecked")
// 		Pair<T, U> other = (Pair<T, U>) obj;
// 		if (t == null) {
// 			if (other.t != null)
// 				return false;
// 		} else if (!t.equals(other.t))
// 			return false;
// 		if (u == null) {
// 			if (other.u != null)
// 				return false;
// 		} else if (!u.equals(other.u))
// 			return false;
// 		return true;
// 	}
// 
// }
// 
// Path: server/core/src/main/java/org/kercoin/magrit/core/user/UserIdentity.java
// public class UserIdentity {
// 	private final String email;
// 	private final String name;
// 	private final String toString;
// 
// 	public UserIdentity(String email, String name) {
// 		super();
// 		this.email = email;
// 		this.name = name;
// 		this.toString = String.format("\"%s\" <%s>", name, email);
// 	}
// 	
// 	public String getEmail() {
// 		return email;
// 	}
// 	
// 	public String getName() {
// 		return name;
// 	}
// 	
// 	@Override
// 	public String toString() {
// 		return toString;
// 	}
// 
// 	@Override
// 	public int hashCode() {
// 		final int prime = 31;
// 		int result = 1;
// 		result = prime * result
// 				+ ((toString == null) ? 0 : toString.hashCode());
// 		return result;
// 	}
// 
// 	@Override
// 	public boolean equals(Object obj) {
// 		if (this == obj)
// 			return true;
// 		if (obj == null)
// 			return false;
// 		if (getClass() != obj.getClass())
// 			return false;
// 		UserIdentity other = (UserIdentity) obj;
// 		if (toString == null) {
// 			if (other.toString != null)
// 				return false;
// 		} else if (!toString.equals(other.toString))
// 			return false;
// 		return true;
// 	}
// 	
// 	
// }


import java.util.Collection;
import java.util.concurrent.Future;
import org.eclipse.jgit.lib.Repository;
import org.kercoin.magrit.core.Pair;
import org.kercoin.magrit.core.user.UserIdentity;
import com.google.inject.ImplementedBy;
/*
Copyright 2011-2012 Frederic Menou and others referred in AUTHORS file.

This file is part of Magrit.

Magrit is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.

Magrit is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public
License along with Magrit.
If not, see <http://www.gnu.org/licenses/>.
*/
package org.kercoin.magrit.core.build;




@ImplementedBy(QueueServiceImpl.class)
public interface QueueService {
// Path: server/core/src/main/java/org/kercoin/magrit/core/Pair.java
// public class Pair<T, U> {
// 	private T t;
// 	private U u;
// 
// 	public Pair(T t, U u) {
// 		super();
// 		this.t = t;
// 		this.u = u;
// 	}
// 	
// 	public T getT() {
// 		return t;
// 	}
// 
// 	public U getU() {
// 		return u;
// 	}
// 
// 	@Override
// 	public int hashCode() {
// 		final int prime = 31;
// 		int result = 1;
// 		result = prime * result + ((t == null) ? 0 : t.hashCode());
// 		result = prime * result + ((u == null) ? 0 : u.hashCode());
// 		return result;
// 	}
// 
// 	@Override
// 	public boolean equals(Object obj) {
// 		if (this == obj)
// 			return true;
// 		if (obj == null)
// 			return false;
// 		if (getClass() != obj.getClass())
// 			return false;
// 		@SuppressWarnings("unchecked")
// 		Pair<T, U> other = (Pair<T, U>) obj;
// 		if (t == null) {
// 			if (other.t != null)
// 				return false;
// 		} else if (!t.equals(other.t))
// 			return false;
// 		if (u == null) {
// 			if (other.u != null)
// 				return false;
// 		} else if (!u.equals(other.u))
// 			return false;
// 		return true;
// 	}
// 
// }
// 
// Path: server/core/src/main/java/org/kercoin/magrit/core/user/UserIdentity.java
// public class UserIdentity {
// 	private final String email;
// 	private final String name;
// 	private final String toString;
// 
// 	public UserIdentity(String email, String name) {
// 		super();
// 		this.email = email;
// 		this.name = name;
// 		this.toString = String.format("\"%s\" <%s>", name, email);
// 	}
// 	
// 	public String getEmail() {
// 		return email;
// 	}
// 	
// 	public String getName() {
// 		return name;
// 	}
// 	
// 	@Override
// 	public String toString() {
// 		return toString;
// 	}
// 
// 	@Override
// 	public int hashCode() {
// 		final int prime = 31;
// 		int result = 1;
// 		result = prime * result
// 				+ ((toString == null) ? 0 : toString.hashCode());
// 		return result;
// 	}
// 
// 	@Override
// 	public boolean equals(Object obj) {
// 		if (this == obj)
// 			return true;
// 		if (obj == null)
// 			return false;
// 		if (getClass() != obj.getClass())
// 			return false;
// 		UserIdentity other = (UserIdentity) obj;
// 		if (toString == null) {
// 			if (other.toString != null)
// 				return false;
// 		} else if (!toString.equals(other.toString))
// 			return false;
// 		return true;
// 	}
// 	
// 	
// }


// Path: server/core/src/main/java/org/kercoin/magrit/core/build/QueueService.java
import java.util.Collection;
import java.util.concurrent.Future;
import org.eclipse.jgit.lib.Repository;
import org.kercoin.magrit.core.Pair;
import org.kercoin.magrit.core.user.UserIdentity;
import com.google.inject.ImplementedBy;

/*
Copyright 2011-2012 Frederic Menou and others referred in AUTHORS file.

This file is part of Magrit.

Magrit is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.

Magrit is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public
License along with Magrit.
If not, see <http://www.gnu.org/licenses/>.
*/
package org.kercoin.magrit.core.build;




@ImplementedBy(QueueServiceImpl.class)
public interface QueueService {
	Future<BuildResult> enqueueBuild(UserIdentity committer, Repository repository,