Skip navigation links
oracle.stellent.wcm.common.utils
Class LockDir
java.lang.Object
oracle.stellent.wcm.common.utils.LockDir
-
public class LockDir
- extends java.lang.Object
Constructor Summary |
LockDir(java.lang.String directory, java.lang.String key)
Create a lock object for a directory |
Method Summary |
boolean |
createLockFile()
create a lock file suitable for use by Deployment Server in the named directory |
boolean |
removeLockFile()
remove lock file if it is ours |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_log
protected ILog m_log
m_illegalLock
protected java.lang.String m_illegalLock
m_illegalCreate
protected java.lang.String m_illegalCreate
m_MissingLock
protected java.lang.String m_MissingLock
m_IOErrorRead
protected java.lang.String m_IOErrorRead
m_IOErrorWrite
protected java.lang.String m_IOErrorWrite
LockDir
public LockDir(java.lang.String directory,
java.lang.String key)
- Create a lock object for a directory
- Parameters:
directory
-
createLockFile
public boolean createLockFile()
- create a lock file suitable for use by Deployment Server in the named directory
-
- Returns:
- true if the lock was created by us, false if m_lock already exists (and is not ours) or cannot create m_lock file
removeLockFile
public boolean removeLockFile()
- remove lock file if it is ours
-
- Returns:
- true if lock file is removed
Skip navigation links
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.