Examples of reportFailure()


Examples of com.sun.sgs.impl.service.watchdog.WatchdogServiceImpl.reportFailure()

  WatchdogServiceImpl watchdogService =
      new WatchdogServiceImpl(serviceProps, systemRegistry,
            txnProxy, dummyShutdownCtrl);

  // Report a failure, which should shutdown the node
  watchdogService.reportFailure(dataService.getLocalNodeId(),
              appName);

  // Node should not be alive since we reported a failure
  try {
      assertFalse(watchdogService.isLocalNodeAliveNonTransactional());
View Full Code Here

Examples of com.sun.sgs.impl.service.watchdog.WatchdogServiceImpl.reportFailure()

  WatchdogServiceImpl watchdogService =
      new WatchdogServiceImpl(serviceProps, systemRegistry,
            txnProxy, dummyShutdownCtrl);

  // Report a failure, which should shutdown the node
  watchdogService.reportFailure(dataService.getLocalNodeId(),
              appName);

  // Node should not be alive since we reported a failure
  try {
      assertFalse(watchdogService.isLocalNodeAliveNonTransactional());
View Full Code Here

Examples of com.sun.sgs.service.WatchdogService.reportFailure()

            return svc.isLocalNodeAlive();
        }

        public void reportLocalFailure() throws IOException {
            WatchdogService svc = txnProxy.getService(WatchdogService.class);
            svc.reportFailure(
    txnProxy.getService(DataService.class).getLocalNodeId(),
    this.getClass().getName());
        }

        public void reportRemoteFailure(long nodeId) throws IOException {
View Full Code Here

Examples of com.sun.sgs.service.WatchdogService.reportFailure()

    this.getClass().getName());
        }

        public void reportRemoteFailure(long nodeId) throws IOException {
            WatchdogService svc = txnProxy.getService(WatchdogService.class);
            svc.reportFailure(nodeId, this.getClass().getName());
        }
    }
   
    private static class MyRuntimeException extends RuntimeException {
  private static final long serialVersionUID = 1L;
View Full Code Here

Examples of org.apache.ivy.plugins.resolver.DependencyResolver.reportFailure()

                            Message.warn("\tmerged artifact not found: " + adrs[j].getArtifact()
                                    + ". It was required in "
                                    + adrs[j].getArtifact().getExtraAttribute("ivy:merged"));
                        } else {
                            Message.warn("\t" + adrs[j]);
                            resolver.reportFailure(adrs[j].getArtifact());
                        }
                    } else if (adrs[j].getDownloadStatus() == DownloadStatus.SUCCESSFUL) {
                        totalSize += adrs[j].getSize();
                    }
                }
View Full Code Here

Examples of org.apache.ivy.plugins.resolver.DependencyResolver.reportFailure()

                        updateConfsToFetch(Arrays
                                .asList(resolveSpecialConfigurations(getRequiredConfigurations(
                                    parent, parentConf))));
                    } else {
                        Message.warn("\tmodule not found: " + getId());
                        resolver.reportFailure();
                        problem = new RuntimeException("not found");
                        return false;
                    }
                } catch (ResolveProcessException e) {
                    throw e;
View Full Code Here

Examples of org.apache.ivy.plugins.resolver.DependencyResolver.reportFailure()

                        confsToFetch.remove("*");
                        updateConfsToFetch(Arrays.asList(resolveSpecialConfigurations(
                            getRequiredConfigurations(parent, parentConf), this)));
                    } else {
                        Message.warn("\tmodule not found: " + getId());
                        resolver.reportFailure();
                        problem = new RuntimeException("not found");
                        return false;
                    }
                } catch (ResolveProcessException e) {
                    throw e;
View Full Code Here

Examples of org.apache.ivy.plugins.resolver.DependencyResolver.reportFailure()

                        }
                        downloaded = module.getReport().isDownloaded();
                        searched = module.getReport().isSearched();
                    } else {
                        Message.warn("\tmodule not found: " + getId());
                        resolver.reportFailure();
                        problem = new RuntimeException("not found");
                    }
                } catch (ResolveProcessException e) {
                    throw e;
                } catch (Exception e) {
View Full Code Here

Examples of org.apache.ivy.plugins.resolver.DependencyResolver.reportFailure()

                DownloadReport dReport = resolver.download(selectedArtifacts, options);
                ArtifactDownloadReport[] adrs = dReport.getArtifactsReports();
                for (int j = 0; j < adrs.length; j++) {
                    if (adrs[j].getDownloadStatus() == DownloadStatus.FAILED) {
                        Message.warn("\t" + adrs[j]);
                        resolver.reportFailure(adrs[j].getArtifact());
                    } else if (adrs[j].getDownloadStatus() == DownloadStatus.SUCCESSFUL) {
                        totalSize += adrs[j].getSize();
                    }
                }
                // update concerned reports
View Full Code Here

Examples of org.apache.ivy.plugins.resolver.DependencyResolver.reportFailure()

                        }
                        downloaded = module.isDownloaded();
                        searched = module.isSearched();
                    } else {
                        Message.warn("\tmodule not found: " + getId());
                        resolver.reportFailure();
                        problem = new RuntimeException("not found");
                    }
                } catch (Exception e) {
                    problem = e;
                }
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.