rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if (log.isTraceEnabled()) { log.trace("In TransactionInterceptor: method is " + methodName); }
if (log.isTraceEnabled()) { log.trace("handling " + methodName); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable...
if (log.isTraceEnabled()) { log.trace("createSessionDelegate"); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable...
if (log.isTraceEnabled()) { log.trace("transacted:" + transacted + ", xa:" + isXA); }
if (log.isTraceEnabled()) { log.trace("setting transacted=" + transacted + ", XA=" + isXA + " on the newly created session"); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable...
if (log.isTraceEnabled()) { log.trace("commit"); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable...
if (log.isTraceEnabled()) { log.trace("rollback"); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable...
if (log.isTraceEnabled()) { log.trace("send"); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable...
if (log.isTraceEnabled()) { log.trace("predeliver"); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable...
if (log.isTraceEnabled()) { log.trace("getXAResource"); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable...
if (log.isTraceEnabled()) { log.trace("setXAResource"); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable...
if (log.isTraceEnabled()) { log.trace("getResourceManager"); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable...
if (log.isTraceEnabled()) { log.trace("setResourceManager"); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable...
return null; }
if (log.isTraceEnabled()) { log.trace("set XA to " + XA + ", ending the invocation"); } return null; }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTraceEnable...
modified = false;
public DefaultDocumentEvent(int offset, int length, DocumentEvent.EventType type) { this.offset = offset; this.length = length; this.type = type; changes = new Hashtable(); }
modified = true;
public boolean addEdit(UndoableEdit edit) { // XXX - Fully qualify ElementChange to work around gcj bug #2499. if (edit instanceof DocumentEvent.ElementChange) { DocumentEvent.ElementChange elEdit = (DocumentEvent.ElementChange) edit; changes.put(elEdit.getElement(),...
if (event.modified)
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Documen...
c.pushStyle(CascadedStyle.emptyCascadedStyle);
static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such { LinkedList decorations = c.getDecorations(); c.pushStyle(CascadedStyle.emptyCascadedStyle); //BlockBox block = (BlockBox)...
c.popStyle();
static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such { LinkedList decorations = c.getDecorations(); c.pushStyle(CascadedStyle.emptyCascadedStyle); //BlockBox block = (BlockBox)...
if (padding.right <= 0 && border.right <= 0) return;
public static void paintRightPadding(Context c, LineBox line, InlineBox inline, int padX, Border margin, Border border, Border padding) { int padding_yoff = margin.top + border.top + padding.top; if (padding.right <= 0 && border.right <= 0) return; int ty = line.getBaseline() - inline.y - inlin...
drainDestination(cf, queue);
public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeployTopic("Topic2"); ServerManagement.undeployQueue("Queue"); ServerManagement.deployTopic("Topic"); ServerManagement.deployTopic("Top...
pureMinutes = Math.abs(pureMinutes);
private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN...
BoxRendering.paint(c, inline);
BoxRendering.paint(c, inline, false);
static void paintAbsolute(Context c, Box inline) { // Uu.p("paint absolute: " + inline); //c.translate(line.x, line.y + (line.baseline - inline.height)); /*Renderer rend = c.getRenderer(inline.content.getElement()); rend.paint(c, inline);*/ BoxRendering.paint(c, inline); //...
BoxRendering.paint(c, inline);
BoxRendering.paint(c, inline, false);
static void paintFloat(Context c, InlineBox inline) { // Uu.p("painting a float: " + inline); Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe.x, 0, oe.width, oe.height)); //int xoff = line.Xx + inline.Xx; int xoff = 0; int yoff = 0;//line.y + ( line.baseline - ...
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) {
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics) {
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } if (ib instanceof InlineBlockBox) { paintReplaced(c, ib, line); debugInlines(c, ib, lx, ly); return; } InlineTextBox inline = (InlineTextBox) ib; if (inline.pushstyles != null) { for (Iterator i = inline.pushstyles.iterator(); i.hasNext();) ...
if (ib.pushstyles != null) { for (Iterator i = ib.pushstyles.iterator(); i.hasNext();) {
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
paintPadding(c, line, inline);
paintPadding(c, line, ib);
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
c.updateSelection(inline); int iy = ly + inline.y; int ix = lx + inline.x;
if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); } else if (ib instanceof InlineBlockBox) { c.pushStyle(c.getCss().getCascadedStyle(ib.element)); c.translate(line.x, line.y + (line.getBaseline() - VerticalAlign.getBaselineOffset(c, line, ib, blockLineHeight, blockLineMetrics) - ib.height)); BoxRenderi...
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
paintSelection(c, inline, lx, ly); paintText(c, lx, ly, ix, iy, inline); debugInlines(c, inline, lx, ly);
InlineTextBox inline = (InlineTextBox) ib;
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
if (inline.popstyles != null) { for (Iterator i = inline.popstyles.iterator(); i.hasNext();) {
c.updateSelection(inline); int iy = ly - VerticalAlign.getBaselineOffset(c, line, inline, blockLineHeight, blockLineMetrics); int ix = lx + inline.x; paintSelection(c, inline, lx, ly); paintText(c, lx, ly, ix, iy, inline); debugInlines(c, inline, lx, ly); } if (ib.popstyles != null) { for (Iterator i = ib.pop...
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
paintLine(c, (LineBox) box.getChild(i));
paintLine(c, (LineBox) box.getChild(i), blockLineHeight, blockLineMetrics);
static void paintInlineContext(Context c, Box box) { //BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.translate(box.x, box.y); // for each line box BlockBox block = null; if (box instanceof BlockBox) {...
static void paintLine(Context c, LineBox line) {
static void paintLine(Context c, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics) {
static void paintLine(Context c, LineBox line) { // get Xx and y int lx = line.x; int ly = line.y + line.baseline; // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child = line.getChild(j); if (child.absolute) { paint...
int ly = line.y + line.baseline;
int ly = line.y + line.getBaseline();
static void paintLine(Context c, LineBox line) { // get Xx and y int lx = line.x; int ly = line.y + line.baseline; // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child = line.getChild(j); if (child.absolute) { paint...
paintInline(c, box, lx, ly, line);
paintInline(c, box, lx, ly, line, blockLineHeight, blockLineMetrics);
static void paintLine(Context c, LineBox line) { // get Xx and y int lx = line.x; int ly = line.y + line.baseline; // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child = line.getChild(j); if (child.absolute) { paint...
int ty = line.baseline - inline.y - inline.height - padding_yoff + line.y;
int ty = line.getBaseline() - inline.y - inline.height - padding_yoff + line.y;
public static void paintPadding(Context c, LineBox line, InlineBox inline) { //Uu.p("painting border: " + inline.border); // paint the background int padding_xoff = 0; int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty = line.baseline - inline.y - inline.height...
iy -= (int) lm.getDescent();
public static void paintText(Context c, int lx, int ly, int ix, int iy, InlineTextBox inline) { String text = inline.getSubstring(); Graphics g = c.getGraphics(); //adjust font for current settings Font oldfont = c.getGraphics().getFont(); c.getGraphics().setFont(FontUtil.getFont(...
if (number.intValue() == 0) { setEnabled(false); return false; } setEnabled(true); return true;
boolean result = (number.intValue() != 0); this.setEnabled(result); return result;
public boolean setCurrentAccessibleValue(Number number) { if (number.intValue() == 0) { setEnabled(false); return false; } setEnabled(true); return true; }
deserialised = true;
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); int length = in.readInt(); if (length < 0) { internalArray = null; } else { internalArray = new byte[length]; in.readFully(internalArray); } ...
this.lock = new ReentrantLock(); }
}
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("...
void acknowledge(String messageID, Transaction tx) throws JMSException
synchronized void acknowledge(String messageID, Transaction tx) throws JMSException
void acknowledge(String messageID, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("acknowledging " + messageID); } try { acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (Single...
acquireLock();
void acknowledge(String messageID, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("acknowledging " + messageID); } try { acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (Single...
finally { releaseLock(); }
void acknowledge(String messageID, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("acknowledging " + messageID); } try { acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (Single...
void acknowledgeAll() throws JMSException
synchronized void acknowledgeAll() throws JMSException
void acknowledgeAll() throws JMSException { try { acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); d.acknowledge(null); i.remove(); } ...
{ acquireLock();
{
void acknowledgeAll() throws JMSException { try { acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); d.acknowledge(null); i.remove(); } ...
finally { releaseLock(); }
void acknowledgeAll() throws JMSException { try { acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); d.acknowledge(null); i.remove(); } ...
public void activate() throws JMSException
public synchronized void activate() throws JMSException
public void activate() throws JMSException { try { if (log.isTraceEnabled()) { log.trace("activate:" + this); } acquireLock(); if (closed) { //Do nothing return; } ready = true; promptDelivery(); ...
try
if (closed)
public void activate() throws JMSException { try { if (log.isTraceEnabled()) { log.trace("activate:" + this); } acquireLock(); if (closed) { //Do nothing return; } ready = true; promptDelivery(); ...
if (log.isTraceEnabled()) { log.trace("activate:" + this); } acquireLock(); if (closed) { return; } ready = true; promptDelivery();
return;
public void activate() throws JMSException { try { if (log.isTraceEnabled()) { log.trace("activate:" + this); } acquireLock(); if (closed) { //Do nothing return; } ready = true; promptDelivery(); ...
finally { releaseLock(); }
ready = true; promptDelivery();
public void activate() throws JMSException { try { if (log.isTraceEnabled()) { log.trace("activate:" + this); } acquireLock(); if (closed) { //Do nothing return; } ready = true; promptDelivery(); ...
void cancelAllDeliveries() throws JMSException
synchronized void cancelAllDeliveries() throws JMSException
void cancelAllDeliveries() throws JMSException { try { acquireLock(); if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); } //Need to cancel starting at the end of the list and working to the front //in order that the messages end up back in...
try { acquireLock();
if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); }
void cancelAllDeliveries() throws JMSException { try { acquireLock(); if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); } //Need to cancel starting at the end of the list and working to the front //in order that the messages end up back in...
if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); } for (int i = deliveries.size() - 1; i >= 0; i--) { SingleReceiverDelivery d = (SingleReceiverDelivery)deliveries.get(i); try
for (int i = deliveries.size() - 1; i >= 0; i--) { SingleReceiverDelivery d = (SingleReceiverDelivery)deliveries.get(i); try { boolean cancelled = d.cancel(); if (!cancelled)
void cancelAllDeliveries() throws JMSException { try { acquireLock(); if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); } //Need to cancel starting at the end of the list and working to the front //in order that the messages end up back in...
boolean cancelled = d.cancel(); if (!cancelled) { throw new JMSException("Failed to cancel delivery:" + d.getReference().getMessageID()); } if (log.isTraceEnabled()) { log.trace(d + " canceled"); }
throw new JMSException("Failed to cancel delivery:" + d.getReference().getMessageID());
void cancelAllDeliveries() throws JMSException { try { acquireLock(); if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); } //Need to cancel starting at the end of the list and working to the front //in order that the messages end up back in...
catch(Throwable t) { log.error("Cannot cancel delivery: " + d, t); }
if (log.isTraceEnabled()) { log.trace(d + " canceled"); }
void cancelAllDeliveries() throws JMSException { try { acquireLock(); if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); } //Need to cancel starting at the end of the list and working to the front //in order that the messages end up back in...
deliveries.clear(); promptDelivery();
catch(Throwable t) { log.error("Cannot cancel delivery: " + d, t); }
void cancelAllDeliveries() throws JMSException { try { acquireLock(); if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); } //Need to cancel starting at the end of the list and working to the front //in order that the messages end up back in...
finally { releaseLock(); }
deliveries.clear(); promptDelivery();
void cancelAllDeliveries() throws JMSException { try { acquireLock(); if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); } //Need to cancel starting at the end of the list and working to the front //in order that the messages end up back in...
public void cancelMessage(Serializable messageID) throws JMSException
public synchronized void cancelMessage(Serializable messageID) throws JMSException
public void cancelMessage(Serializable messageID) throws JMSException { try { acquireLock(); boolean cancelled = false; Iterator iter = deliveries.iterator(); try { while (iter.hasNext()) { SingleReceiverD...
acquireLock(); boolean cancelled = false; Iterator iter = deliveries.iterator(); try { while (iter.hasNext())
while (iter.hasNext()) { SingleReceiverDelivery del = (SingleReceiverDelivery)iter.next(); if (del.getReference().getMessageID().equals(messageID))
public void cancelMessage(Serializable messageID) throws JMSException { try { acquireLock(); boolean cancelled = false; Iterator iter = deliveries.iterator(); try { while (iter.hasNext()) { SingleReceiverD...
SingleReceiverDelivery del = (SingleReceiverDelivery)iter.next(); if (del.getReference().getMessageID().equals(messageID))
if (del.cancel())
public void cancelMessage(Serializable messageID) throws JMSException { try { acquireLock(); boolean cancelled = false; Iterator iter = deliveries.iterator(); try { while (iter.hasNext()) { SingleReceiverD...
if (del.cancel()) { cancelled = true; iter.remove(); break; } else { throw new JMSException("Failed to cancel delivery: " + messageID); }
cancelled = true; iter.remove(); break; } else { throw new JMSException("Failed to cancel delivery: " + messageID);
public void cancelMessage(Serializable messageID) throws JMSException { try { acquireLock(); boolean cancelled = false; Iterator iter = deliveries.iterator(); try { while (iter.hasNext()) { SingleReceiverD...
catch (Throwable t) { throw new JBossJMSException("Failed to cancel message", t); } if (!cancelled) { throw new IllegalStateException("Cannot find delivery to cancel"); } else { promptDelivery(); }
public void cancelMessage(Serializable messageID) throws JMSException { try { acquireLock(); boolean cancelled = false; Iterator iter = deliveries.iterator(); try { while (iter.hasNext()) { SingleReceiverD...
finally
catch (Throwable t)
public void cancelMessage(Serializable messageID) throws JMSException { try { acquireLock(); boolean cancelled = false; Iterator iter = deliveries.iterator(); try { while (iter.hasNext()) { SingleReceiverD...
releaseLock();
throw new JBossJMSException("Failed to cancel message", t); } if (!cancelled) { throw new IllegalStateException("Cannot find delivery to cancel"); } else { promptDelivery();
public void cancelMessage(Serializable messageID) throws JMSException { try { acquireLock(); boolean cancelled = false; Iterator iter = deliveries.iterator(); try { while (iter.hasNext()) { SingleReceiverD...
public void close() throws JMSException
public synchronized void close() throws JMSException
public void close() throws JMSException { try { acquireLock(); if (closed) { throw new IllegalStateException("Consumer is already closed"); } if (log.isTraceEnabled()) { log.trace(this.id + " close"); } closed = true; //On close ...
try
if (closed)
public void close() throws JMSException { try { acquireLock(); if (closed) { throw new IllegalStateException("Consumer is already closed"); } if (log.isTraceEnabled()) { log.trace(this.id + " close"); } closed = true; //On close ...
acquireLock(); if (closed) { throw new IllegalStateException("Consumer is already closed"); } if (log.isTraceEnabled()) { log.trace(this.id + " close"); } closed = true; disconnect(); Dispatcher.singleton.unregisterTarget(this.id);
throw new IllegalStateException("Consumer is already closed");
public void close() throws JMSException { try { acquireLock(); if (closed) { throw new IllegalStateException("Consumer is already closed"); } if (log.isTraceEnabled()) { log.trace(this.id + " close"); } closed = true; //On close ...
finally { releaseLock(); }
if (log.isTraceEnabled()) { log.trace(this.id + " close"); } closed = true; disconnect(); Dispatcher.singleton.unregisterTarget(this.id);
public void close() throws JMSException { try { acquireLock(); if (closed) { throw new IllegalStateException("Consumer is already closed"); } if (log.isTraceEnabled()) { log.trace(this.id + " close"); } closed = true; //On close ...
try { acquireLock(); ready = false; if (log.isTraceEnabled()) { log.trace("set ready to false"); } } finally { releaseLock(); }
ready = false; if (log.isTraceEnabled()) { log.trace("set ready to false"); }
public synchronized void deactivate() throws JMSException { try { acquireLock(); ready = false; if (log.isTraceEnabled()) { log.trace("set ready to false"); } } finally { releaseLock(); } }
public javax.jms.Message getMessageNow() throws JMSException {
public synchronized javax.jms.Message getMessageNow() throws JMSException {
public javax.jms.Message getMessageNow() throws JMSException { try { acquireLock(); grabbing = true; //This will always deliver a message (if there is one) on the same thread promptDelivery(); javax.jms.Message ret = (javax.jm...
acquireLock();
public javax.jms.Message getMessageNow() throws JMSException { try { acquireLock(); grabbing = true; //This will always deliver a message (if there is one) on the same thread promptDelivery(); javax.jms.Message ret = (javax.jm...
releaseLock(); }
}
public javax.jms.Message getMessageNow() throws JMSException { try { acquireLock(); grabbing = true; //This will always deliver a message (if there is one) on the same thread promptDelivery(); javax.jms.Message ret = (javax.jm...
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx)
public synchronized Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx)
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace("Attempting to handle ref: " + reference.getMessageID()); } if (!wantReference()) { return null; } try { if (log.isTraceEn...
channel.deliver(this);
channel.redeliver(this);
protected void promptDelivery() { if (log.isTraceEnabled()) { log.trace("promptDelivery:" + this); } if (ready || grabbing) { channel.deliver(this); } }
void remove() throws JMSException
synchronized void remove() throws JMSException
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); try { acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); ) { SingleReceiverDeliver...
try
for(Iterator i = deliveries.iterator(); i.hasNext(); )
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); try { acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); ) { SingleReceiverDeliver...
acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); )
SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); try { acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); ) { SingleReceiverDeliver...
SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try { d.cancel(); } catch(Throwable t) { throw new JBossJMSException("Failed to cancel delivery", t); } i.remove();
d.cancel();
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); try { acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); ) { SingleReceiverDeliver...
if (!disconnected)
catch(Throwable t)
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); try { acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); ) { SingleReceiverDeliver...
close();
throw new JBossJMSException("Failed to cancel delivery", t);
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); try { acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); ) { SingleReceiverDeliver...
this.sessionEndpoint.connectionEndpoint.consumers.remove(id); if (this.channel instanceof Subscription) { ((Subscription)channel).closeConsumer(this.sessionEndpoint.serverPeer.getPersistenceManager()); } this.sessionEndpoint.consumers.remove(this.id);
i.remove();
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); try { acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); ) { SingleReceiverDeliver...
finally
if (!disconnected)
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); try { acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); ) { SingleReceiverDeliver...
releaseLock();
close();
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); try { acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); ) { SingleReceiverDeliver...
this.sessionEndpoint.connectionEndpoint.consumers.remove(id); if (this.channel instanceof Subscription) { ((Subscription)channel).closeConsumer(this.sessionEndpoint.serverPeer.getPersistenceManager()); } this.sessionEndpoint.consumers.remove(this.id);
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); try { acquireLock(); for(Iterator i = deliveries.iterator(); i.hasNext(); ) { SingleReceiverDeliver...
void setStarted(boolean started)
synchronized void setStarted(boolean started)
void setStarted(boolean started) { if (log.isTraceEnabled()) { log.trace("setStarted: " + started); } try { acquireLock(); this.started = started; if (started) { //need to prompt delivery promptDelivery(); ...
try
this.started = started; if (started)
void setStarted(boolean started) { if (log.isTraceEnabled()) { log.trace("setStarted: " + started); } try { acquireLock(); this.started = started; if (started) { //need to prompt delivery promptDelivery(); ...
acquireLock(); this.started = started; if (started) { promptDelivery(); } } finally { releaseLock();
promptDelivery();
void setStarted(boolean started) { if (log.isTraceEnabled()) { log.trace("setStarted: " + started); } try { acquireLock(); this.started = started; if (started) { //need to prompt delivery promptDelivery(); ...
String password, String clientConnectionId)
String password)
ServerConnectionEndpoint(ServerPeer serverPeer, String clientID, String username, String password, String clientConnectionId) { this.serverPeer = serverPeer; dm = serverPeer.getDestinationManager(); sm = serverPeer.getSecurityManager(); tr = serverPeer.getTxRepository...
this.clientConnectionID = clientConnectionId;
ServerConnectionEndpoint(ServerPeer serverPeer, String clientID, String username, String password, String clientConnectionId) { this.serverPeer = serverPeer; dm = serverPeer.getDestinationManager(); sm = serverPeer.getSecurityManager(); tr = serverPeer.getTxRepository...
void acknowledge(String messageID, int consumerID, Transaction tx) throws JMSException
protected void acknowledge(String messageID, int consumerID, Transaction tx) throws JMSException
void acknowledge(String messageID, int consumerID, Transaction tx) throws JMSException { if (trace) { log.trace("acknowledging " + messageID + " from consumer " + consumerID + " transactionally on " + tx); } ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(new Integer(consumerID));...
void cancel(String messageID, int consumerID) throws JMSException
protected void cancel(String messageID, int consumerID) throws JMSException
void cancel(String messageID, int consumerID) throws JMSException { ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(new Integer(consumerID)); if (consumer == null) { throw new IllegalStateException("Cannot find consumer:" + consumerID); } consumer.cancelMess...
cm.unregisterConnection(clientConnectionID);
cm.unregisterConnection(remotingClientSessionId);
public void close() throws JMSException { try { closeLock.writeLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (trace) { log.trace("close()"); } if (closed) { log.warn("Connection is already...
ServerSessionEndpoint ep = new ServerSessionEndpoint(sessionID, this, acknowledgmentMode);
ServerSessionEndpoint ep = new ServerSessionEndpoint(sessionID, this);
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedExcep...
public Client getCallbackClient()
protected Client getCallbackClient()
public Client getCallbackClient() { return callbackClient; }
public int getConnectionID()
protected int getConnectionID()
public int getConnectionID() { return connectionID; }
ServerPeer getServerPeer()
protected ServerPeer getServerPeer()
ServerPeer getServerPeer() { return serverPeer; }
public ServerSessionEndpoint getSessionDelegate(int sessionID)
protected ServerSessionEndpoint getSessionDelegate(int sessionID)
public ServerSessionEndpoint getSessionDelegate(int sessionID) { return (ServerSessionEndpoint)sessions.get(new Integer(sessionID)); }
public boolean isStarted() throws JMSException
protected boolean isStarted()
public boolean isStarted() throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is closed"); } retu...
if (closed) { throw new IllegalStateException("Connection is closed"); }
public boolean isStarted() throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is closed"); } retu...
public ServerSessionEndpoint putSessionDelegate(int sessionID, ServerSessionEndpoint d)
protected ServerSessionEndpoint putSessionDelegate(int sessionID, ServerSessionEndpoint d)
public ServerSessionEndpoint putSessionDelegate(int sessionID, ServerSessionEndpoint d) { return (ServerSessionEndpoint)sessions.put(new Integer(sessionID), d); }
void sendMessage(Message m, Transaction tx) throws JMSException
protected void sendMessage(Message m, Transaction tx) throws JMSException
void sendMessage(Message m, Transaction tx) throws JMSException { if (trace) { log.trace("sending " + m + (tx == null ? " non-transactionally" : " transactionally on " + tx)); } //The JMSDestination header must already have been set for each message JBossDestination jmsDestination = (JBossDestinatio...
if (pushedOnFirstLine == null) { pushedOnFirstLine = new ArrayList(); for (Iterator i = c.getFirstLineStyles().iterator(); i.hasNext();) { c.pushStyle((CascadedStyle) i.next()); } }
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo...
final boolean interpreted = (magic == VmStackFrame.MAGIC_INTERPRETED); final boolean compiled = (magic == VmStackFrame.MAGIC_COMPILED);
final boolean interpreted = ((magic & VmStackFrame.MAGIC_MASK) == VmStackFrame.MAGIC_INTERPRETED); final boolean compiled = ((magic & VmStackFrame.MAGIC_MASK) == VmStackFrame.MAGIC_COMPILED);
public static Address findThrowableHandler(Throwable ex, Address frame, Address address) { try { if (ex == null) { Unsafe.debug("NPE"); throw new NullPointerException(); } if (frame == null) { Unsafe.debug("frame==null")...