Package aQute.libg.remote.sink
Class RemoteSink
java.lang.Object
aQute.libg.remote.sink.RemoteSink
- All Implemented Interfaces:
Sink
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
createArea
(String areaId) Create a new area(package private) void
void
exit()
int
Get a specific areaCollection<? extends Area>
getAreas()
Return a list of areasgetWelcome
(int highest) Return the protocol version that must be used.void
boolean
Launchprotected AreaImpl
boolean
removeArea
(String areaId) Remove an areavoid
setSources
(Source... sources) boolean
sync
(String areaId, Collection<Delta> deltas) byte[]
View a file or dir
-
Field Details
-
codec
-
root
-
sources
Source[] sources -
areas
-
areasDir
-
sinkfs
-
shacache
-
-
Constructor Details
-
RemoteSink
- Throws:
Exception
-
-
Method Details
-
getArea
Description copied from interface:Sink
Get a specific area -
removeArea
Description copied from interface:Sink
Remove an area- Specified by:
removeArea
in interfaceSink
- Throws:
Exception
-
launch
Description copied from interface:Sink
Launch -
cancel
-
input
-
exit
-
view
Description copied from interface:Sink
View a file or dir -
exit
-
getWelcome
Description copied from interface:Sink
Return the protocol version that must be used. The parameter passed specifies the highest supported by the caller.- Specified by:
getWelcome
in interfaceSink
-
createArea
Description copied from interface:Sink
Create a new area- Specified by:
createArea
in interfaceSink
- Parameters:
areaId
- area id, or null for a new area- Throws:
Exception
-
getAreas
Description copied from interface:Sink
Return a list of areas -
read
- Throws:
Exception
-
setSources
-
event
-
sync
-
clearCache
public boolean clearCache()- Specified by:
clearCache
in interfaceSink
-