rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
nodeId = in.readUTF();
nodeId = in.readInt();
public void read(DataInputStream in) throws Exception { nodeId = in.readUTF(); int size = in.readInt(); queueStats = new ArrayList(size); for (int i = 0; i < size; i++) { QueueStats stats = new QueueStats(); stats.read(in); queueS...
out.writeUTF(nodeId);
out.writeInt(nodeId);
public void write(DataOutputStream out) throws Exception { out.writeUTF(nodeId); out.writeInt(queueStats.size()); Iterator iter = queueStats.iterator(); while (iter.hasNext()) { QueueStats stats = (QueueStats)iter.next(); stats.write(out); } }
if (trace) { log.trace("creating consumer endpoint for " + jmsDestination + ", selector " + selector + ", " + (noLocal ? "noLocal, " : "") + "subscription " + subscriptionName); }
log.debug("creating consumer for " + jmsDestination + ", selector " + selector + ", " + (noLocal ? "noLocal, " : "") + "subscription " + subscriptionName);
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
try { XRLog.load(Level.WARNING, "falling back on the default parser"); SAXParser parser = SAXParserFactory.newInstance().newSAXParser(); xmlReader = parser.getXMLReader(); xmlReaderClass = "SAXParserFactory default"; } catch ( Exception ex ) { XRLog.general(ex.getMessage()); } } if ( xmlReader == null ) {
public static final XMLReader newXMLReader() { XMLReader xmlReader = null; String xmlReaderClass = Configuration.valueFor("xr.load.xml-reader"); //TODO: if it doesn't find the parser, note that in a static boolean--otherwise // you get exceptions on every load try { ...
fr.translate(fpt.x,fpt.y);
fr.translate(-fpt.x, -fpt.y);
public static Box newGetLeftFloatX(Box box, List left_floats, BlockFormattingContext bfc) { //Uu.p("in new bfc.getLeftFloatX( " + box + " ) "); // count backwards through the floats //int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i);...
if (!(g instanceof PrinterGraphics)) {
if (!(g instanceof PrinterGraphics) && explicitlyOpaque) {
protected void doRender(Context c) { // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics)) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); } ...
setOpaque(false);
super.setOpaque(false);
public void startLayout(Graphics g) { this.removeAll(); if (g == null) { return; } if (doc == null) { return; } // set up CSS Context c = newContext((Graphics2D) g); //getContext().setMaxWidth(0); this.layout_context = c; ...
setOpaque(true);
super.setOpaque(true);
public void startLayout(Graphics g) { this.removeAll(); if (g == null) { return; } if (doc == null) { return; } // set up CSS Context c = newContext((Graphics2D) g); //getContext().setMaxWidth(0); this.layout_context = c; ...
bodyReadOnly = in.readBoolean();
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); if (log.isTraceEnabled()) { log.trace("in readExternal"); } bodyReadOnly = in.readBoolean(); byte type = in.readByte(); if (log.isTraceEnabled()) { log.trac...
out.writeBoolean(bodyReadOnly);
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); if (log.isTraceEnabled()) { log.trace("in writeExternal"); } out.writeBoolean(bodyReadOnly); if (payload == null) { out.writeByte(NULL); } else { out.write(...
log.info("Sent" + numMessages);
public void run() { try { while (count < numMessages) { Message m = sess.createMessage(); m.setStringProperty("PROD_NAME", prodName); m.setIntProperty("MSG_NUMBER", count); prod.send(m); count++; } } catch (Exception...
if (log.isTraceEnabled())
if (trace)
public void commit(Xid xid, boolean onePhase) throws XAException { if (log.isTraceEnabled()) { log.trace("Commit xid=" + xid + ", onePhase=" + onePhase + " " + this); } rm.commit(xid, onePhase, connection); }
if (log.isTraceEnabled())
if (trace)
public void end(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) { log.trace("End xid=" + xid + ", flags=" + flags + " " +this); } synchronized (this) { switch (flags) { case TMSUSPEND : unsetCurrentTransactionId(xid); ...
if (log.isTraceEnabled())
if (trace)
public void forget(Xid xid) throws XAException { if (log.isTraceEnabled()) { log.trace("Forget xid=" + xid + " " + this); } }
if (log.isTraceEnabled())
if (trace)
public int prepare(Xid xid) throws XAException { if (log.isTraceEnabled()) { log.trace("Prepare xid=" + xid + " " + this); } return rm.prepare(xid, connection); }
if (log.isTraceEnabled())
if (trace)
public Xid[] recover(int flags) throws XAException { if (log.isTraceEnabled()) { log.trace("Recover flags=" + flags + " " + this); } return rm.recover(flags, connection); }
if (log.isTraceEnabled())
if (trace)
public void rollback(Xid xid) throws XAException { if (log.isTraceEnabled()) { log.trace("Rollback xid=" + xid + " " + this); } rm.rollback(xid, connection); }
if (log.isTraceEnabled())
if (trace)
private void setCurrentTransactionId(final Xid xid) { if (xid == null) throw new org.jboss.util.NullArgumentException("xid"); if (log.isTraceEnabled()) { log.trace("Setting current tx xid=" + xid + " previous: " + sessionState.getCurrentTxId() + " " + this); } sessionState....
if (log.isTraceEnabled())
if (trace)
public void start(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) { log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); } boolean convertTx = false; if (sessionState.getCurrentTxId() != null) { if (flags == TMNOFLAGS && sessionStat...
return "JBossXAResource[" + Util.guidToString(sessionState.getDelegate().getID())+ "]";
return "JBossXAResource[" + sessionState.getDelegate().getID()+ "]";
public String toString() { return "JBossXAResource[" + Util.guidToString(sessionState.getDelegate().getID())+ "]"; }
if (log.isTraceEnabled())
if (trace)
private void unsetCurrentTransactionId(final Xid xid) { if (xid == null) throw new org.jboss.util.NullArgumentException("xid"); if (log.isTraceEnabled()) { log.trace("Unsetting current tx xid=" + xid + " previous: " + sessionState.getCurrentTxId() + " " + this); } //...
int view_height = this.enclosingScrollPane.getViewport().getHeight();
if(enclosingScrollPane != null) { int view_height = this.enclosingScrollPane.getViewport().getHeight();
protected void startLayout(Graphics g) { this.removeAll(); if ( g == null ) { return; } if ( doc == null ) { return; } Element html = (Element)doc.getDocumentElement(); Element body = x.child( html, "body" ); body = html; newContex...
if(intrinsic_size.getHeight() < view_height) { if(body_box != null) { body_box.height = view_height;
if(intrinsic_size.getHeight() < view_height) { if(body_box != null) { body_box.height = view_height; }
protected void startLayout(Graphics g) { this.removeAll(); if ( g == null ) { return; } if ( doc == null ) { return; } Element html = (Element)doc.getDocumentElement(); Element body = x.child( html, "body" ); body = html; newContex...
threaded = true;
public LayoutThread(HTMLPanel panel) { this.panel = panel; done = true; graphics = null; }
new Thread(this).start();
if(threaded) { new Thread(this).start(); } else { run(); }
public synchronized void startLayout(Graphics g) { if(isLayoutDone()) { //u.p("really starting new thread"); done = false; graphics = g; new Thread(this).start(); } else { //u.p("layout already in progress. skipping layout"); } }
String username = new GUID().toString(); String clientID = new GUID().toString(); String password = new GUID().toString();
String username = "user123"; String clientID = "clientid-4354"; String password = "my_password";
public void testGetPreConfClientId_2() throws Exception { InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lookup("java:/DefaultDS"); String username = new GUID().toString(); ...
throws NamingException
public Object get () { if (values.size () == 0) throw new NoSuchElementException ("no values"); return get (0); }
throws NamingException
public NamingEnumeration getAll () { return new BasicAttributeEnumeration (); }
InitialContext ic = new InitialContext(); ds = (DataSource)ic.lookup(dataSourceJNDIName); ic.close();
protected void startService() throws Exception { // these are supposed to be set by dependencies, this is just a safeguard if (ds == null) { throw new Exception("No DataSource found. This service dependencies must " + "have not been enforced correctly!"); } ...
public ClientProducerDelegate(String objectID)
public ClientProducerDelegate(int objectID)
public ClientProducerDelegate(String objectID) { super(objectID); }
return "ProducerDelegate[" + Util.guidToString(id) + "]";
return "ProducerDelegate[" + id + "]";
public String toString() { return "ProducerDelegate[" + Util.guidToString(id) + "]"; }
if (end == -1) end = location.length();
public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ...
Uu.p("set height to: " + block.height);
private void adjustHeight(Context c, Box block) { if (block.content instanceof AnonymousBlockContent) { return; } CalculatedStyle style = c.getCurrentStyle(); if (style.hasProperty("height")) { //float new_height = c.css.getFloatProperty(elem, "height", c.getExtents...
this.iWidth = lineWidth;
this.width = lineWidth;
ResultEdgeLineWidthHandler(WorkflowGraph graph, Point location, int lineWidth, String name) { super(name); this.graph = graph; this.location = location; this.iWidth = lineWidth; }
if(view instanceof CustomEdgeView)
if(graph.getModel().isEdge(cell))
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = (graph.getGraphLayoutCache().getMapping(cell, false)); if(view instanceof CustomEdgeView) ...
GraphConstants.setLineWidth(((ResultEdge)cell).getAttributes(), iWidth);
GraphConstants.setLineWidth(((ResultEdge)cell).getAttributes(), width);
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = (graph.getGraphLayoutCache().getMapping(cell, false)); if(view instanceof CustomEdgeView) ...
BlockBoxing.count = 0;
public void doActualLayout(Graphics g) { //Uu.p("doActualLayout called"); this.removeAll(); if (g == null) { return; } if (doc == null) { return; }// set up CSS Context c = newContext((Graphics2D) g);//getContext().setMaxWidth(0); this.la...
public synchronized MessageIdGenerator getGenerator(String serverId, ConnectionDelegate cd)
public synchronized MessageIdGenerator getGenerator(String serverId, ConnectionFactoryDelegate cfd)
public synchronized MessageIdGenerator getGenerator(String serverId, ConnectionDelegate cd) throws JMSException { Holder h = (Holder)holders.get(serverId); if (h == null) { h = new Holder(new MessageIdGenerator(cd, BLOCK_SIZE)); holders.put(serverId, h); } else { ...
h = new Holder(new MessageIdGenerator(cd, BLOCK_SIZE));
h = new Holder(new MessageIdGenerator(cfd, BLOCK_SIZE));
public synchronized MessageIdGenerator getGenerator(String serverId, ConnectionDelegate cd) throws JMSException { Holder h = (Holder)holders.get(serverId); if (h == null) { h = new Holder(new MessageIdGenerator(cd, BLOCK_SIZE)); holders.put(serverId, h); } else { ...
return "Line: (" + x + "," + y + ")Xx(" + width + "," + height + ")" + " baseline = " + getBaseline();
return "Line: (" + x + "," + y + ")x(" + width + "," + height + ")" + " baseline = " + getBaseline();
public String toString() { return "Line: (" + x + "," + y + ")Xx(" + width + "," + height + ")" + " baseline = " + getBaseline(); }
if (m.isSelected())
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R...
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); defaults.getBorder("CheckBox.border").paintBorder(m, g, cr.x, cr.y, cr.width, cr.height);
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R...
processQueues();
if (irqReadQueue) { processQueues(); }
public synchronized final void handleInterrupt(int irq) { processQueues(); }
final void setMode(int mode) {
final void setMode(int mode) throws DeviceException {
final void setMode(int mode) { writeController(CCMD_WRITE_MODE); writeData(mode); }
private final void waitWrite() {
private final void waitWrite() throws DeviceException {
private final void waitWrite() { int count = 0; while (((readStatus() & STAT_IBF) != 0) && (count < 1000)) { count++; Thread.yield(); } }
while (((readStatus() & STAT_IBF) != 0) && (count < 1000)) { count++; Thread.yield();
while (count < 1000) { if ((readStatus() & STAT_IBF) == 0) { return; } else { count++; Thread.yield(); }
private final void waitWrite() { int count = 0; while (((readStatus() & STAT_IBF) != 0) && (count < 1000)) { count++; Thread.yield(); } }
throw new DeviceException("InputBuffer full");
private final void waitWrite() { int count = 0; while (((readStatus() & STAT_IBF) != 0) && (count < 1000)) { count++; Thread.yield(); } }
private void writeController(int b) {
private void writeController(int b) throws DeviceException {
private void writeController(int b) { waitWrite(); ioResCtrl.outPortByte(PS2_CTRL_PORT, b); }
private final void writeData(int b) {
private final void writeData(int b) throws DeviceException {
private final void writeData(int b) { waitWrite(); ioResData.outPortByte(PS2_DATA_PORT, b); }
log.info("Created initial context for " + s);
public Context getInitialContext(Hashtable environment) throws NamingException { String s = (String)environment.get(Constants.SERVER_INDEX_PROPERTY_NAME); if (s == null) { throw new IllegalArgumentException("Initial context environment must contain " + ...
return false;
return true;
public static boolean isFirstLetter(Context c, Node node, int start) { //u.p("looking at node: " + node); //u.p("start = " + start); if(start > 0) { return false; } if(node == null) { return false; } if(node.getParentNode().getFirstChild() != no...
private static void styleInlineBox(Context c, CalculatedStyle style, InlineBox box) {
public static void styleInlineBox(Context c, CalculatedStyle style, InlineBox box) {
private static void styleInlineBox(Context c, CalculatedStyle style, InlineBox box) { box.color = style.getColor(); TextDecoration.setupTextDecoration( style, box.node, box ); Font font = FontUtil.getFont( c, style, box.node); box.setFont( font ); box.width = FontUtil.len( c, box....
VerticalAlign.setupVerticalAlign( c, style, box );
private static void styleInlineBox(Context c, CalculatedStyle style, InlineBox box) { box.color = style.getColor(); TextDecoration.setupTextDecoration( style, box.node, box ); Font font = FontUtil.getFont( c, style, box.node); box.setFont( font ); box.width = FontUtil.len( c, box....
consumer.close();
public void testTemporaryQueueDeleted() throws Exception { //Make sure temporary queue cannot be used after it has been deleted TemporaryQueue tempQueue = producerSession.createTemporaryQueue(); MessageProducer producer = producerSession.createProducer(tempQueue); MessageConsu...
} String text_decoration = c.css.getStringProperty(el,"text-decoration"); if(text_decoration != null && text_decoration.equals("underline")) { box.underline = true; } if(text_decoration != null && text_decoration.equals("line-through")) { box.strikethrough = true; } if(text_decoration != null && text_decoration.equals(...
public static void setupTextDecoration(Context c, Node node, InlineBox box) { Element el = null; if(node instanceof Element) { el = (Element)node; } else { el = (Element)node.getParentNode(); } String text_decoration = c.css.getStringProperty(el,"text-decoration"); if(text_decoration != ...
String text_decoration = c.css.getStringProperty(el,"text-decoration"); if(text_decoration != null && text_decoration.equals("underline")) { box.underline = true; } if(text_decoration != null && text_decoration.equals("line-through")) { box.strikethrough = true; } if(text_decoration != null && text_decoration.eq...
public static void setupTextDecoration(Context c, Node node, InlineBox box) { Element el = null; if(node instanceof Element) { el = (Element)node; } else { el = (Element)node.getParentNode(); } String text_decoration = c.css.getStringProperty(el,"text-decoration"); if(text_decoration != ...
html.setDocument(file.toURL());
html.setDocument(file.toURL().toExternalForm());
private void switchPage(File file) { XRLog.load("Loading " + currentDisplayed); eezeFrame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); try { html.setDocument(file.toURL()); currentDisplayed = file; changeTitle(file.toURL().toString()); } cat...
if (root.getLastPage() == null) { return; }
private void paintPagedView(RenderingContext c, Layer root) { root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), root.getLastPage().getPaintingBottom() + PAGE_PAINTING_CLEARANCE))...
if (breakPoint == 0) return;
void determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on ...
if (count != numLines) { numLines = count; preferenceChanged(this, false, true); }
public void paint(Graphics g, Shape s) { Rectangle rect = s.getBounds(); int end = getEndOffset(); int currStart = getStartOffset(); int currEnd; while (currStart < end) { currEnd = calculateBreakPosition(currStart, end); drawLine(currStart, currEnd, g, rec...
if (a.isEmpty()) { numLines = 1; return; }
void updateDamage (Rectangle a) { int oldNumLines = numLines; determineNumLines(); if (numLines != oldNumLines) preferenceChanged(this, false, true); else getContainer().repaint(a.x, a.y, a.width, a.height); }
int end = getEndOffset() - 1;
int end = getEndOffset();
public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); // WrappedLine does not represent the last possible offset in a line. // So we should never return that offset. Behavior ...
while (true)
while (currLineStart != end)
public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); // WrappedLine does not represent the last possible offset in a line. // So we should never return that offset. Behavior ...
return Utilities.getTabbedTextOffset(s, metrics, rect.x,
int offset = Utilities.getTabbedTextOffset(s, metrics, rect.x,
public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); // WrappedLine does not represent the last possible offset in a line. // So we should never return that offset. Behavior ...
return end;
public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); // WrappedLine does not represent the last possible offset in a line. // So we should never return that offset. Behavior ...
Rectangle alloc = new Rectangle(0, 0, getWidth(), getHeight());
int li = getLeftInset(); int ti = getTopInset(); Rectangle alloc = new Rectangle(li, ti, getWidth()-getRightInset()-li, getHeight()-getBottomInset()-ti); if (alloc.isEmpty()) return 0;
protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); Rectangle alloc = new Rectangle(0, 0, getWidth(), getHeight()); updateMetrics(); try { getDocument().getText(p0, p1 - p0, getLineBuffer()); } catch (BadLocationException ble) { // ...
return p0 + Utilities.getBreakLocation(lineBuffer, metrics, alloc.x, alloc.x + alloc.width, this, 0);
return Utilities.getBreakLocation(lineBuffer, metrics, alloc.x, alloc.x + alloc.width, this, p0);
protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); Rectangle alloc = new Rectangle(0, 0, getWidth(), getHeight()); updateMetrics(); try { getDocument().getText(p0, p1 - p0, getLineBuffer()); } catch (BadLocationException ble) { // ...
overall.width -= PAGE_PAINTING_CLEARANCE + 1; overall.height -= PAGE_PAINTING_CLEARANCE + 1;
overall.width -= PAGE_PAINTING_CLEARANCE*2 - 1; overall.height -= PAGE_PAINTING_CLEARANCE*2 - 1;
private void paintPagedView(RenderingContext c, Layer root) { root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), root.getLastPage().getPaintingBottom() + PAGE_PAINTING_CLEARANCE))...
configuration.put(InvokerLocator.CLIENT_LEASE, "true");
protected Map getConfig() { Map configuration = new HashMap(); if (isMultiplex) { configuration.put(MultiplexServerInvoker.CLIENT_MULTIPLEX_ID_KEY, id); configuration.put(MultiplexServerInvoker.MULTIPLEX_BIND_HOST_KEY, thisAddress); configuration.put(MultiplexServerInvoker.MU...
public void redistTest(boolean persistent) throws Throwable
public void redistTest(boolean persistent, boolean recoverable) throws Throwable
public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ...
LocalClusteredQueue queue1 = new LocalClusteredQueue(office1, 1, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr);
LocalClusteredQueue queue1 = new LocalClusteredQueue(office1, 1, "queue1", channelIdManager.getId(), ms, pm, true, recoverable, (QueuedExecutor)pool.get(), null, tr);
public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ...
LocalClusteredQueue queue2 = new LocalClusteredQueue(office2, 2, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr);
LocalClusteredQueue queue2 = new LocalClusteredQueue(office2, 2, "queue1", channelIdManager.getId(), ms, pm, true, recoverable, (QueuedExecutor)pool.get(), null, tr);
public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ...
LocalClusteredQueue queue3 = new LocalClusteredQueue(office3, 3, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr);
LocalClusteredQueue queue3 = new LocalClusteredQueue(office3, 3, "queue1", channelIdManager.getId(), ms, pm, true, recoverable, (QueuedExecutor)pool.get(), null, tr);
public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ...
LocalClusteredQueue queue4 = new LocalClusteredQueue(office4, 4, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr);
LocalClusteredQueue queue4 = new LocalClusteredQueue(office4, 4, "queue1", channelIdManager.getId(), ms, pm, true, recoverable, (QueuedExecutor)pool.get(), null, tr);
public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ...
LocalClusteredQueue queue5 = new LocalClusteredQueue(office5, 5, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr);
LocalClusteredQueue queue5 = new LocalClusteredQueue(office5, 5, "queue1", channelIdManager.getId(), ms, pm, true, recoverable, (QueuedExecutor)pool.get(), null, tr);
public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ...
s += "&" + InvokerLocator.CLIENT_LEASE + "=true";
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { // We explicitly associate the datatype "jms" with the java SerializationManager // This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl...
public static void setupRelative(Context c, Box box) { String position = LayoutUtil.getPosition(c, box);
public static void setupRelative(Box box) { CalculatedStyle style = box.getContent().getStyle(); String position = LayoutUtil.getPosition(style);
public static void setupRelative(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("relative")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { box.left = -(int) c.css.getStyle(box.getNode()).getFloatPropertyRelative("righ...
if (c.css.getStyle(box.getNode()).hasProperty("right")) { box.left = -(int) c.css.getStyle(box.getNode()).getFloatPropertyRelative("right", 0);
if (style.hasProperty("right")) { box.left = -(int) style.getFloatPropertyRelative("right", 0);
public static void setupRelative(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("relative")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { box.left = -(int) c.css.getStyle(box.getNode()).getFloatPropertyRelative("righ...
if (c.css.getStyle(box.getNode()).hasProperty("bottom")) { box.top = -(int) c.css.getStyle(box.getNode()).getFloatPropertyRelative("bottom", 0);
if (style.hasProperty("bottom")) { box.top = -(int) style.getFloatPropertyRelative("bottom", 0);
public static void setupRelative(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("relative")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { box.left = -(int) c.css.getStyle(box.getNode()).getFloatPropertyRelative("righ...
if (c.css.getStyle(box.getNode()).hasProperty("top")) { box.top = (int) c.css.getStyle(box.getNode()).getFloatPropertyRelative("top", 0);
if (style.hasProperty("top")) { box.top = (int) style.getFloatPropertyRelative("top", 0);
public static void setupRelative(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("relative")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { box.left = -(int) c.css.getStyle(box.getNode()).getFloatPropertyRelative("righ...
if (c.css.getStyle(box.getNode()).hasProperty("left")) { box.left = (int) c.css.getStyle(box.getNode()).getFloatPropertyRelative("left", 0);
if (style.hasProperty("left")) { box.left = (int) style.getFloatPropertyRelative("left", 0);
public static void setupRelative(Context c, Box box) { String position = LayoutUtil.getPosition(c, box); if (position.equals("relative")) { if (c.css.getStyle(box.getNode()).hasProperty("right")) { box.left = -(int) c.css.getStyle(box.getNode()).getFloatPropertyRelative("righ...
ContextManager.getInstance().init(); this.configClazz = configClazz;
init(configClazz, null); log = null;
public AbstractTest(Class configClazz) { super(); ContextManager.getInstance().init(); this.configClazz = configClazz; }
synchronized (deliveryLock)
if (iter == null)
protected void deliverInternal() { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; while (true) ...
ref = (MessageReference) messageRefs.peekFirst();
removeFirstInMemory();
protected void deliverInternal() { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; while (true) ...
if (iter.hasNext()) { ref = (MessageReference)iter.next(); } else
iter.remove(); } Delivery delivery = new SimpleDelivery(this, ref, true); acknowledgeInternal(delivery); } else { Delivery del = push(ref); if (del == null) { if (trace) { log.trace(this + ": no delivery returned for message" + ref + " so no receiver got the message"); log.trace("Delivery is now complete"); } ...
protected void deliverInternal() { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; while (true) ...
ref = null; }
iter = messageRefs.iterator(); }
protected void deliverInternal() { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; while (true) ...
if (ref != null)
else
protected void deliverInternal() { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; while (true) ...
if (ref.isExpired())
if (trace) { log.trace(this + ": " + del + " returned for message:" + ref); } synchronized (del)
protected void deliverInternal() { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; while (true) ...
if (trace) { log.trace("Message reference: " + ref + " has expired"); } if (iter == null)
if (trace) { log.trace(this + " incrementing delivery count for " + del); } del.getReference().incrementDeliveryCount(); if (!del.isCancelled())
protected void deliverInternal() { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; while (true) ...
removeFirstInMemory(); } else { iter.remove(); } Delivery delivery = new SimpleDelivery(this, ref, true); acknowledgeInternal(delivery); } else { Delivery del = push(ref); if (del == null) { if (trace) { log.trace(this + ": no delivery returned for message" + ref + " so no receiver got the message"); log.trace...
protected void deliverInternal() { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; while (true) ...
iter = messageRefs.iterator(); } } else { if (trace) { log.trace(this + ": " + del + " returned for message:" + ref); } synchronized (del)
removeFirstInMemory(); } else
protected void deliverInternal() { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; while (true) ...
if (trace) { log.trace(this + " incrementing delivery count for " + del); } del.getReference().incrementDeliveryCount(); if (!del.isCancelled())
iter.remove(); } if (!del.isDone()) { synchronized (deliveryLock)
protected void deliverInternal() { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; while (true) ...
if (iter == null) { removeFirstInMemory(); } else { iter.remove(); } if (!del.isDone()) { deliveries.add(del); }
deliveries.add(del);
protected void deliverInternal() { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; while (true) ...
else { if (trace) { log.trace(this + " no more refs to deliver "); } break; }
protected void deliverInternal() { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; while (true) ...
} else { if (trace) { log.trace(this + " no more refs to deliver "); } break;
protected void deliverInternal() { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; while (true) ...
throw new JBossJMSException("Message " + messageID +
throw new MessagingJMSException("Message " + messageID +
void acknowledge(long messageID, Transaction tx) throws JMSException { if (trace) { log.trace("acknowledging " + messageID); } SingleReceiverDelivery d = null; if (tx == null) { // No transaction so we remove the delivery now d = (SingleReceiverDelivery)deliveries.re...
throw new JBossJMSException("Failed to acknowledge deliveries", t);
throw new MessagingJMSException("Failed to acknowledge deliveries", t);
void acknowledgeAll() throws JMSException { // acknowledge all "pending" deliveries, except the ones correspoding to messages rejected // by selector, which are cancelled try { for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelive...
throw new JBossJMSException("Failed to cancel delivery", t);
throw new MessagingJMSException("Failed to cancel delivery", t);
void remove() throws JMSException { if (trace) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try { ...
if (getNode() == null) {
if (this.node == null) {
public Element getRealElement() { if (isElement()) { return getElement(); } if (getNode() == null) { return null; } return (Element) getNode().getParentNode(); }
if (getNode() == null) {
if(this.node == null) {
public boolean isElement() { if (getNode() == null) { return false; } if (getNode().getNodeType() == getNode().ELEMENT_NODE) { return true; } return false; }