if (this.processorId > 0) { try { byte[] zippedStacks = OSProcess.zipStacks(); ReplyMessage.send(getSender(), processorId, zippedStacks, dm); } catch (IOException e) {
byte[] zippedStacks = OSProcess.zipStacks(); ReplyMessage.send(getSender(), processorId, zippedStacks, dm, null); } catch (IOException e) {
@Override public void execute(FunctionContext context) { try { Cache cache = CacheFactory.getAnyInstance(); String memberNameOrId = cache.getDistributedSystem().getDistributedMember().getName(); if (memberNameOrId == null) { memberNameOrId = cache.getDistributedSystem().getDistributedMember().getId(); } StackTracesPerMember stackTracePerMember = new StackTracesPerMember(memberNameOrId, OSProcess.zipStacks()); context.getResultSender().lastResult(stackTracePerMember); } catch (Exception e) { context.getResultSender().sendException(e); } }
@Override public void execute(FunctionContext context) { try { Cache cache = CacheFactory.getAnyInstance(); String memberNameOrId = cache.getDistributedSystem().getDistributedMember().getName(); if (memberNameOrId == null) { memberNameOrId = cache.getDistributedSystem().getDistributedMember().getId(); } StackTracesPerMember stackTracePerMember = new StackTracesPerMember(memberNameOrId, OSProcess.zipStacks()); context.getResultSender().lastResult(stackTracePerMember); } catch (Exception e) { context.getResultSender().sendException(e); } }