src/main/java/org/edgegallery/appstore/interfaces/system/facade/ProjectService.java
public MepHost judgeHost(String deployMode) {
        String os = "";
        List<MepHost> mepHosts = null;
        if (CONTAINER.equalsIgnoreCase(deployMode)) {
            os = K8S;
        } else {
            os = OPENSTACK;
        }
        mepHosts = hostMapper.getHostsByCondition("", os);
        if (CollectionUtils.isEmpty(mepHosts)) {
            throw new IllegalRequestException("please register host", ResponseConst.HOST_EMPTY_ERROR);
        }
        //in  experience online scenario, the first sandbox of the array is used by default.
        return mepHosts.get(0);
    }
/**
     * judge vm and container host.
     *
     * @param deployMode deployMode.
     */
judge vm and container host.
@param deployMode deployMode.
judge vm and container host . @param deployMode deployMode .
public MepHost judgeHost(String deployMode) {
        String os = "";
        List<MepHost> mepHosts = null;
        if (CONTAINER.equalsIgnoreCase(deployMode)) {
            os = K8S;
        } else {
            os = OPENSTACK;
        }
        mepHosts = hostMapper.getHostsByCondition("", os);
        if (CollectionUtils.isEmpty(mepHosts)) {
            throw new IllegalRequestException("please register host", ResponseConst.HOST_EMPTY_ERROR);
        }
        return mepHosts.get(0);
    }
public MepHost judgeHost ( String deployMode ) { String os = "" ; List < MepHost > mepHosts = null ; if ( CONTAINER . equalsIgnoreCase ( deployMode ) ) { os = K8S ; } else { os = OPENSTACK ; } mepHosts = hostMapper . getHostsByCondition ( "" , os ) ; if ( CollectionUtils . isEmpty ( mepHosts ) ) { throw new IllegalRequestException ( "please register host" , ResponseConst . HOST_EMPTY_ERROR ) ; } return mepHosts . get ( 0 ) ; }
judge vm and container host.
judge vm and container host .
//in  experience online scenario, the first sandbox of the array is used by default.