/*************************************************************************** * Copyright (c) 2012-2015 VMware, Inc. All Rights Reserved. * 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.vmware.bdd.apitypes; /** * Node Group Intance Type */ public enum InstanceType { EXTRA_LARGE, LARGE, MEDIUM, SMALL; public int getCpuNum() { switch (this) { case EXTRA_LARGE: return 8; case LARGE: return 4; case MEDIUM: return 2; case SMALL: return 1; default: return 0; } } public int getMemoryMB() { switch (this) { case EXTRA_LARGE: return 30000; case LARGE: return 15000; case MEDIUM: return 7500; case SMALL: return 3748; default: return 0; } } }