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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcancel()voidclose()Closevoidbyte[]Called from the remote sink to get the data when it lacks the given sha.getSink()voidjoin()voidlaunch(Map<String, String> env, List<String> args, InputStream stdin, Appendable stdout, Appendable stderr) voidvoidoutput(String areaId, CharSequence text, boolean err) voidsync()void
-
Constructor Details
-
RemoteSource
public RemoteSource()
-
-
Method Details
-
open
-
getData
-
close
-
event
-
output
- Specified by:
outputin 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
-
update
-
sync
-
add
-
join
- Throws:
InterruptedException
-