Package aQute.libg.remote
Interface Sink
- All Known Implementing Classes:
RemoteSink
public interface Sink
A Sink maintains a different file system somewhere. This API synchronizes
known files between a Source and the Sink.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
createArea
(String areaId) Create a new areavoid
exit()
int
Get a specific areaCollection<? extends Area>
getAreas()
Return a list of areasgetWelcome
(int highestAccepted) Return the protocol version that must be used.void
boolean
Launchboolean
removeArea
(String areaId) Remove an areaboolean
sync
(String areaId, Collection<Delta> deltas) byte[]
View a file or dir
-
Field Details
-
version
static final int version- See Also:
-
-
Method Details
-
sync
- Throws:
Exception
-
getWelcome
Return the protocol version that must be used. The parameter passed specifies the highest supported by the caller. -
getAreas
Return a list of areas- Throws:
Exception
-
getArea
Get a specific area- Throws:
Exception
-
removeArea
Remove an area- Throws:
Exception
-
createArea
Create a new area- Parameters:
areaId
- area id, or null for a new area- Throws:
Exception
-
launch
Launch- Throws:
Exception
-
exit
- Throws:
Exception
-
view
View a file or dir- Throws:
Exception
-
exit
- Throws:
Exception
-
input
- Throws:
Exception
-
cancel
- Throws:
Exception
-
clearCache
boolean clearCache()
-