Package edu.brown.hstore.Hstoreservice

Examples of edu.brown.hstore.Hstoreservice.ShutdownRequest


                    @Override
                    public void run(ShutdownResponse parameter) {
                        // Nothing to do...
                    }
                };
                ShutdownRequest request = ShutdownRequest.newBuilder()
                                                            .setSenderSite(this.catalog_site.getId())
                                                            .setExitStatus(exit_status)
                                                            .build();
               
                if (debug.val)
                    LOG.debug(String.format("Sending %s to %d remote sites",
                              request.getClass().getSimpleName(), this.num_sites));
                for (int site_id = 0; site_id < this.num_sites; site_id++) {
                    if (site_id == this.local_site_id) continue;
                    this.channels[site_id].shutdown(new ProtoRpcController(), request, callback);
                    if (debug.val)
                        LOG.debug(String.format("Sent %s to %s",
                                  request.getClass().getSimpleName(),
                                  HStoreThreadManager.formatSiteName(site_id)));
                } // FOR
               
                ThreadUtil.sleep(2000);
            }
View Full Code Here

TOP

Related Classes of edu.brown.hstore.Hstoreservice.ShutdownRequest

Copyright © 2018 www.massapicom. 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.