Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-01


oracle.stellent.wcm.common.utils
Class LockDir

java.lang.Object
  extended by oracle.stellent.wcm.common.utils.LockDir


public class LockDir
extends java.lang.Object

Field Summary
protected  java.lang.String m_illegalCreate
           
protected  java.lang.String m_illegalLock
           
protected  java.lang.String m_IOErrorRead
           
protected  java.lang.String m_IOErrorWrite
           
protected  ILog m_log
           
protected  java.lang.String m_MissingLock
           

 

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

 

Field Detail

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

Constructor Detail

LockDir

public LockDir(java.lang.String directory,
               java.lang.String key)
Create a lock object for a directory
Parameters:
directory -

Method Detail

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

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-01


Copyright © 2010, Oracle and/or its affiliates. All rights reserved.