git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge from master
[fanfix.git]
/
library
/
WebLibrary.java
diff --git
a/library/WebLibrary.java
b/library/WebLibrary.java
index ac1349e7ac51b3015050a4725a28265ef13a211a..7566877cebd48343b47c1764ed31045ee8de78dd 100644
(file)
--- a/
library/WebLibrary.java
+++ b/
library/WebLibrary.java
@@
-126,6
+126,16
@@
public class WebLibrary extends BasicLibrary {
return new Version();
}
return new Version();
}
+ /**
+ * Stop the server.
+ *
+ * @throws IOException
+ * in case of I/O errors
+ */
+ public void stop() throws IOException {
+ post(WebLibraryUrls.EXIT_URL, null).close();
+ }
+
@Override
public Status getStatus() {
try {
@Override
public Status getStatus() {
try {
@@
-309,6
+319,9
@@
public class WebLibrary extends BasicLibrary {
try {
subPg = JsonIO.toProgress(
new JSONObject(IOUtils.readSmallStream(in)));
try {
subPg = JsonIO.toProgress(
new JSONObject(IOUtils.readSmallStream(in)));
+ pg.setName(subPg.getName());
+ pg.setMinMax(subPg.getMin(), subPg.getMax());
+ pg.setProgress(subPg.getProgress());
} catch (Exception e) {
subPg = null;
} finally {
} catch (Exception e) {
subPg = null;
} finally {
@@
-353,6
+366,11
@@
public class WebLibrary extends BasicLibrary {
}
}
}
}
+ @Override
+ public synchronized void delete(String luid) throws IOException {
+ post(WebLibraryUrls.getDeleteUrlStory(luid), null).close();
+ }
+
@Override
protected void updateInfo(MetaData meta) {
// Will be taken care of directly server side
@Override
protected void updateInfo(MetaData meta) {
// Will be taken care of directly server side