001/*
002 *                    BioJava development code
003 *
004 * This code may be freely distributed and modified under the
005 * terms of the GNU Lesser General Public Licence.  This should
006 * be distributed with the code.  If you do not have a copy,
007 * see:
008 *
009 *      http://www.gnu.org/copyleft/lesser.html
010 *
011 * Copyright for this code is held jointly by the individual
012 * authors.  These should be listed in @author doc comments.
013 *
014 * For more information on the BioJava project and its aims,
015 * or to join the biojava-l mailing list, visit the home page
016 * at:
017 *
018 *      http://www.biojava.org/
019 *
020 * Created on 2011-11-20
021 *
022 */
023
024package org.biojava.nbio.ws.alignment.qblast;
025
026/**
027 * Information about QBlast search job
028 *
029 * @author Gediminas Rimsa
030 */
031public class BlastJob {
032        private String id;
033        private long startTimestamp;
034        private long expectedExecutionTime;
035
036        /**
037         * Request id (RID) as received from QBlast server
038         * @return
039         */
040        public String getId() {
041                return id;
042        }
043
044        public void setId(String id) {
045                this.id = id;
046        }
047
048        public long getStartTimestamp() {
049                return startTimestamp;
050        }
051
052        public void setStartTimestamp(long startTimestamp) {
053                this.startTimestamp = startTimestamp;
054        }
055
056        public long getExpectedExecutionTime() {
057                return expectedExecutionTime;
058        }
059
060        public void setExpectedExecutionTime(long expectedExecutionTime) {
061                this.expectedExecutionTime = expectedExecutionTime;
062        }
063
064        @Override
065        public String toString() {
066                StringBuilder builder = new StringBuilder();
067                builder.append("BlastJob [id=");
068                builder.append(id);
069                builder.append(", startTimestamp=");
070                builder.append(startTimestamp);
071                builder.append(", expectedExecutionTime=");
072                builder.append(expectedExecutionTime);
073                builder.append("]");
074                return builder.toString();
075        }
076
077}