Some refactoring on code.

1. Make all the processors as member variables instead of local variable.
2. Make clusterConfig as member variable instead of local variable.

Now the code looks more short since we don't need to pass processors
around.