awips2/edexOsgi/com.raytheon.uf.common.tafqueue/src/com/raytheon/uf/common/tafqueue/TafQueueRequest.java
Steve Harris 25198a5cd6 Revert "12.6.1-10 baseline"
This reverts commit a2c0893d1a [formerly 5e2f5e9bc2b0559c3101cc0c3af708858e3b95d1].


Former-commit-id: 8cdb21fda317373a0dc95e5048716d0e31412ab4
2012-06-21 08:51:08 -05:00

110 lines
2.8 KiB
Java

/**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
* to non-U.S. persons whether in the United States or abroad requires
* an export license or other authorization.
*
* Contractor Name: Raytheon Company
* Contractor Address: 6825 Pine Street, Suite 340
* Mail Stop B8
* Omaha, NE 68106
* 402.291.0100
*
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
* further licensing information.
**/
package com.raytheon.uf.common.tafqueue;
import java.util.Date;
import java.util.List;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
import com.raytheon.uf.common.serialization.comm.IServerRequest;
/**
* This class is used by CAVE to request updates or obtain information on the
* taf_queue table.
*
* <pre>
*
* SOFTWARE HISTORY
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* May 3, 2012 14715 rferrel Initial creation
*
* </pre>
*
* @author avarani
* @version 1.0
*/
@DynamicSerialize
public class TafQueueRequest implements IServerRequest {
public enum Type {
UNKNOWN, CREATE, GET_LIST, GET_LOG, GET_TAFS, REMOVE_SELECTED, RETRANSMIT
}
@DynamicSerializeElement
private Type type;
@DynamicSerializeElement
private TafQueueRecord.TafQueueState state;
@DynamicSerializeElement
private List<TafQueueRecord> records;
@DynamicSerializeElement
private List<?> argument;
@DynamicSerializeElement
private Date xmitTime;
public TafQueueRequest() {
this.type = Type.UNKNOWN;
}
public List<?> getArgument() {
return argument;
}
public Type getType() {
return type;
}
public Date getXmitTime() {
return xmitTime;
}
public void setArgument(List<?> argument) {
this.argument = argument;
}
public void setType(Type type) {
this.type = type;
}
public TafQueueRecord.TafQueueState getState() {
return state;
}
public void setState(TafQueueRecord.TafQueueState state) {
this.state = state;
}
public List<TafQueueRecord> getRecords() {
return records;
}
public void setRecords(List<TafQueueRecord> records) {
this.records = records;
}
public void setXmitTime(Date xmitTime) {
this.xmitTime = xmitTime;
}
}