org.glite.lb
Class ContextIL

java.lang.Object
  extended by org.glite.lb.Context
      extended by org.glite.lb.ContextIL

public class ContextIL
extends Context

Class which is used to send messages to inter-logger using unix socket.


Constructor Summary
ContextIL()
          Creates new instance of ContextIL.
ContextIL(java.lang.String prefix)
           
ContextIL(java.lang.String prefix, java.lang.String socket, java.lang.String lib)
           
 
Method Summary
 int getConnAttempts()
          Gets count of connection attempts which is used while sending the message via unix socket.
 java.lang.String getOwner()
           
 java.lang.String getPermissions()
           
 java.lang.String getPrefix()
           
 int getRepeatWriteToFile()
          Gets count of repeated write to file if some exception is thrown.
 int getTimeout()
          Gets timeout which is used while sending the message via unix socket.
 void log(Event event)
          Writes event message to the file and socket.
 void setConnAttempts(int connAttempts)
          Sets count of connection attempts while sending the message via unix socket.
 void setOwner(java.lang.String owner)
           
 void setPermissions(java.lang.String permissions)
           
 void setRepeatWriteToFile(int repeatWriteToFile)
          Sets count of repeated write to file if some exception is thrown.
 void setTimeout(int timeout)
          Sets timeout which is used while sending the message via unix socket.
 
Methods inherited from class org.glite.lb.Context
createMessage, getFlag, getHost, getJobid, getProg, getSeqCode, getSource, getSrcInstance, getUser, setFlag, setHost, setJobid, setProg, setSeqCode, setSource, setSrcInstance, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextIL

public ContextIL()
Creates new instance of ContextIL.


ContextIL

public ContextIL(java.lang.String prefix)

ContextIL

public ContextIL(java.lang.String prefix,
                 java.lang.String socket,
                 java.lang.String lib)
Method Detail

log

public void log(Event event)
         throws LBException
Writes event message to the file and socket.

Specified by:
log in class Context
Parameters:
event - event
Throws:
java.lang.IllegalArgumentException - if event, prefix or path
LBException

getPrefix

public java.lang.String getPrefix()

getRepeatWriteToFile

public int getRepeatWriteToFile()
Gets count of repeated write to file if some exception is thrown.

Returns:
count of repeated write to file

setRepeatWriteToFile

public void setRepeatWriteToFile(int repeatWriteToFile)
Sets count of repeated write to file if some exception is thrown.

Parameters:
repeatWriteToFile - count of repeated write to file

getConnAttempts

public int getConnAttempts()
Gets count of connection attempts which is used while sending the message via unix socket.

Returns:
count of connection attempts

setConnAttempts

public void setConnAttempts(int connAttempts)
Sets count of connection attempts while sending the message via unix socket.

Parameters:
connAttempts - count of connection attempts

getTimeout

public int getTimeout()
Gets timeout which is used while sending the message via unix socket.

Returns:
timeout

setTimeout

public void setTimeout(int timeout)
Sets timeout which is used while sending the message via unix socket.

Parameters:
timeout - timeout

getPermissions

public java.lang.String getPermissions()

setPermissions

public void setPermissions(java.lang.String permissions)

getOwner

public java.lang.String getOwner()

setOwner

public void setOwner(java.lang.String owner)