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 TypeMethodDescriptionvoidvoidcancel()voidclose()Closevoidprivate voidexit()byte[]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
-
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:
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
- Throws:
Exception
-
update
- Throws:
Exception
-
sync
- Throws:
Exception
-
add
- Throws:
Exception
-
join
- Throws:
InterruptedException
-