public WorkerStorage(InetSocketAddress masterAddress, String dataFolder,
long memoryCapacityBytes) {
mCommonConf = CommonConf.get();
mMasterAddress = masterAddress;
mMasterClient = new MasterClient(mMasterAddress);
mLocalDataFolder = new File(dataFolder);
mSpaceCounter = new SpaceCounter(memoryCapacityBytes);
mLocalUserFolder = new File(mLocalDataFolder, WorkerConf.USER_TEMP_RELATIVE_FOLDER);
}