Index

A B C D E F G H I L M N P Q R S T U W 
All Classes and Interfaces|All Packages|Constant Field Values

A

accept(File) - Method in class ch.cern.dirq.QueueSimple.DotElementFF
 
accept(File) - Method in class ch.cern.dirq.QueueSimple.ElementFF
 
accept(File) - Method in class ch.cern.dirq.QueueSimple.IntermediateDirectoryFF
 
add(byte[]) - Method in interface ch.cern.dirq.Queue
Add byte array data to the queue.
add(byte[]) - Method in class ch.cern.dirq.QueueNull
 
add(byte[]) - Method in class ch.cern.dirq.QueueSimple
 
add(String) - Method in interface ch.cern.dirq.Queue
Add String data to the queue.
add(String) - Method in class ch.cern.dirq.QueueNull
 
add(String) - Method in class ch.cern.dirq.QueueSimple
 
addDataHelper(String, byte[]) - Method in class ch.cern.dirq.QueueSimple
 
addDataHelper(String, String) - Method in class ch.cern.dirq.QueueSimple
 
addPath(String) - Method in interface ch.cern.dirq.Queue
Add the given file (identified by its path) to the queue and return the corresponding element name, the file must be on the same filesystem and will be moved to the queue.
addPath(String) - Method in class ch.cern.dirq.QueueNull
 
addPath(String) - Method in class ch.cern.dirq.QueueSimple
 
addPathHelper(Path, String) - Method in class ch.cern.dirq.QueueSimple
 

B

buildElements() - Method in class ch.cern.dirq.QueueSimple.QueueSimpleIterator
Helper method to build the list of elements to iterate over.

C

ch.cern.dirq - package ch.cern.dirq
Directory based queue.
count() - Method in interface ch.cern.dirq.Queue
Return the number of elements in the queue.
count() - Method in class ch.cern.dirq.QueueNull
 
count() - Method in class ch.cern.dirq.QueueSimple
 
createFile(String) - Method in class ch.cern.dirq.QueueSimple
 

D

DEFAULT_GRANULARITY - Static variable in class ch.cern.dirq.QueueSimple
 
DEFAULT_MAXLOCK - Static variable in class ch.cern.dirq.QueueSimple
 
DEFAULT_MAXTEMP - Static variable in class ch.cern.dirq.QueueSimple
 
Description - Search tag in class ch.cern.dirq.QueueSimple
Section
Description - Search tag in interface ch.cern.dirq.Queue
Section
DIRECTORY_REGEXP - Static variable in class ch.cern.dirq.QueueSimple
 
directoryName() - Method in class ch.cern.dirq.QueueSimple
 
directoryPermissions - Variable in class ch.cern.dirq.QueueSimple
 
directoryPerms(int) - Static method in class ch.cern.dirq.QueueSimple
 
Directory Structure - Search tag in class ch.cern.dirq.QueueSimple
Section
DOT_ELEMENT_FF - Static variable in class ch.cern.dirq.QueueSimple
 
DotElementFF() - Constructor for class ch.cern.dirq.QueueSimple.DotElementFF
 

E

ELEMENT_FF - Static variable in class ch.cern.dirq.QueueSimple
 
ELEMENT_REGEXP - Static variable in class ch.cern.dirq.QueueSimple
 
ElementFF() - Constructor for class ch.cern.dirq.QueueSimple.ElementFF
 
elementName(int) - Static method in class ch.cern.dirq.QueueSimple
 
ensureDirectory(Path) - Method in class ch.cern.dirq.QueueSimple
 

F

fileAttributesFromInteger(int) - Static method in class ch.cern.dirq.FileUtils
Create NIO file attributes from numerical POSIX permissions.
fileKey(File) - Static method in class ch.cern.dirq.FileUtils
Return a unique string identifying the given file object.
fileKey(String) - Static method in class ch.cern.dirq.FileUtils
Return a unique string identifying the given path string.
fileKey(Path) - Static method in class ch.cern.dirq.FileUtils
Return a unique string identifying the given path object.
filePermissions - Variable in class ch.cern.dirq.QueueSimple
 
filePerms(int) - Static method in class ch.cern.dirq.QueueSimple
 
FileUtils - Class in ch.cern.dirq
Convenient file related utilities.
FileUtils() - Constructor for class ch.cern.dirq.FileUtils
 

G

get(String) - Method in interface ch.cern.dirq.Queue
Get the given locked element as String data.
get(String) - Method in class ch.cern.dirq.QueueNull
 
get(String) - Method in class ch.cern.dirq.QueueSimple
 
getAsByteArray(String) - Method in interface ch.cern.dirq.Queue
Get the given locked element as byte array data.
getAsByteArray(String) - Method in class ch.cern.dirq.QueueNull
 
getAsByteArray(String) - Method in class ch.cern.dirq.QueueSimple
 
getGranularity() - Method in class ch.cern.dirq.QueueSimple
Get the granularity.
getId() - Method in interface ch.cern.dirq.Queue
Return a unique identifier for the queue.
getId() - Method in class ch.cern.dirq.QueueNull
 
getId() - Method in class ch.cern.dirq.QueueSimple
 
getMaxLock() - Method in class ch.cern.dirq.QueueSimple
Get the default maxLock for purge().
getMaxTemp() - Method in class ch.cern.dirq.QueueSimple
Get the default maxTemp for purge().
getNewPath(String) - Method in class ch.cern.dirq.QueueSimple
 
getPath(String) - Method in interface ch.cern.dirq.Queue
Get the path of the given locked element.
getPath(String) - Method in class ch.cern.dirq.QueueNull
 
getPath(String) - Method in class ch.cern.dirq.QueueSimple
 
getQueuePath() - Method in interface ch.cern.dirq.Queue
Return the path of the queue.
getQueuePath() - Method in class ch.cern.dirq.QueueNull
 
getQueuePath() - Method in class ch.cern.dirq.QueueSimple
 
getRndHex() - Method in class ch.cern.dirq.QueueSimple
Get the random hexadecimal digit.
getUmask() - Method in class ch.cern.dirq.QueueSimple
Get the umask.
granularity - Variable in class ch.cern.dirq.QueueSimple
 

H

hasNext() - Method in class ch.cern.dirq.QueueNull.QueueNullIterator
Returns true if the iteration has more elements.
hasNext() - Method in class ch.cern.dirq.QueueSimple.QueueSimpleIterator
Returns true if the iteration has more elements.

I

INTERMEDIATE_DIRECTORY_FF - Static variable in class ch.cern.dirq.QueueSimple
 
IntermediateDirectoryFF() - Constructor for class ch.cern.dirq.QueueSimple.IntermediateDirectoryFF
 
isSet(int, int) - Static method in class ch.cern.dirq.FileUtils
 
itDirs - Variable in class ch.cern.dirq.QueueSimple.QueueSimpleIterator
 
itElts - Variable in class ch.cern.dirq.QueueSimple.QueueSimpleIterator
 
iterator() - Method in class ch.cern.dirq.QueueNull
Iterator for the null directory queue.
iterator() - Method in class ch.cern.dirq.QueueSimple
Iterator for the simple directory queue.
itQueue - Variable in class ch.cern.dirq.QueueSimple.QueueSimpleIterator
 

L

lock(String) - Method in interface ch.cern.dirq.Queue
Lock an element in permissive mode.
lock(String) - Method in class ch.cern.dirq.QueueNull
 
lock(String) - Method in class ch.cern.dirq.QueueSimple
 
lock(String, boolean) - Method in interface ch.cern.dirq.Queue
Lock an element.
lock(String, boolean) - Method in class ch.cern.dirq.QueueNull
 
lock(String, boolean) - Method in class ch.cern.dirq.QueueSimple
 
LOCKED_SUFFIX - Static variable in class ch.cern.dirq.QueueSimple
 
Locking - Search tag in interface ch.cern.dirq.Queue
Section
logger - Static variable in class ch.cern.dirq.QueueSimple
 

M

MAX_DIRECTORY_UMASK - Static variable in class ch.cern.dirq.QueueSimple
 
MAX_FILE_UMASK - Static variable in class ch.cern.dirq.QueueSimple
 
MAX_MICRO - Static variable in class ch.cern.dirq.QueueSimple
 
MAX_RNDHEX - Static variable in class ch.cern.dirq.QueueSimple
 
MAX_UMASK - Static variable in class ch.cern.dirq.QueueSimple
 

N

NANO2MICRO - Static variable in class ch.cern.dirq.QueueSimple
 
next() - Method in class ch.cern.dirq.QueueNull.QueueNullIterator
Returns the next element in the iteration.
next() - Method in class ch.cern.dirq.QueueSimple.QueueSimpleIterator
Returns the next element in the iteration.

P

posixPermissionsFromInteger(int) - Static method in class ch.cern.dirq.FileUtils
Create NIO POSIX file permissions from numerical POSIX permissions.
purge() - Method in interface ch.cern.dirq.Queue
Purge the queue by removing unused intermediate directories, removing too old temporary elements and unlocking too old locked elements (aka staled locks); note: this can take a long time on queues with many elements.
purge() - Method in class ch.cern.dirq.QueueNull
 
purge() - Method in class ch.cern.dirq.QueueSimple
 
purge(int) - Method in interface ch.cern.dirq.Queue
Purge the queue by removing unused intermediate directories, removing too old temporary elements and unlocking too old locked elements (aka staled locks); note: this can take a long time on queues with many elements.
purge(int) - Method in class ch.cern.dirq.QueueNull
 
purge(int) - Method in class ch.cern.dirq.QueueSimple
 
purge(int, int) - Method in interface ch.cern.dirq.Queue
Purge the queue by removing unused intermediate directories, removing too old temporary elements and unlocking too old locked elements (aka staled locks); note: this can take a long time on queues with many elements.
purge(int, int) - Method in class ch.cern.dirq.QueueNull
 
purge(int, int) - Method in class ch.cern.dirq.QueueSimple
 

Q

qMaxLock - Variable in class ch.cern.dirq.QueueSimple
 
qMaxTemp - Variable in class ch.cern.dirq.QueueSimple
 
Queue - Interface in ch.cern.dirq
Queue - object oriented interface to a directory based queue.
queueId - Variable in class ch.cern.dirq.QueueSimple
 
QueueNull - Class in ch.cern.dirq
QueueNull - object oriented interface to a null directory based queue.
QueueNull() - Constructor for class ch.cern.dirq.QueueNull
Constructor for the null directory queue.
QueueNull.QueueNullIterator - Class in ch.cern.dirq
Iterator for the null directory queue (private).
QueueNullIterator() - Constructor for class ch.cern.dirq.QueueNull.QueueNullIterator
 
queuePath - Variable in class ch.cern.dirq.QueueSimple
 
QueueSimple - Class in ch.cern.dirq
QueueSimple - object oriented interface to a simple directory based queue.
QueueSimple(String) - Constructor for class ch.cern.dirq.QueueSimple
Constructor creating a simple directory queue from the given path.
QueueSimple(String, int) - Constructor for class ch.cern.dirq.QueueSimple
Constructor creating a simple directory queue from the given path and umask.
QueueSimple.DotElementFF - Class in ch.cern.dirq
FileFilter class to iterate over temporary or locked elements.
QueueSimple.ElementFF - Class in ch.cern.dirq
FileFilter class to iterate over (normal) elements.
QueueSimple.IntermediateDirectoryFF - Class in ch.cern.dirq
FileFilter class to iterate over intermediate directories.
QueueSimple.QueueSimpleIterator - Class in ch.cern.dirq
Iterator for the simple directory queue (private).
QueueSimpleIterator(QueueSimple) - Constructor for class ch.cern.dirq.QueueSimple.QueueSimpleIterator
Constructor for the simple directory queue iterator.

R

rand - Static variable in class ch.cern.dirq.QueueSimple
 
readToByteArray(File) - Static method in class ch.cern.dirq.FileUtils
Read all the bytes from a file object.
readToByteArray(String) - Static method in class ch.cern.dirq.FileUtils
Read all the bytes from a path string.
readToByteArray(Path) - Static method in class ch.cern.dirq.FileUtils
Read all the bytes from a path object.
readToString(File) - Static method in class ch.cern.dirq.FileUtils
Read a UTF-8 string from a file object.
readToString(String) - Static method in class ch.cern.dirq.FileUtils
Read a UTF-8 string from a path string.
readToString(Path) - Static method in class ch.cern.dirq.FileUtils
Read a UTF-8 string from a path object.
recursiveDelete(File) - Static method in class ch.cern.dirq.FileUtils
Recursively delete the given path, stopping on the first error.
remove() - Method in class ch.cern.dirq.QueueNull.QueueNullIterator
Removes from the underlying collection the last element returned by this iterator.
remove() - Method in class ch.cern.dirq.QueueSimple.QueueSimpleIterator
Removes from the underlying collection the last element returned by this iterator.
remove(String) - Method in interface ch.cern.dirq.Queue
Remove a locked element from the queue.
remove(String) - Method in class ch.cern.dirq.QueueNull
 
remove(String) - Method in class ch.cern.dirq.QueueSimple
 
rndHex - Variable in class ch.cern.dirq.QueueSimple
 

S

S_IRGRP - Static variable in class ch.cern.dirq.FileUtils
 
S_IROTH - Static variable in class ch.cern.dirq.FileUtils
 
S_IRUSR - Static variable in class ch.cern.dirq.FileUtils
 
S_IRWXG - Static variable in class ch.cern.dirq.FileUtils
 
S_IRWXO - Static variable in class ch.cern.dirq.FileUtils
 
S_IRWXU - Static variable in class ch.cern.dirq.FileUtils
 
S_IWGRP - Static variable in class ch.cern.dirq.FileUtils
 
S_IWOTH - Static variable in class ch.cern.dirq.FileUtils
 
S_IWUSR - Static variable in class ch.cern.dirq.FileUtils
 
S_IXGRP - Static variable in class ch.cern.dirq.FileUtils
 
S_IXOTH - Static variable in class ch.cern.dirq.FileUtils
 
S_IXUSR - Static variable in class ch.cern.dirq.FileUtils
 
SECOND - Static variable in class ch.cern.dirq.QueueSimple
 
Security - Search tag in interface ch.cern.dirq.Queue
Section
setGranularity(int) - Method in class ch.cern.dirq.QueueSimple
Set the granularity.
setMaxLock(int) - Method in class ch.cern.dirq.QueueSimple
Set the default maxLock for purge().
setMaxTemp(int) - Method in class ch.cern.dirq.QueueSimple
Set the default maxTemp for purge().
setRndHex(int) - Method in class ch.cern.dirq.QueueSimple
Set the random hexadecimal digit.
setUmask(int) - Method in class ch.cern.dirq.QueueSimple
Set the umask.

T

TEMPORARY_SUFFIX - Static variable in class ch.cern.dirq.QueueSimple
 
Terminology - Search tag in interface ch.cern.dirq.Queue
Section
touchFile(File) - Method in class ch.cern.dirq.QueueSimple
 

U

umask - Variable in class ch.cern.dirq.QueueSimple
 
unlock(String) - Method in interface ch.cern.dirq.Queue
Unlock an element in non-permissive mode.
unlock(String) - Method in class ch.cern.dirq.QueueNull
 
unlock(String) - Method in class ch.cern.dirq.QueueSimple
 
unlock(String, boolean) - Method in interface ch.cern.dirq.Queue
Unlock an element.
unlock(String, boolean) - Method in class ch.cern.dirq.QueueNull
 
unlock(String, boolean) - Method in class ch.cern.dirq.QueueSimple
 
Usage - Search tag in class ch.cern.dirq.QueueSimple
Section

W

writeToFile(File, byte[]) - Static method in class ch.cern.dirq.FileUtils
Write bytes to a file object.
writeToFile(File, String) - Static method in class ch.cern.dirq.FileUtils
Write a UTF-8 string to a file object.
writeToFile(String, byte[]) - Static method in class ch.cern.dirq.FileUtils
Write bytes to a path string.
writeToFile(String, String) - Static method in class ch.cern.dirq.FileUtils
Write a UTF-8 string to a path string.
writeToFile(Path, byte[]) - Static method in class ch.cern.dirq.FileUtils
Write bytes to a path object.
writeToFile(Path, String) - Static method in class ch.cern.dirq.FileUtils
Write a UTF-8 string to a path object.
A B C D E F G H I L M N P Q R S T U W 
All Classes and Interfaces|All Packages|Constant Field Values