org.glite.lb
Class ILFileWriter

java.lang.Object
  extended by org.glite.lb.ILFileWriter

public class ILFileWriter
extends java.lang.Object

This class provides writing messages to some file.


Constructor Summary
ILFileWriter()
           
 
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
 

Constructor Detail

ILFileWriter

public ILFileWriter()
Method Detail

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 path
message - message which will be written
repeatWriteToFile - 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 path
message - message which will be written
repeatWriteToFile - count of attempts to write to file in case of failure
Throws:
LBException