com.redhat.red.build.koji.model.xmlrpc.KojiTaskInfo Maven / Gradle / Ivy
/**
* Copyright (C) 2015 Red Hat, Inc. ([email protected])
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.redhat.red.build.koji.model.xmlrpc;
import com.redhat.red.build.koji.model.converter.TimestampConverter;
import com.redhat.red.build.koji.model.util.ExternalizableUtils;
import org.commonjava.rwx.anno.Converter;
import org.commonjava.rwx.anno.DataKey;
import org.commonjava.rwx.anno.StructPart;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.Date;
import java.util.List;
/**
* Created by jdcasey on 8/8/16.
*/
@StructPart
public class KojiTaskInfo
implements Externalizable
{
private static final long serialVersionUID = -4033517639092179002L;
private static final int VERSION = 1;
@DataKey( "id" )
private int taskId;
@DataKey( "weight" )
private double weight;
@DataKey( "parent" )
private int parentTaskId;
@DataKey( "channel_id" )
private int channelId;
@DataKey( "start_time" )
@Converter( TimestampConverter.class )
private Date startTime;
@DataKey( "label" )
private String label;
@DataKey( "priority" )
private int priority;
@DataKey( "completion_time" )
@Converter( TimestampConverter.class )
private Date completionTime;
@DataKey( "state" )
private int state;
@DataKey( "create_time" )
@Converter( TimestampConverter.class )
private Date createTime;
@DataKey( "owner_id" )
private int ownerId;
@DataKey( "host_id" )
private int hostId;
@DataKey( "method" )
private String method;
@DataKey( "arch" )
private String arch;
@DataKey( "request" )
private List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy