/**
 * Copyright 2014 Cisco Systems, Inc.
 *
 * 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.cisco.oss.foundation.directory.entity;

/**
 * OperationalStatus of the ServiceInstance.
 *
 * @author zuxiang
 *
 */
public enum OperationalStatus {

    /**
     * UP will be consumed in Service Consumer.
     */
    UP("UP", 1),

    /**
     * The dead ServiceInstance, will be deleted automatically after a while.
     */
    DOWN("DOWN", 2);

    /**
     * the status name.
     */
    private String name;

    /**
     * the index.
     */
    private int index;

    /**
     * Constructor.
     *
     * @param name
     *            the Status name.
     * @param index
     *            the Status index.
     */
    private OperationalStatus(String name, int index) {
        this.name = name;
        this.index = index;
    }

    /**
     * Get the OperationalStatus name.
     *
     * @return the name.
     */
    public String getName() {
        return this.name;
    }

    /**
     * Get the OperatinalStatus index.
     *
     * @return the index.
     */
    public int getIndex() {
        return this.index;
    }
}

@@ -835,11 +835,8 @@
 %22UP%22
-, 1
 ),%0A%0A
@@ -948,11 +948,8 @@
 OWN%22
-, 2
 );%0A%0A
@@ -1018,66 +1018,8 @@
 e;%0A%0A
-    /**%0A     * the index.%0A     */%0A    private int index;%0A%0A
     
@@ -1107,64 +1107,8 @@
 me.%0A
-     * @param index%0A     *            the Status index.%0A
     
@@ -1156,19 +1156,8 @@
 name
-, int index
 ) %7B%0A
@@ -1186,36 +1186,8 @@
 me;%0A
-        this.index = index;%0A
     
@@ -1341,157 +1341,7 @@
    %7D
-%0A%0A    /**%0A     * Get the OperatinalStatus index.%0A     *%0A     * @return the index.%0A     */%0A    public int getIndex() %7B%0A        return this.index;%0A    %7D
 %0A%7D%0A

remove unnessary index field in OperationalStatus