rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public byte[] getEncodedValue();
byte[] getEncodedValue();
public byte[] getEncodedValue();
if (trace) { log.trace(this + " adding " + ref + " non-transactionally"); }
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (trace) { log.trace(this + " adding " + ref + " non-transactionally"); } if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + ...
if (trace) { log.trace(this + " added " + ref + " in memory"); }
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (trace) { log.trace(this + " adding " + ref + " non-transactionally"); } if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + ...
if (trace) { log.trace(this + " added " + ref + " non-transactionally in memory"); }
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (trace) { log.trace(this + " adding " + ref + " non-transactionally"); } if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + ...
if (trace) { log.trace(this + " going into paging mode"); }
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (trace) { log.trace(this + " adding " + ref + " non-transactionally"); } if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + ...
if (trace) { log.trace(this + "'s downcache is full (" + downCache.size() + " messages)"); }
protected void addToDownCache(MessageReference ref) throws Exception { //Non reliable refs can be cached in a down cache and then flushed to storage //in blocks downCache.add(ref); if (downCache.size() == downCacheSize) { flushDownCache(); } }
if (trace) { log.trace(this + " cleared downcache"); }
protected void flushDownCache() throws Exception { pm.addReferences(channel.getChannelID(), downCache); downCache.clear(); }
MessageReference result = (MessageReference)messageRefs.peekFirst(); return result;
return (MessageReference)messageRefs.peekFirst();
public MessageReference peekFirst() throws Throwable { synchronized (refLock) { MessageReference result = (MessageReference)messageRefs.peekFirst(); return result; } }
colModel.setLeadSelectionIndex(colLead);
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ...
rowModel.setSelectionInterval(rowLead, rowLead);
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ...
rowModel.setLeadSelectionIndex(rowLead);
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ...
colModel.setSelectionInterval(colLead, colLead);
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ...
table.repaint();
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ...
DefaultCaret.this.setDot(dot);
DefaultCaret.this.setDotImpl(dot);
public void setDot(int dot, Bias bias) { DefaultCaret.this.setDot(dot); }
status.setIndeterminate(false);
public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation() == null) { JOptionPane.showMessageDialog((Component)e.getSource(), ResourceManager.getString("error.save.unsavedspace"), ResourceManager.getString("title.warning"), JOptionPane.WARNING_MESSAGE); return; } ImportWorkf...
public java.io.Reader getDefaultStylesheet() { java.io.Reader reader = null;
public InputStream getDefaultStylesheet() { InputStream stream = null;
public java.io.Reader getDefaultStylesheet() { java.io.Reader reader = null; try { //TODO: weakness: if no configuration found, it bombs out. Should we be so reliable on correct config? Maybe a warning will do? String defaultStyleSheetLocation = Configuration.valueFor("xr.css.use...
reader = new java.io.InputStreamReader(this.getClass().getResource(defaultStyleSheetLocation).openStream());
stream = this.getClass().getResource(defaultStyleSheetLocation).openStream();
public java.io.Reader getDefaultStylesheet() { java.io.Reader reader = null; try { //TODO: weakness: if no configuration found, it bombs out. Should we be so reliable on correct config? Maybe a warning will do? String defaultStyleSheetLocation = Configuration.valueFor("xr.css.use...
return reader;
return stream;
public java.io.Reader getDefaultStylesheet() { java.io.Reader reader = null; try { //TODO: weakness: if no configuration found, it bombs out. Should we be so reliable on correct config? Maybe a warning will do? String defaultStyleSheetLocation = Configuration.valueFor("xr.css.use...
public void reloadPage() throws Exception {
public void reloadPage() {
public void reloadPage() throws Exception { logger.info("Reloading Page: "); if (manager.getBaseURL() != null) { loadPage(manager.getBaseURL()); } }
log.warn(msg);
log.warn(msg, e);
protected void cancelMessage(Message m) { try { consumerDelegate.cancelMessage(m.getJMSMessageID()); } catch (Exception e) { //It may be ok that we cannot cancel the message - e.g. //if the corresponding server consumer delegate is already closed //in which ...
cancelMessage(m);
if (!closed) { cancelMessage(m); }
public void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } synchronized (closedLock) { Message m = (Message)callback.getParameter(); ...
u.p("created a button");
public JComponent createComponent(Element elem) { u.p("created a button"); JButton comp = new JButton(); String label = elem.getAttribute("value"); comp.setText(label); return comp; }
public void read(long devOffset, ByteBuffer dest) throws IOException { if (dest.remaining() == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (dest.remaining() % alignment); if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { final ByteBuffer buf = ByteBuffer.allocate((...
public void read(long offset, ByteBuffer dst) throws IOException { final int length = dst.remaining(); if (length == 0) return; final int ofsR = (int) (offset % alignment); final int lenR = (int) (length % alignment); if ((ofsR != 0) || (lenR != 0)) { final int buflen = alignment + (length - lenR); ByteBuf...
public void read(long devOffset, ByteBuffer dest) throws IOException { //log.info("Original: devOffset="+ devOffset + " destOffset=" + destOffset + " length=" + length); //log.info("Original: alignment=" + alignment); if (dest.remaining() == 0) { return; } final int ofsMisAlign = (int)(devOffset % ali...
public void write(long devOffset, ByteBuffer src) throws IOException { if (src.remaining() == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (src.remaining() % alignment); if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { log.warn("Very expensive misaligned write called!")...
public void write(long offset, ByteBuffer src) throws IOException { int length = src.remaining(); if (length == 0) return; final int ofsR = (int) (offset % alignment); final int lenR = (int) (length % alignment); if ((ofsR != 0) || (lenR != 0)) { final int buflen = alignment + (length - lenR); ByteBuffer b...
public void write(long devOffset, ByteBuffer src) throws IOException { if (src.remaining() == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (src.remaining() % alignment); if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { log.warn("Very expensive misaligned wr...
parentApi.write(devOffset - ofsMisAlign, buf); } else { parentApi.write(devOffset, src); } }
parentApi.write(offset - ofsR, buf); } else { parentApi.write(offset, src); } }
public void write(long devOffset, ByteBuffer src) throws IOException { if (src.remaining() == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (src.remaining() % alignment); if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { log.warn("Very expensive misaligned wr...
BorderPainter.paint(bounds, BorderPainter.ALL, c.getCurrentStyle(), c.getGraphics(), c.getCtx());
BorderPainter.paint(bounds, BorderPainter.ALL, c.getCurrentStyle(), c.getGraphics(), c.getCtx(), 0);
public static void paintNormal(Context c, Box block, boolean restyle) { paintBackground(c, block); c.translateInsets(block); if (block instanceof TableBox) { TableRendering.paintTable(c, (TableBox) block, restyle); } else if (isInlineLayedOut(block)) { InlineRenderi...
Font.createFont(Font.TRUETYPE_FONT, new URL("file:
Font.createFont(Font.TRUETYPE_FONT, fontFile.toURL().openStream()));
private void run(String args[]) { buildFrame(); directory = args[0]; SwingUtilities.invokeLater(new Runnable() { public void run() { try { html.getRenderingContext().setFontMapping("Ahem", Font.createFont(Font.TRUETYPE_FONT...
Font.createFont(Font.TRUETYPE_FONT, new URL("file:
Font.createFont(Font.TRUETYPE_FONT, fontFile.toURL().openStream()));
public void run() { try { html.getRenderingContext().setFontMapping("Ahem", Font.createFont(Font.TRUETYPE_FONT, new URL("file://" + directory + "/support/AHEM____.TTF").openStream())); } catch (FontFormatException e) { ...
} catch (TargetError targetError) { if (targetError.getTarget() instanceof WorkflowException) { throw (WorkflowException) targetError.getTarget(); } else { String message = "Could not execute BeanShell script"; throw new WorkflowException(message, targetError.getTarget()); }
public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws WorkflowException { String script = (String) args.get(AbstractWorkflow.BSH_SCRIPT); WorkflowContext context = (WorkflowContext) transientVars.get("context"); WorkflowEntry entry = (WorkflowEntry) transientVars.ge...
ManageableTopic t = (ManageableTopic)cm.getCoreDestination(jbt); return t.getMessagesFromDurableSub(name, clientID, trimSelector(selector));
org.jboss.messaging.core.local.Topic t = (org.jboss.messaging.core.local.Topic)cm.getCoreDestination(jbt); return getMessagesFromDurableSub(t, name, clientID, trimSelector(selector));
public List listMessagesDurableSub(String name, String clientID, String selector) throws JMSException { if (!started) { log.warn("Topic is stopped."); return new ArrayList(); } JBossTopic jbt = new JBossTopic(this.name); ManageableTopic t = (ManageableTopic)cm.getCoreD...
ManageableTopic t = (ManageableTopic)cm.getCoreDestination(jbt); return t.getMessagesFromNonDurableSub(channelID, trimSelector(selector));
org.jboss.messaging.core.local.Topic t = (org.jboss.messaging.core.local.Topic)cm.getCoreDestination(jbt); return getMessagesFromNonDurableSub(t, channelID, trimSelector(selector));
public List listMessagesNonDurableSub(long channelID, String selector) throws JMSException { if (!started) { log.warn("Topic is stopped."); return new ArrayList(); } JBossTopic jbt = new JBossTopic(this.name); ManageableTopic t = (ManageableTopic)cm.getCoreDestin...
ManageableTopic t = (ManageableTopic)cm.getCoreDestination(jbt); return t.getSubscriptionsAsText(true) + t.getSubscriptionsAsText(false);
org.jboss.messaging.core.local.Topic t = (org.jboss.messaging.core.local.Topic)cm.getCoreDestination(jbt); return getSubscriptionsAsText(t, true) + getSubscriptionsAsText(t, false);
public String listSubscriptionsAsText() throws JMSException { if (!started) { log.warn("Topic is stopped."); return ""; } JBossTopic jbt = new JBossTopic(name); ManageableTopic t = (ManageableTopic)cm.getCoreDestination(jbt); return t.getSubscriptionsAsText(true) + t.g...
ManageableTopic t = (ManageableTopic)cm.getCoreDestination(jbt); t.removeAllMessages();
org.jboss.messaging.core.local.Topic t = (org.jboss.messaging.core.local.Topic)cm.getCoreDestination(jbt); Iterator iter = t.iterator(); while (iter.hasNext()) { Object sub = iter.next(); ((Subscription)sub).removeAllMessages(); }
public void removeAllMessages() throws JMSException { if (!started) { log.warn("Topic is stopped."); return; } JBossTopic jbt = new JBossTopic(name); ManageableTopic t = (ManageableTopic)cm.getCoreDestination(jbt); t.removeAllMessages(); }
ManageableTopic t = (ManageableTopic)cm.getCoreDestination(jbt); return t.subscriptionCount();
org.jboss.messaging.core.local.Topic t = (org.jboss.messaging.core.local.Topic)cm.getCoreDestination(jbt); int count = 0; Iterator iter = t.iterator(); while (iter.hasNext()) { count++; iter.next(); } return count;
public int subscriptionCount() throws JMSException { if (!started) { log.warn("Topic is stopped."); return 0; } JBossTopic jbt = new JBossTopic(name); ManageableTopic t = (ManageableTopic)cm.getCoreDestination(jbt); return t.subscriptionCount(); }
if (category == null) throw new NullPointerException("category may not be null");
public Attribute get(Class category) { return (Attribute) attributeMap.get(category); }
return attributeMap.hashCode() + interfaceName.hashCode();
int hashcode = 0; Iterator it = attributeMap.values().iterator(); while (it.hasNext()) hashcode = hashcode + it.next().hashCode(); return hashcode;
public int hashCode() { return attributeMap.hashCode() + interfaceName.hashCode(); }
Iterator it = attributeMap.entrySet().iterator();
Iterator it = attributeMap.values().iterator();
public Attribute[] toArray() { int index = 0; Iterator it = attributeMap.entrySet().iterator(); Attribute[] array = new Attribute[size()]; while (it.hasNext()) { array[index] = (Attribute) it.next(); index++; } return array; }
rectCache.setBounds(x, y, width, height +y_gap);
rect.setBounds(x, y, width, height +y_gap);
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { // moveToCellBeingEdited expects the cached value and clones it. // If the caching would be removed later, uplate moveToCellBeingEdited // as well. int height = getRowHe...
rectCache.setBounds(x, y, width - x_gap, height); return rectCache;
rect.setBounds(x, y, width - x_gap, height); return rect;
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { // moveToCellBeingEdited expects the cached value and clones it. // If the caching would be removed later, uplate moveToCellBeingEdited // as well. int height = getRowHe...
component.setBounds(new Rectangle(r));
component.setBounds(r);
private void moveToCellBeingEdited(Component component) { Rectangle r = getCellRect(editingRow, editingColumn, true); // Clone rectangle as getCellRect returns the cached value. component.setBounds(new Rectangle(r)); }
log.error("Delivery count not expected value");
log.error("Delivery count not expected value:" + j + " actual:" + tm.getIntProperty("JMSXDeliveryCount"));;
public void run() { try { //log.info("in run(), numr=" + numRecoveries + " numMesages:" +numMessages); Message lastMessage = null; for (int j = 0; j < numRecoveries; j++) { for (int i = 0; i < numMessages; i++) ...
final int NUM_MESSAGES = 10;
final int NUM_MESSAGES = 1000;
public void testRedeliveryOnQueue() throws Exception { Connection conn = cf.createConnection(); Session sess1 = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createProducer(queue); prod.setDeliveryMode(DeliveryMode.NON_PERSISTENT); ...
final int NUM_MESSAGES = 30;
final int NUM_MESSAGES = 300;
public void testRedeliveryOnTopic() throws Exception { Connection conn = cf.createConnection(); conn.setClientID("myclientid"); Session sess1 = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons1 = sess1.createConsumer(topic); Session sess2 = conn...
block.adjustWidthForChild(childBox.getWidth());
public static void layoutContent(final LayoutContext c, final BlockBox block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle(...
block.adjustWidthForChild(childBox.getWidth());
private static void relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { block.height = relayoutDataList.get(start).getInitialParentHeight(); block.expandToPa...
{ AbstractButton b = (AbstractButton)c; Dimension d = BasicGraphicsUtils.getPreferredSize(b, gap, b.getText(), b.getIcon(), b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getHorizontalTextPosition(), b.getVerticalTextPosition()); return d; }
{ AbstractButton b = (AbstractButton)c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize (b, defaultTextIconGap + defaultTextShiftOffset); return d; }
public Dimension getPreferredSize(JComponent c) { AbstractButton b = (AbstractButton)c; Dimension d = BasicGraphicsUtils.getPreferredSize(b, gap, b.getText(), b.getIcon(), b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getHorizontalTextPosition(), ...
{ super.installUI(c); textColor = new Color(0,0,0); disabledTextColor = new Color(130, 130, 130); pressedBackgroundColor = new Color(150,150,150); pressedBackgroundColor = new Color(150,150,150); normalBackgroundColor = new Color(192,192,192); }
{ super.installUI(c); if (c instanceof AbstractButton) { AbstractButton b = (AbstractButton) c; installDefaults(b); installListeners(b); installKeyboardActions(b); } }
public void installUI(final JComponent c) { super.installUI(c); textColor = new Color(0,0,0); disabledTextColor = new Color(130, 130, 130); pressedBackgroundColor = new Color(150,150,150); pressedBackgroundColor = new Color(150,150,150); normalBackgroundColor = new Color(192,192,192...
protected void paintButtonNormal(Graphics g, JComponent b) { Dimension size = b.getSize(); g.setColor(normalBackgroundColor); g.fillRect(1,1,size.width-2, size.height-2); }
protected void paintButtonNormal(Graphics g, Rectangle area, JComponent b) { if (((AbstractButton)b).isContentAreaFilled()) { g.setColor(b.getBackground()); g.fillRect(area.x, area.y, area.width, area.height); } }
protected void paintButtonNormal(Graphics g, JComponent b) { Dimension size = b.getSize(); g.setColor(normalBackgroundColor); g.fillRect(1,1,size.width-2, size.height-2); }
protected void paintButtonPressed(Graphics g, JComponent b) { Dimension size = b.getSize(); g.setColor(pressedBackgroundColor); g.fillRect(1,1,size.width-2, size.height-2); }
protected void paintButtonPressed(Graphics g, Rectangle area, JComponent b) { if (((AbstractButton)b).isContentAreaFilled()) { g.setColor(b.getBackground().darker()); g.fillRect(area.x, area.y, area.width, area.height); } }
protected void paintButtonPressed(Graphics g, JComponent b) { Dimension size = b.getSize(); g.setColor(pressedBackgroundColor); g.fillRect(1,1,size.width-2, size.height-2); }
protected void paintFocus(Graphics g, JComponent c, Rectangle vr, Rectangle tr, Rectangle ir) { }
protected void paintFocus(Graphics g, JComponent c, Rectangle vr, Rectangle tr, Rectangle ir) { AbstractButton b = (AbstractButton) c; if (b.hasFocus() && b.isFocusPainted()) { Graphics2D g2 = (Graphics2D) g; Stroke saved_stroke = g2.getStroke(); Color saved_color = g2.getColor(); float dashes[] = new float[] {1.0f, 1....
protected void paintFocus(Graphics g, JComponent c, Rectangle vr, Rectangle tr, Rectangle ir) { }
protected void paintIcon(Graphics g, JComponent c, Rectangle iconRect) { AbstractButton b = (AbstractButton) c; if (b.getIcon() != null) { int x = iconRect.x; int y = iconRect.y;
protected void paintIcon(Graphics g, JComponent c, Rectangle iconRect) { AbstractButton b = (AbstractButton) c; Icon i = currentIcon(b);
protected void paintIcon(Graphics g, JComponent c, Rectangle iconRect) { AbstractButton b = (AbstractButton) c; if (b.getIcon() != null) { int x = iconRect.x; int y = iconRect.y; System.out.println("WE HAVE AN ICON: " + b.getIcon()); b.getIcon().paintIcon(c, g, x, y); } else { /...
System.out.println("WE HAVE AN ICON: " + b.getIcon()); b.getIcon().paintIcon(c, g, x, y); } else { } }
if (i != null) { int x = iconRect.x; int y = iconRect.y; i.paintIcon(c, g, x, y); } }
protected void paintIcon(Graphics g, JComponent c, Rectangle iconRect) { AbstractButton b = (AbstractButton) c; if (b.getIcon() != null) { int x = iconRect.x; int y = iconRect.y; System.out.println("WE HAVE AN ICON: " + b.getIcon()); b.getIcon().paintIcon(c, g, x, y); } else { /...
protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text) { Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); g.setColor(c.isEnabled() ? textColor : disabledTextColor); BasicGraphicsUtils.drawString(g, text, 0, textRect.x, textRect.y + fm.getAscent()/2)...
protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text) { Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); g.setColor(c.getForeground()); BasicGraphicsUtils.drawString(g, text, 0, textRect.x, textRect.y + fm.getAscent()); }
protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text) { Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); g.setColor(c.isEnabled() ? textColor : disabledTextColor); BasicGraphicsUtils.drawString(g, te...
SerializationStreamFactory.setManagerClassName("jms", "org.jboss.jms.server.remoting.JMSSerializationManager");
SerializationStreamFactory.setManagerClassName("jms", "org.jboss.remoting.serialization.impl.jboss.JBossSerializationManager");
private synchronized void checkMarshallers() { if (checked) { return; } //We explicitly associate the datatype "jms" with our customer SerializationManager //This is vital for performance reasons. try { SerializationStreamFactory.setManagerClassName("jms", "...
if (LayoutUtil.isBlockLayout(box.getElement(), c)) {
if (box instanceof BlockBox) {
public void paintChildren(Context c, Box box) { if (box.isAnonymous()) { return; } //TODO: wouldn't the box itself know if it was block layout? if (LayoutUtil.isBlockLayout(box.getElement(), c)) { super.paintChildren(c, box); } }
if (LayoutUtil.isBlockLayout(box.getElement(), c)) {
if (box.getContent() != null && !(box.getContent() instanceof TextContent)) {
public void paintComponent(Context c, Box box) { if (box.isAnonymous()) { paintInlineContext(c, box); return; } //TODO: wouldn't the box itself know if it contained a block layout? if (LayoutUtil.isBlockLayout(box.getElement(), c)) { super.paintComponent(...
if (child.hasNode()) { Layout lt = ctx.getLayout(child.getRealElement());
if (child.hasContent()) { Layout lt = ctx.getLayout(child.getContent().getElement());
private void restyleChildren(Context ctx, Box box) { for (int i = 0; i < box.getChildCount(); i++) { Box child = box.getChild(i); if (child.hasNode()) { Layout lt = ctx.getLayout(child.getRealElement()); if (lt instanceof InlineLayout) { ...
assertFalse(this.canWriteDestination(conn, testTopic));
assertFalse(canWriteDestination(conn, testTopic));
public void testInvalidTopicPublisher() throws Exception { Connection conn = null; try { conn = cf.createConnection("nobody", "nobody"); assertFalse(this.canWriteDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } }
if (conn != null) conn.close();
if (conn != null) { conn.close(); }
public void testInvalidTopicPublisher() throws Exception { Connection conn = null; try { conn = cf.createConnection("nobody", "nobody"); assertFalse(this.canWriteDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } }
assertFalse(this.canReadDestination(conn, testTopic));
assertFalse(canReadDestination(conn, testTopic));
public void testInvalidTopicSubscriber() throws Exception { Connection conn = null; try { conn = cf.createConnection("nobody", "nobody"); assertFalse(this.canReadDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } }
assertTrue(this.canWriteDestination(conn, testTopic));
assertTrue(canWriteDestination(conn, testTopic));
public void testValidTopicPublisher() throws Exception { Connection conn = null; try { conn = cf.createConnection("john", "needle"); assertTrue(this.canWriteDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } }
if (conn != null) conn.close();
if (conn != null) { conn.close(); }
public void testValidTopicPublisher() throws Exception { Connection conn = null; try { conn = cf.createConnection("john", "needle"); assertTrue(this.canWriteDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } }
assertTrue(this.canReadDestination(conn, testTopic));
assertTrue(canReadDestination(conn, testTopic));
public void testValidTopicSubscriber() throws Exception { Connection conn = null; try { conn = cf.createConnection("john", "needle"); assertTrue(this.canReadDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } }
if (conn != null) conn.close();
if (conn != null) { conn.close(); }
public void testValidTopicSubscriber() throws Exception { Connection conn = null; try { conn = cf.createConnection("john", "needle"); assertTrue(this.canReadDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } }
VerticalAlign.setupVerticalAlign(c, style, box);
public static void prepBox(Context c, InlineTextBox box, InlineBox prev_align, Font font) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line if...
Message message = reference.getMessage(); message.setDeliveryCount(reference.getDeliveryCount());
JBossMessage message = (JBossMessage)reference.getMessage();
public synchronized 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 (...
if (log.isTraceEnabled()) { log.trace("queueing message " + message + " for delivery to client"); } threadPool.execute(new DeliveryRunnable(callbackHandler, message));
if (log.isTraceEnabled()) { log.trace("queueing message " + message + " for delivery to client"); } threadPool.execute(new DeliveryRunnable(callbackHandler, md));
public synchronized 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 (...
toGrab = message;
toGrab = md;
public synchronized 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 (...
Message getMessageNow() throws JMSException;
Message getMessageNow(boolean wait) throws JMSException;
Message getMessageNow() throws JMSException;
b.setRolloverEnabled(UIManager.getBoolean(prefix + "rollover"));
protected void installDefaults(AbstractButton b) { String prefix = getPropertyPrefix(); LookAndFeel.installColorsAndFont(b, prefix + "background", prefix + "foreground", prefix + "font"); LookAndFeel.installBorder(b, prefix + "border"); b.setMargin(UIManager.getInsets(...
void addAsfMessage(Message m, String consumerID, ConsumerDelegate cons);
void addAsfMessage(Message m, int consumerID, ConsumerDelegate cons);
void addAsfMessage(Message m, String consumerID, ConsumerDelegate cons);
void postDeliver(String messageID, String receiverID) throws JMSException;
void postDeliver(String messageID, int receiverID) throws JMSException;
void postDeliver(String messageID, String receiverID) throws JMSException;
void preDeliver(String messageID, String receiverID) throws JMSException;
void preDeliver(String messageID, int receiverID) throws JMSException;
void preDeliver(String messageID, String receiverID) throws JMSException;
ServerConsumerEndpoint(int id, Channel channel, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException
protected ServerConsumerEndpoint(int id, Channel channel, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException
ServerConsumerEndpoint(int id, Channel channel, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + id + "]"); this.id = id; this.channel = channel; this.sessionEndpoint...
this.started = sessionEndpoint.connectionEndpoint.started; this.channel.add(this);
this.started = this.sessionEndpoint.getConnectionEndpoint().isStarted(); this.channel.add(this);
ServerConsumerEndpoint(int id, Channel channel, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + id + "]"); this.id = id; this.channel = channel; this.sessionEndpoint...
if (trace) { log.trace("current connection connection id: " + sessionEndpoint.connectionEndpoint.connectionID); } accept = conId != sessionEndpoint.connectionEndpoint.connectionID;
if (trace) { log.trace("current connection connection id: " + sessionEndpoint.getConnectionEndpoint().getConnectionID()); } accept = conId != sessionEndpoint.getConnectionEndpoint().getConnectionID();
public boolean accept(Routable r) { boolean accept = true; if (messageSelector != null) { accept = messageSelector.accept(r); if (trace) { log.trace("message selector " + (accept ? "accepts " : "DOES NOT accept ") + "the message"); } } if (accept) { ...
threadPoolDelegate.execute(new DeliveryRunnable(md, sessionEndpoint.connectionEndpoint.getCallbackClient(), id, trace));
threadPoolDelegate.execute(new DeliveryRunnable(md, id, sessionEndpoint.getConnectionEndpoint(), trace));
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (trace) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); } if (!isReady()) { if (trace) { log.trace(this + " rejects " + Util.guidToString(ref...
this.sessionEndpoint.connectionEndpoint.consumers.remove(new Integer(id));
this.sessionEndpoint.getConnectionEndpoint().removeConsumerDelegate(id);
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 { ...
this.sessionEndpoint.consumers.remove(new Integer(id));
this.sessionEndpoint.removeConsumerDelegate(id);
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 { ...
public static void prepBox( Context c, InlineTextBox box, InlineBox prev_align, Font font ) {
public static void prepBox(Context c, InlineTextBox box, InlineBox prev_align) {
public static void prepBox( Context c, InlineTextBox box, InlineBox prev_align, Font font ) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line ...
CalculatedStyle style = c.getCurrentStyle();
public static void prepBox( Context c, InlineTextBox box, InlineBox prev_align, Font font ) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line ...
box.width += box.totalHorizontalPadding( c.getCurrentStyle() );
public static void prepBox( Context c, InlineTextBox box, InlineBox prev_align, Font font ) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line ...
stmt.setTimestamp(7, new Timestamp(step.getFinishDate().getTime()));
if (step.getFinishDate() != null) { stmt.setTimestamp(7, new Timestamp(step.getFinishDate().getTime())); } else { stmt.setNull(7, Types.TIMESTAMP); }
public void moveToHistory(Step step) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO " + historyTable + " (" + stepId + "," + stepEntryId + ", " + stepStepId + ", " + stepActionId + ", "...
sb.append(subordinateID).append(":");
sb.append(Util.guidToString((String)subordinateID)).append(":");
public static String subordinateToString(Serializable category, Serializable subordinateID, Address address) { StringBuffer sb = new StringBuffer(); sb.append(category).append(":"); sb.append(subordinateID).append(":"); sb.append(address); r...
Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload");
Message m = MessageFactory.createMessage("message0", false, 777l, 888l, (byte)9, headers, "payload");
public void testNonRecoverableMessageStore_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non...
Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload");
Message m = MessageFactory.createMessage("message0", false, 777l, 888l, (byte)9, headers, "payload");
public void testNonRecoverableMessageStore_1_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, n...
createMessage("message" + i, false, 700 + i, 800 + i, i % 10, headers, "payload" + i);
createMessage("message" + i, false, 700 + i, 800 + i, (byte)(i % 10), headers, "payload" + i);
public void testNonRecoverableMessageStore_2() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(i...
Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload");
Message m = MessageFactory.createMessage("message0", true, 777l, 888l, (byte)9, headers, "payload");
public void testNonRecoverableMessageStore_3() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (ms.acceptReliableMessages()) { // we only test message stores that do not accept reliable message return;...
Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload");
Message m = MessageFactory.createMessage("message0", false, 777l, 888l, (byte)9, headers, "payload");
public void testNonRecoverableMessageStore_4() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
createMessage("message" + i, false, 700 + i, 800 + i, i % 10, headers, "payload" + i);
createMessage("message" + i, false, 700 + i, 800 + i, (byte)(i % 10), headers, "payload" + i);
public void testNonRecoverableMessageStore_5() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload");
Message m = MessageFactory.createMessage("message0", false, 777l, 888l, (byte)9, headers, "payload");
public void testNonRecoverableMessageStore_6() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload");
Message m = MessageFactory.createMessage("message0", false, 777l, 888l, (byte)9, headers, "payload");
public void testNonRecoverableMessageStore_7() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload");
Message m = MessageFactory.createMessage("message0", false, 777l, 888l, (byte)9, headers, "payload");
public void testRecoverableMessageStore_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable ...
Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload");
Message m = MessageFactory.createMessage("message0", false, 777l, 888l, (byte)9, headers, "payload");
public void testRecoverableMessageStore_1_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliabl...
createMessage("message" + i, false, 700 + i, 800 + i, i % 10, headers, "payload" + i);
createMessage("message" + i, false, 700 + i, 800 + i, (byte)(i % 10), headers, "payload" + i);
public void testRecoverableMessageStore_2() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =...
Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload");
Message m = MessageFactory.createMessage("message0", true, 777l, 888l, (byte)9, headers, "payload");
public void testRecoverableMessageStore_3() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable m...
Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload");
Message m = MessageFactory.createMessage("message0", true, 777l, 888l, (byte)9, headers, "payload");
public void testRecoverableMessageStore_3_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable...
createMessage("message" + i, true, 700 + i, 800 + i, i % 10, headers, "payload" + i);
createMessage("message" + i, true, 700 + i, 800 + i, (byte)(i % 10), headers, "payload" + i);
public void testRecoverableMessageStore_4() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =...
Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload");
Message m = MessageFactory.createMessage("message0", true, 777l, 888l, (byte)9, headers, "payload");
public void testRecoverableMessageStore_6() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non-reliab...
Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload");
Message m = MessageFactory.createMessage("message0", true, 777l, 888l, (byte)9, headers, "payload");
public void testRecoverableMessageStore_7() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non-reliab...