|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.lb.ILProto
public class ILProto
this class handles communication with LB server (reads messages it sends)
Constructor Summary | |
---|---|
ILProto(java.net.Socket socket)
construcor initializes the class' socket, inStream and outStream attributes |
Method Summary | |
---|---|
int |
errMin()
|
java.lang.String |
errMsg()
|
java.lang.String |
receiveMessage()
this method reads from the inpuStream of the provided socket, checks for the magic word and returns relevant info |
int |
receiveReply()
|
void |
sendMessage(java.lang.String msg)
|
void |
sendReply(int errCode,
int minErrCode,
java.lang.String message)
this method encodes and sends a reply to the interlogger via the socket's outputStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ILProto(java.net.Socket socket) throws java.io.IOException
socket
- an SSLSocket
java.io.IOException
Method Detail |
---|
public java.lang.String receiveMessage() throws java.io.IOException
java.io.IOException
public void sendMessage(java.lang.String msg) throws java.io.IOException
java.io.IOException
public int receiveReply() throws java.io.IOException, LBException
java.io.IOException
LBException
public int errMin()
public java.lang.String errMsg()
public void sendReply(int errCode, int minErrCode, java.lang.String message) throws java.io.IOException
errCode
- errCode of the callingminErrCode
- minimum available errcodemessage
- message for the interlogger - could be any String
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |