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 TypeMethodDescriptionvoidbooleancreateArea(String areaId) Create a new areavoidexit()intGet a specific areaCollection<? extends Area> getAreas()Return a list of areasgetWelcome(int highestAccepted) Return the protocol version that must be used.voidbooleanLaunchbooleanremoveArea(String areaId) Remove an areabooleansync(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
-
getArea
-
removeArea
-
createArea
-
launch
-
exit
-
view
-
exit
-
input
-
cancel
-
clearCache
boolean clearCache()
-