public final int ordinal() {
      return ordinal;
    }
Get the ordinal number for this type.

@return the ordinal number
ambari-server/src/main/java/org/apache/ambari/server/controller/spi/Resource.java