Examples of shutdown()


Examples of org.apache.servicemix.jbi.deployer.artifacts.ServiceAssemblyImpl.shutDown()

            try {
                if (sa.getState() == AbstractLifecycleJbiArtifact.State.Started) {
                    sa.stop(false);
                }
                if (sa.getState() == AbstractLifecycleJbiArtifact.State.Stopped) {
                    sa.shutDown(false, true);
                }
                for (ServiceUnitImpl su : sa.getServiceUnitsList()) {
                    su.undeploy();
                }
            } catch (Exception e) {
View Full Code Here

Examples of org.apache.servicemix.jbi.framework.ComponentMBeanImpl.shutDown()

        String result = "NOT FOUND: " + componentName;
        ObjectName objName = getComponentByName(componentName);
        if (objName != null) {
            ComponentMBeanImpl mbean = (ComponentMBeanImpl) beanMap.get(objName);
            if (mbean != null) {
                mbean.shutDown();
                result = mbean.getCurrentState();
            }
        }
        return result;
    }
View Full Code Here

Examples of org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.shutDown()

      }
    }
   
    public void unregister(ServiceAssembly assembly) throws Exception {
      ServiceAssemblyLifeCycle salc = container.getRegistry().getServiceAssembly(assembly.getName());
      salc.shutDown(false);
      container.getRegistry().unregisterServiceAssembly(assembly.getName());
    }

}
View Full Code Here

Examples of org.apache.sirona.cassandra.agent.gauge.CassandraGaugeDataStore.shutdown()

        };
        store.createOrNoopGauge(gauge.role());
        store.addGauge(gauge);

        Thread.sleep(250);
        store.shutdown();

        final Collection<Role> gauges = store.gauges();
        assertEquals(1, gauges.size());

        assertEquals(gauge.role(), gauges.iterator().next());
View Full Code Here

Examples of org.apache.sirona.cassandra.agent.status.CassandraStatusDataStore.shutdown()

        });

        assertEquals(0, store.statuses().size());

        Thread.sleep(250);
        store.shutdown();

        final Map<String,NodeStatus> statuses = store.statuses();
        assertEquals(1, statuses.size());
        assertTrue(statuses.containsKey("test"));
View Full Code Here

Examples of org.apache.sirona.store.counter.BatchCounterDataStore.shutdown()

            }
        };

        Repository.INSTANCE.getCounter(new Counter.Key(Role.PERFORMANCES, "counter")).add(123);
        Thread.sleep(250);
        store.shutdown();

        assertTrue(size.size() >= 2);
        assertEquals(1, size.iterator().next().intValue());
        assertEquals(0, size.get(1).intValue());
    }
View Full Code Here

Examples of org.apache.sirona.store.status.PeriodicNodeStatusDataStore.shutdown()

        assertEquals(Status.OK, store.statuses().values().iterator().next().getStatus());

        SpiTestImpl.status = new ValidationResult("", Status.KO, "");
        Thread.sleep(200);
        assertEquals(Status.KO, store.statuses().values().iterator().next().getStatus());
        store.shutdown();
    }
}
View Full Code Here

Examples of org.apache.solr.client.solrj.SolrServer.shutdown()

            if (cloudServerAvailable) {
                String collection = "sample_" + System.nanoTime();
                RemoteSolrServerProvider remoteSolrServerProvider = new RemoteSolrServerProvider(null, host, collection, 2, 2, null);
                SolrServer solrServer = remoteSolrServerProvider.getSolrServer();
                assertNotNull(solrServer);
                solrServer.shutdown();
                break;
            }
        }
    }
}
View Full Code Here

Examples of org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.shutdown()

          query.setQuery("*:*");
          QueryResponse resp = solr.query(query);
          long numDocs = resp.getResults().getNumFound();
          actualDocs += numDocs;
        } finally {
          solr.shutdown();
        }
      }
    }
    assertEquals(expectedShards, actualShards);
    assertEquals(expectedDocs, actualDocs);
View Full Code Here

Examples of org.apache.solr.client.solrj.impl.CloudSolrServer.shutdown()

      CloudSolrServer cloudSolrServer = getCloudSolrServer(collectionName);
      try {
        cloudSolrServer.add(solrInputDoc);
        cloudSolrServer.commit();
      } finally {
        cloudSolrServer.shutdown();
      }

      orginalSolrDocs.add(ClientUtils.toSolrDocument(solrInputDoc));
      SolrDocumentList solrRespDocs = getSolrDocs(collectionName, ALL_DOCS, true);
      // Validate Solr content to check whether the update command went through.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.