private String getPathByEngineType()

in src/main/java/com/epam/grid/engine/cmd/GridEngineCommandCompilerImpl.java [81:98]


    private String getPathByEngineType(final CommandType commandType) {
        final String path;
        switch (commandType) {
            case SGE:
                path = "sge";
                break;
            case SLURM:
                path = "slurm";
                break;
            case COMMON:
                path = "common";
                break;
            default:
                throw new GridEngineException(HttpStatus.NO_CONTENT,
                        String.format("Command type %s is not supported", commandType));
        }
        return path;
    }