X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fslivkaws%2FSlivkaWSDiscoverer.java;h=d21d5d1f85c6d4e96f57c22d42d09135e5afc2e6;hb=ab58313e7bb31264ddb2715a1c548cdc789d7fa6;hp=50fa2d68fbeb19cbe58aae8c2a2ef3b9fa7f59d6;hpb=871ad3a9474c5f4fbbe896a8a0551d0a6250cb77;p=jalview.git diff --git a/src/jalview/ws/slivkaws/SlivkaWSDiscoverer.java b/src/jalview/ws/slivkaws/SlivkaWSDiscoverer.java index 50fa2d6..d21d5d1 100644 --- a/src/jalview/ws/slivkaws/SlivkaWSDiscoverer.java +++ b/src/jalview/ws/slivkaws/SlivkaWSDiscoverer.java @@ -1,6 +1,7 @@ package jalview.ws.slivkaws; import jalview.bin.Cache; +import jalview.bin.Console; import jalview.ws.ServiceChangeListener; import jalview.ws.WSDiscovererI; import jalview.ws.api.ServiceWithParameters; @@ -87,7 +88,7 @@ public class SlivkaWSDiscoverer implements WSDiscovererI private List reloadServices() { - Cache.log.info("Reloading Slivka services"); + Console.info("Reloading Slivka services"); notifyServiceListeners(Collections.emptyList()); ArrayList instances = new ArrayList<>(); @@ -115,6 +116,10 @@ public class SlivkaWSDiscoverer implements WSDiscovererI { switch (path[path.length - 1].toLowerCase()) { + case "rna secondary structure prediction": + newInstance = new RNAalifoldServiceInstance(client, + service, "Secondary Structure Prediction"); + break; case "sequence alignment analysis (conservation)": newInstance = new SlivkaAnnotationServiceInstance(client, service, Category.CATEGORY_CONSERVATION); @@ -124,7 +129,7 @@ public class SlivkaWSDiscoverer implements WSDiscovererI service, Category.CATEGORY_DISORDER); break; case "protein secondary structure prediction": - newInstance = new SlivkaJPredServiceInstance(client, + newInstance = new SlivkaAnnotationServiceInstance(client, service, "Secondary Structure Prediction"); break; case "multiple sequence alignment": @@ -142,7 +147,7 @@ public class SlivkaWSDiscoverer implements WSDiscovererI } services = instances; - Cache.log.info("Slivka services reloading finished"); + Console.info("Slivka services reloading finished"); notifyServiceListeners(instances); return instances; } @@ -192,13 +197,13 @@ public class SlivkaWSDiscoverer implements WSDiscovererI valid.add(url); } catch (MalformedURLException e) { - Cache.log.warn("Problem whilst trying to make a URL from '" + Console.warn("Problem whilst trying to make a URL from '" + ((url != null) ? url : "") + "'"); - Cache.log.warn( + Console.warn( "This was probably due to a malformed comma separated list" + " in the " + SLIVKA_HOST_URLS + " entry of $(HOME)/.jalview_properties)"); - Cache.log.debug("Exception was ", e); + Console.debug("Exception was ", e); } } return valid; @@ -219,7 +224,7 @@ public class SlivkaWSDiscoverer implements WSDiscovererI return services.isEmpty() ? STATUS_NO_SERVICES : STATUS_OK; } catch (IOException | org.json.JSONException e) { - Cache.log.error("Slivka could not retrieve services list", e); + Console.error("Slivka could not retrieve services list", e); return STATUS_INVALID; } }