@Override protected boolean acceptsFeature(Server server) { return !server.isStarted(); }
@Override protected boolean acceptsFeature(Server server) { return server.isStarted(); }
@Override protected boolean acceptsFeature(Server server) { return !server.isStarted(); }
@Override protected boolean acceptsFeature(Server server) { return server.isStarted(); }
private void unregisterService(ServiceReference sr) { String serviceUrl = (String)sr.getProperty(WS_PATH); if (serviceUrl != null && context.getService(sr) instanceof WebServiceMarkerInterface && registeredServices.containsKey(serviceUrl)) { log.info("Service unregistration: "+context.getService(sr).getClass().getName()); Server service = registeredServices.get(serviceUrl); registeredServices.remove(serviceUrl); try { if (service.isStarted()) service.stop(); service.destroy(); } catch (Exception e) { log.error("Could not remove service: "+serviceUrl, e); } } }
public void destroy() { Server server = super.getServer(); if (server != null && server.isStarted()) { server.destroy(); } } @Override
public void destroy() { Server server = super.getServer(); if (server != null && server.isStarted()) { server.destroy(); } }
try { log.info("Stopping service: "+path); if (registeredServices.get(path).isStarted()) registeredServices.get(path).stop();
for (Server serv : servers) { String qname = serv.getEndpoint().getEndpointInfo().getName().getLocalPart(); String started = serv.isStarted() ? "Started" : "Stopped"; String address = serv.getEndpoint().getEndpointInfo().getAddress(); if (fullAddress) {
for (Server serv : servers) { String qname = serv.getEndpoint().getEndpointInfo().getName().getLocalPart(); String started = serv.isStarted() ? "Started" : "Stopped"; String address = serv.getEndpoint().getEndpointInfo().getAddress(); if (fullAddress) {
@Test public final void testIt() throws InterruptedException { Assert.assertTrue(this.server.isStarted()); this.beforeRequest(); final String retVal = this.client.searchBook("any"); // we could use the return value Assert.assertEquals("Unexpected return value", "any", retVal); this.afterRequest(); this.clientMonitoringController.terminateMonitoring(); this.clientMonitoringController.waitForTermination(5000); this.serverMonitoringController.terminateMonitoring(); this.serverMonitoringController.waitForTermination(5000); this.checkRecordList(this.recordListFilledByListWriter); }