@ManagedOperation(description="Opens BARRIER and resumes STABLE") public void openBarrierAndResumeStable() { if(!isDigestNeeded()) return; log.trace("%s: sending down OPEN_BARRIER and RESUME_STABLE", local_addr); openBarrier(); resumeStable(); }
@ManagedOperation(description="Closes BARRIER and suspends STABLE") public void closeBarrierAndSuspendStable() { if(!isDigestNeeded()) return; log.trace("%s: sending down CLOSE_BARRIER and SUSPEND_STABLE", local_addr); down_prot.down(new Event(Event.CLOSE_BARRIER)); down_prot.down(new Event(Event.SUSPEND_STABLE)); }
public void run() { try { log.debug("%s: getting the state from the application", local_addr); up_prot.up(new Event(Event.STATE_TRANSFER_OUTPUTSTREAM, output)); output.flush(); sendEof(requester); // send an EOF to the remote consumer } catch(Throwable e) { sendException(requester, e); // send the exception to the remote consumer } finally { if(isDigestNeeded()) { resumeStable(); // openBarrier(); // was done after getting the digest closeHoleFor(requester); } } } }
protected void handleStateRsp(final Address provider, StateHeader hdr) { if(isDigestNeeded()) { try { punchHoleFor(provider); Util.close(in); close(resource); if(isDigestNeeded()) { openBarrierAndResumeStable(); closeHoleFor(provider);
protected void setStateInApplication(InputStream in, Object resource, final Address provider) { log.debug("%s: setting the state in the aplication", local_addr); try { up_prot.up(new Event(Event.STATE_TRANSFER_INPUTSTREAM, in)); up_prot.up(new Event(Event.STATE_TRANSFER_INPUTSTREAM_CLOSED, new StateTransferResult())); down_prot.down(new Event(Event.GET_VIEW_FROM_COORD)); // https://issues.jboss.org/browse/JGRP-1751 } catch(Throwable t) { handleException(t); } finally { Util.close(in); close(resource); if(isDigestNeeded()) { openBarrierAndResumeStable(); closeHoleFor(provider); } } }
if(isDigestNeeded()) { try { punchHoleFor(requester);
@ManagedOperation(description="Opens BARRIER and resumes STABLE") public void openBarrierAndResumeStable() { if(!isDigestNeeded()) return; log.trace("%s: sending down OPEN_BARRIER and RESUME_STABLE", local_addr); openBarrier(); resumeStable(); }
@ManagedOperation(description="Closes BARRIER and suspends STABLE") public void closeBarrierAndSuspendStable() { if(!isDigestNeeded()) return; log.trace("%s: sending down CLOSE_BARRIER and SUSPEND_STABLE", local_addr); down_prot.down(new Event(Event.CLOSE_BARRIER)); down_prot.down(new Event(Event.SUSPEND_STABLE)); }
public void run() { try { log.debug("%s: getting the state from the application", local_addr); up_prot.up(new Event(Event.STATE_TRANSFER_OUTPUTSTREAM, output)); output.flush(); sendEof(requester); // send an EOF to the remote consumer } catch(Throwable e) { sendException(requester, e); // send the exception to the remote consumer } finally { if(isDigestNeeded()) { resumeStable(); // openBarrier(); // was done after getting the digest closeHoleFor(requester); } } } }
protected void handleStateRsp(final Address provider, StateHeader hdr) { if(isDigestNeeded()) { try { punchHoleFor(provider); Util.close(in); close(resource); if(isDigestNeeded()) { openBarrierAndResumeStable(); closeHoleFor(provider);
protected void setStateInApplication(InputStream in, Object resource, final Address provider) { log.debug("%s: setting the state in the aplication", local_addr); try { up_prot.up(new Event(Event.STATE_TRANSFER_INPUTSTREAM, in)); up_prot.up(new Event(Event.STATE_TRANSFER_INPUTSTREAM_CLOSED, new StateTransferResult())); down_prot.down(new Event(Event.GET_VIEW_FROM_COORD)); // https://issues.jboss.org/browse/JGRP-1751 } catch(Throwable t) { handleException(t); } finally { Util.close(in); close(resource); if(isDigestNeeded()) { openBarrierAndResumeStable(); closeHoleFor(provider); } } }
if(isDigestNeeded()) { try { punchHoleFor(requester);