org.glite.lb

Class 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(String prefix)
ContextIL(String prefix, String socket, String lib)
Method Summary
intgetConnAttempts()
Gets count of connection attempts which is used while sending the message via unix socket.
StringgetOwner()
StringgetPermissions()
StringgetPrefix()
intgetRepeatWriteToFile()
Gets count of repeated write to file if some exception is thrown.
intgetTimeout()
Gets timeout which is used while sending the message via unix socket.
voidlog(Event event)
Writes event message to the file and socket.
voidsetConnAttempts(int connAttempts)
Sets count of connection attempts while sending the message via unix socket.
voidsetOwner(String owner)
voidsetPermissions(String permissions)
voidsetRepeatWriteToFile(int repeatWriteToFile)
Sets count of repeated write to file if some exception is thrown.
voidsetTimeout(int timeout)
Sets timeout which is used while sending the message via unix socket.

Constructor Detail

ContextIL

public ContextIL()
Creates new instance of ContextIL.

ContextIL

public ContextIL(String prefix)

ContextIL

public ContextIL(String prefix, String socket, String lib)

Method Detail

getConnAttempts

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

Returns: count of connection attempts

getOwner

public String getOwner()

getPermissions

public String getPermissions()

getPrefix

public 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

getTimeout

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

Returns: timeout

log

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

Parameters: event event

Throws: java.lang.IllegalArgumentException if event, prefix or path

setConnAttempts

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

Parameters: connAttempts count of connection attempts

setOwner

public void setOwner(String owner)

setPermissions

public void setPermissions(String permissions)

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

setTimeout

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

Parameters: timeout timeout