Top Fields Constructors Methods
jogamp.common.util.locks

public Class SingletonInstanceFileLock

extends SingletonInstance
Class Inheritance
Imports
java.io.File, .IOException, .RandomAccessFile, java.nio.channels.FileLock, com.jogamp.common.util.InterruptSource, com.jogamp.common.util.locks.SingletonInstance

Field Summary

Modifier and TypeField and Description
private final File
private FileLock
private RandomAccessFile
pack-priv static final String
Inherited from com.jogamp.common.util.locks.SingletonInstance:
DEBUG

Constructor Summary

AccessConstructor and Description
public
SingletonInstanceFileLock(final long poll_ms, final String lockFileBasename)

public
SingletonInstanceFileLock(final long poll_ms, final File lockFile)

Method Summary

Modifier and TypeMethod and Description
public static String
public static String
public final String
private void
protected boolean
protected boolean
Inherited from com.jogamp.common.util.locks.SingletonInstance:
createFileLockcreateFileLockcreateServerSocketgetPollPeriodinfoPrefixinfoPrefixisLockedlocktoStringtryLockunlock

Field Detail

fileback to summary
private final File file
fileLockback to summary
private FileLock fileLock
randomAccessFileback to summary
private RandomAccessFile randomAccessFile
temp_file_pathback to summary
pack-priv static final String temp_file_path

Constructor Detail

SingletonInstanceFileLockback to summary
public SingletonInstanceFileLock(final long poll_ms, final String lockFileBasename)
SingletonInstanceFileLockback to summary
public SingletonInstanceFileLock(final long poll_ms, final File lockFile)

Method Detail

getCanonicalTempLockFilePathback to summary
public static String getCanonicalTempLockFilePath(final String basename)
getCanonicalTempPathback to summary
public static String getCanonicalTempPath()
getNameback to summary
public final String getName()

Implements abstract com.jogamp.common.util.locks.SingletonInstance.getName.

Annotations
@Override
setupFileCleanupback to summary
private void setupFileCleanup()
tryLockImplback to summary
protected boolean tryLockImpl()

Implements abstract com.jogamp.common.util.locks.SingletonInstance.tryLockImpl.

Annotations
@Override
unlockImplback to summary
protected boolean unlockImpl()

Implements abstract com.jogamp.common.util.locks.SingletonInstance.unlockImpl.

Annotations
@Override