|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.glite.lb.Context
org.glite.lb.ContextIL
public class ContextIL
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 |
|---|
public ContextIL()
public ContextIL(java.lang.String prefix)
public ContextIL(java.lang.String prefix,
java.lang.String socket,
java.lang.String lib)
| Method Detail |
|---|
public void log(Event event)
throws LBException
log in class Contextevent - event
java.lang.IllegalArgumentException - if event, prefix or path
LBExceptionpublic java.lang.String getPrefix()
public int getRepeatWriteToFile()
public void setRepeatWriteToFile(int repeatWriteToFile)
repeatWriteToFile - count of repeated write to filepublic int getConnAttempts()
public void setConnAttempts(int connAttempts)
connAttempts - count of connection attemptspublic int getTimeout()
public void setTimeout(int timeout)
timeout - timeoutpublic java.lang.String getPermissions()
public void setPermissions(java.lang.String permissions)
public java.lang.String getOwner()
public void setOwner(java.lang.String owner)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||