All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.webank.wedatasphere.dss.common.entity.node.DSSNodeDefault Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2019 WeBank
 * 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.webank.wedatasphere.dss.common.entity.node;

import com.webank.wedatasphere.dss.common.entity.Resource;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

public class DSSNodeDefault implements DSSNode {
    private Layout layout;
    private String id;
    private String key;
    private String jobType;
    private String lastUpdateTime;
    private Map params;
    private List resources;
    private String title;
    private String desc;
    private String createTime;
    private String userProxy;
    private String modifyUser;
    private Long modifyTime;
    /**
     * dependencys 是该Node的依赖节点
     */
    private List dependencys = new ArrayList();
    /**
     * jobContent 是node的内容
     */
    private Map jobContent;


    @Override
    public Layout getLayout() {
        return layout;
    }


    @Override
    public void setLayout(Layout layout) {
        this.layout = layout;
    }

    @Override
    public Map getParams() {
        return params;
    }

    @Override
    public void setParams(Map params) {
        this.params = params;
    }

    @Override
    public List getResources() {
        return resources;
    }

    @Override
    public void setResources(List resources) {
        this.resources = resources;
    }

    @Override
    public Map getJobContent() {
        return jobContent;
    }

    @Override
    public void setJobContent(Map jobContent) {
        this.jobContent = jobContent;
    }

    @Override
    public String getUserProxy() {
        return userProxy;
    }

    @Override
    public void setUserProxy(String userProxy) {
        this.userProxy = userProxy;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String getNodeType() {
        return jobType;
    }

    @Override
    public void setNodeType(String nodeType) {
        this.jobType = nodeType;
    }

    @Override
    public String getName() {
        return title;
    }

    @Override
    public void setName(String name) {
        this.title = name;
    }

    @Override
    public void addDependency(String nodeName) {
        dependencys.add(nodeName);
    }

    @Override
    public void setDependency(List dependency) {
        this.dependencys = dependency;
    }

    @Override
    public void removeDependency(String nodeName) {
        dependencys.remove(nodeName);
    }

    @Override
    public List getDependencys() {
        return dependencys;
    }

    @Override
    public String getModifyUser() {
        return modifyUser;
    }

    @Override
    public Long getModifyTime() {
        return modifyTime;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    @Override
    public String toString() {
        return "dwsNode{" +
                "layout=" + layout +
                ", id='" + id + '\'' +
                ", jobType='" + jobType + '\'' +
                ", lastUpdateTime=" + lastUpdateTime +
                ", params=" + params +
                ", resources=" + resources +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy