org.glite.lb
Class ILFileWriter
java.lang.Object
org.glite.lb.ILFileWriter
public class ILFileWriter
- extends java.lang.Object
This class provides writing messages to some file.
Method Summary |
static java.lang.Long |
write(java.lang.String prefix,
java.lang.String message,
int repeatWriteToFile)
Writes message to a file and returns size of this file before writing the
data |
static java.lang.Long |
write(java.lang.String prefix,
java.lang.String message,
int repeatWriteToFile,
java.lang.String owner,
java.lang.String permissions)
Writes message to a file and returns size of this file before writing the
data |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ILFileWriter
public ILFileWriter()
write
public static java.lang.Long write(java.lang.String prefix,
java.lang.String message,
int repeatWriteToFile,
java.lang.String owner,
java.lang.String permissions)
throws LBException
- Writes message to a file and returns size of this file before writing the
data
- Parameters:
prefix
- file pathmessage
- message which will be writtenrepeatWriteToFile
- count of attempts to write to file in case of failure
- Throws:
LBException
write
public static java.lang.Long write(java.lang.String prefix,
java.lang.String message,
int repeatWriteToFile)
throws LBException
- Writes message to a file and returns size of this file before writing the
data
- Parameters:
prefix
- file pathmessage
- message which will be writtenrepeatWriteToFile
- count of attempts to write to file in case of failure
- Throws:
LBException