Package aQute.libg.remote.source
Class RemoteSource
java.lang.Object
aQute.libg.remote.source.RemoteSource
- All Implemented Interfaces:
Source
Controls a different file system trough a Sink. It can translate files with
local absolute file paths to remote absolute file paths (also if it is a
windows system). It also detects changes in the local file system and will
update the remote. Updates are checked for SHAs so we only transfer the files
when they really are not there, even allowing a remote SHA cache to do its
magic.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
cancel()
void
close()
Closevoid
private void
exit()
byte[]
Called from the remote sink to get the data when it lacks the given sha.getSink()
void
join()
void
launch
(Map<String, String> env, List<String> args, InputStream stdin, Appendable stdout, Appendable stderr) void
void
output
(String areaId, CharSequence text, boolean err) void
sync()
void
-
Field Details
-
Constructor Details
-
RemoteSource
public RemoteSource()
-
-
Method Details
-
open
-
getData
Called from the remote sink to get the data when it lacks the given sha. -
close
Close- Throws:
IOException
-
event
-
exit
private void exit() -
output
- Specified by:
output
in interfaceSource
- Throws:
IOException
-
getSink
-
launch
public void launch(Map<String, String> env, List<String> args, InputStream stdin, Appendable stdout, Appendable stderr) throws Exception- Throws:
Exception
-
cancel
- Throws:
Exception
-
update
- Throws:
Exception
-
sync
- Throws:
Exception
-
add
- Throws:
Exception
-
join
- Throws:
InterruptedException
-