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
Sink
public boolean removeArea(String areaId) throws Exception
Sink
removeArea
in interface Sink
Exception
public boolean launch(String areaId, Map<String,String> env, List<String> args) throws Exception
Sink
public byte[] view(String areaId, String path) throws Exception
Sink
public Welcome getWelcome(int highest)
Sink
getWelcome
in interface Sink
public AreaImpl createArea(String areaId) throws Exception
Sink
createArea
in interface Sink
areaId
- area id, or null for a new areaException
public Collection<? extends Area> getAreas()
Sink
public void setSources(Source... sources)
public boolean sync(String areaId, Collection<Delta> deltas) throws Exception
public boolean clearCache()
clearCache
in interface Sink
Copyright © 2021 aQute SARL. All rights reserved.