| Constructor and Description |
|---|
RemoteSink(File root,
Source... s) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(String areaId) |
boolean |
clearCache() |
AreaImpl |
createArea(String areaId)
Create a new area
|
void |
exit() |
int |
exit(String areaId) |
AreaImpl |
getArea(String areaId)
Get a specific area
|
Collection<? extends Area> |
getAreas()
Return a list of areas
|
Welcome |
getWelcome(int highest)
Return the protocol version that must be used.
|
void |
input(String areaId,
String text) |
boolean |
launch(String areaId,
Map<String,String> env,
List<String> args)
Launch
|
protected AreaImpl |
read(File areaDir) |
boolean |
removeArea(String areaId)
Remove an area
|
void |
setSources(Source... sources) |
boolean |
sync(String areaId,
Collection<Delta> deltas) |
byte[] |
view(String areaId,
String path)
View a file or dir
|
public AreaImpl getArea(String areaId) throws Exception
Sinkpublic boolean removeArea(String areaId) throws Exception
SinkremoveArea in interface SinkExceptionpublic boolean launch(String areaId, Map<String,String> env, List<String> args) throws Exception
Sinkpublic byte[] view(String areaId, String path) throws Exception
Sinkpublic Welcome getWelcome(int highest)
SinkgetWelcome in interface Sinkpublic AreaImpl createArea(String areaId) throws Exception
SinkcreateArea in interface SinkareaId - area id, or null for a new areaExceptionpublic Collection<? extends Area> getAreas()
Sinkpublic void setSources(Source... sources)
public boolean sync(String areaId, Collection<Delta> deltas) throws Exception
public boolean clearCache()
clearCache in interface SinkCopyright © 2019 aQute SARL. All rights reserved.