99100101102103104105106107108109
final String testPath = "testlock"; rand_ = new Random(); LockFileManager lockM = new LockFileManagerN(lockPath); if (args.length == 0) { try { writeIntToFile(testPath, 0); } catch (Exception e) {}
186187188189190191192193194195
if (configFilePath_ == null) { throw new Exception("configFilePath_ is null."); } if (lockM_ == null) { lockM_ = new LockFileManagerN(configFilePath_ + ".lock"); } lockM_.lock(timeoutSec); }