Change FTMODE to FTMode
Change profiling mode to a set.
Make it not null to simplify null checking.
Also removed the unnecessary parameter profilingMode in QueryManager.submitQuery() since all the callers are passing null.