aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/06-migrateZusammenFromDox.rb
diff options
context:
space:
mode:
authorYuli Shlosberg <ys9693@att.com>2018-01-25 13:53:36 +0200
committerMichael Lando <ml636r@att.com>2018-02-04 10:39:20 +0000
commit0875ce0faad191c21b32cc9c95ffc20ebd57d586 (patch)
tree28520da212637e0f67697d9ff837e80da6eaa408 /sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/06-migrateZusammenFromDox.rb
parentb676b6dcada5549348003191c09142e92de4d352 (diff)
Cassandra OOM Alignment
Change-Id: If9792919dba17936965b45361888a44a12a76b67 Issue-ID: SDC-911 Signed-off-by: Yuli Shlosberg <ys9693@att.com>
Diffstat (limited to 'sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/06-migrateZusammenFromDox.rb')
-rw-r--r--sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/06-migrateZusammenFromDox.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/06-migrateZusammenFromDox.rb b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/06-migrateZusammenFromDox.rb
deleted file mode 100644
index e1fcf4f556..0000000000
--- a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/06-migrateZusammenFromDox.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-#onboarding_version = "#{node['onboarding'][:version]}"
-#GROUP_ID = "com/att/asdc/onboarding/#{onboarding_version}"
-#NEXUS_IP = "#{node['nexus_ip']}"
-
-bash "Excuting openecomp-zusammen-migration-1707.0.0-SNAPSHOT.jar" do
- code <<-EOH
- [ -d /var/tmp/onboarding/migration ] && rm -rf /var/tmp/onboarding || mkdir -p /var/tmp/onboarding/migration
- cd /var/tmp/onboarding/migration
- /bin/tar -xzf /root/chef-solo/cookbooks/cassandra-actions/files/default/zusammen.tgz -C /var/tmp/onboarding/migration
- cd /var/tmp/onboarding/migration
- java -Dlog.home=/var/tmp/onboarding/migration/logs -Dconfiguration.yaml=/tmp/sdctool/config/configuration.yaml -jar openecomp-zusammen-migration-1707.0.0-SNAPSHOT.jar org.openecomp.core.migration.MigrationMain
- EOH
-end
-
} /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*-
 * ============LICENSE_START=======================================================
 * aai
 * ================================================================================
 * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
 * Modifications Copyright (C) 2019 Nordix Foundation.
 * ================================================================================
 * 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.
 * ============LICENSE_END=========================================================
 */

package org.onap.policy.aai;

import java.io.Serializable;

public class Pnf implements Serializable {
    private static final long serialVersionUID = -3535108358668248501L;

    private String pnfName;
    private PnfType pnfType;

    public Pnf() {

    }

    public Pnf(Pnf pnf) {
        this.pnfName = pnf.pnfName;
        this.pnfType = pnf.pnfType;
    }

    public String getPnfName() {
        return pnfName;
    }

    public void setPnfName(String pnfName) {
        this.pnfName = pnfName;
    }

    public PnfType getPnfType() {
        return pnfType;
    }

    public void setPnfType(PnfType pnfType) {
        this.pnfType = pnfType;
    }

    @Override
    public String toString() {
        return "PNF [PNFName=" + pnfName + ", PNFType=" + pnfType + "]";
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((pnfName == null) ? 0 : pnfName.hashCode());
        result = prime * result + ((pnfType == null) ? 0 : pnfType.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;
        }
        Pnf other = (Pnf) obj;
        if (pnfName == null) {
            if (other.pnfName != null) {
                return false;
            }
        } else if (!pnfName.equals(other.pnfName)) {
            return false;
        }
        return pnfType == other.pnfType;
    }
}