Package org.eclipse.jgit.transport
Class DaemonClient
- java.lang.Object
-
- org.eclipse.jgit.transport.DaemonClient
-
public class DaemonClient extends java.lang.ObjectActive network client ofDaemon.
-
-
Constructor Summary
Constructors Constructor Description DaemonClient(Daemon d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidexecute(java.net.Socket sock)DaemongetDaemon()Get the daemon which spawned this client.java.io.InputStreamgetInputStream()Get input stream to read from the connected client.java.io.OutputStreamgetOutputStream()Get output stream to send data to the connected client.java.net.InetAddressgetRemoteAddress()Get Internet address of the remote client.(package private) voidsetRemoteAddress(java.net.InetAddress ia)
-
-
-
Field Detail
-
daemon
private final Daemon daemon
-
peer
private java.net.InetAddress peer
-
rawIn
private java.io.InputStream rawIn
-
rawOut
private java.io.OutputStream rawOut
-
-
Constructor Detail
-
DaemonClient
DaemonClient(Daemon d)
-
-
Method Detail
-
setRemoteAddress
void setRemoteAddress(java.net.InetAddress ia)
-
getDaemon
public Daemon getDaemon()
Get the daemon which spawned this client.- Returns:
- the daemon which spawned this client.
-
getRemoteAddress
public java.net.InetAddress getRemoteAddress()
Get Internet address of the remote client.- Returns:
- Internet address of the remote client.
-
getInputStream
public java.io.InputStream getInputStream()
Get input stream to read from the connected client.- Returns:
- input stream to read from the connected client.
-
getOutputStream
public java.io.OutputStream getOutputStream()
Get output stream to send data to the connected client.- Returns:
- output stream to send data to the connected client.
-
execute
void execute(java.net.Socket sock) throws java.io.IOException, ServiceNotEnabledException, ServiceNotAuthorizedException- Throws:
java.io.IOExceptionServiceNotEnabledExceptionServiceNotAuthorizedException
-
-