rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
JobTimings[] results = runJobs(new Job[] {receiver, sender});
JobResult[] results = runJobs(new Job[] {receiver, sender}); if (!checkResults(results, "Topic10")) { return; }
public void testTopic10() { log.info("Running test Topic10"); warmupDestination(topicName, standardMessageSize, true, DeliveryMode.PERSISTENT, Session.SESSION_TRANSACTED); //First drain the durable subscription DrainJob drainJob = createDefaultDrainJob(topicName); drainJo...
long totalTimeTaken = results[0].getTestTime() + results[0].getInitTime() - results[1].getInitTime();
long totalTimeTaken = results[0].testTime + results[0].initTime - results[1].initTime;
public void testTopic10() { log.info("Running test Topic10"); warmupDestination(topicName, standardMessageSize, true, DeliveryMode.PERSISTENT, Session.SESSION_TRANSACTED); //First drain the durable subscription DrainJob drainJob = createDefaultDrainJob(topicName); drainJo...
warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.AUTO_ACKNOWLEDGE);
public void testTopic2() { log.info("Running test Topic2"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.AUTO_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.setMsg...
JobTimings[] results = runJobs(new Job[] {receiver, sender});
JobResult[] results = runJobs(new Job[] {receiver, sender}); if (!checkResults(results, "Topic2")) { return; }
public void testTopic2() { log.info("Running test Topic2"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.AUTO_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.setMsg...
long totalTimeTaken = results[0].getTestTime() + results[0].getInitTime() - results[1].getInitTime();
long totalTimeTaken = results[0].testTime + results[0].initTime - results[1].initTime;
public void testTopic2() { log.info("Running test Topic2"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.AUTO_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.setMsg...
warmupDestination(topicName, standardMessageSize, true, DeliveryMode.NON_PERSISTENT, Session.SESSION_TRANSACTED);
public void testTopic3() { log.info("Running test Topic3"); warmupDestination(topicName, standardMessageSize, true, DeliveryMode.NON_PERSISTENT, Session.SESSION_TRANSACTED); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.s...
JobTimings[] results = runJobs(new Job[] {receiver, sender});
JobResult[] results = runJobs(new Job[] {receiver, sender}); if (!checkResults(results, "Topic3")) { return; }
public void testTopic3() { log.info("Running test Topic3"); warmupDestination(topicName, standardMessageSize, true, DeliveryMode.NON_PERSISTENT, Session.SESSION_TRANSACTED); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.s...
long totalTimeTaken = results[0].getTestTime() + results[0].getInitTime() - results[1].getInitTime();
long totalTimeTaken = results[0].testTime + results[0].initTime - results[1].initTime;
public void testTopic3() { log.info("Running test Topic3"); warmupDestination(topicName, standardMessageSize, true, DeliveryMode.NON_PERSISTENT, Session.SESSION_TRANSACTED); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.s...
warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.SESSION_TRANSACTED);
public void testTopic4() { log.info("Running test Topic4"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.SESSION_TRANSACTED); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.setM...
JobTimings[] results = runJobs(new Job[] {receiver, sender});
JobResult[] results = runJobs(new Job[] {receiver, sender}); if (!checkResults(results, "Topic4")) { return; }
public void testTopic4() { log.info("Running test Topic4"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.SESSION_TRANSACTED); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.setM...
long totalTimeTaken = results[0].getTestTime() + results[0].getInitTime() - results[1].getInitTime();
long totalTimeTaken = results[0].testTime + results[0].initTime - results[1].initTime;
public void testTopic4() { log.info("Running test Topic4"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.SESSION_TRANSACTED); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.setM...
warmupDestination(topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.DUPS_OK_ACKNOWLEDGE);
public void testTopic5() { log.info("Running test Topic5"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.DUPS_OK_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender...
JobTimings[] results = runJobs(new Job[] {receiver, sender});
JobResult[] results = runJobs(new Job[] {receiver, sender}); if (!checkResults(results, "Topic5")) { return; }
public void testTopic5() { log.info("Running test Topic5"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.DUPS_OK_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender...
long totalTimeTaken = results[0].getTestTime() + results[0].getInitTime() - results[1].getInitTime();
long totalTimeTaken = results[0].testTime + results[0].initTime - results[1].initTime;
public void testTopic5() { log.info("Running test Topic5"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.DUPS_OK_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender...
warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.DUPS_OK_ACKNOWLEDGE);
public void testTopic6() { log.info("Running test Topic6"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.DUPS_OK_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.set...
JobTimings[] results = runJobs(new Job[] {receiver, sender});
JobResult[] results = runJobs(new Job[] {receiver, sender}); if (!checkResults(results, "Topic6")) { return; }
public void testTopic6() { log.info("Running test Topic6"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.DUPS_OK_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.set...
long totalTimeTaken = results[0].getTestTime() + results[0].getInitTime() - results[1].getInitTime();
long totalTimeTaken = results[0].testTime + results[0].initTime - results[1].initTime;
public void testTopic6() { log.info("Running test Topic6"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.DUPS_OK_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.set...
warmupDestination(topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE);
public void testTopic7() { log.info("Running test Topic7"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.se...
JobTimings[] results = runJobs(new Job[] {receiver, sender});
JobResult[] results = runJobs(new Job[] {receiver, sender}); if (!checkResults(results, "Topic7")) { return; }
public void testTopic7() { log.info("Running test Topic7"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.se...
long totalTimeTaken = results[0].getTestTime() + results[0].getInitTime() - results[1].getInitTime();
long totalTimeTaken = results[0].testTime + results[0].initTime - results[1].initTime;
public void testTopic7() { log.info("Running test Topic7"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.se...
warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.AUTO_ACKNOWLEDGE);
public void testTopic8() { log.info("Running test Topic8"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.AUTO_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.setMsg...
JobTimings[] results = runJobs(new Job[] {receiver, sender});
JobResult[] results = runJobs(new Job[] {receiver, sender}); if (!checkResults(results, "Topic8")) { return; }
public void testTopic8() { log.info("Running test Topic8"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.AUTO_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.setMsg...
long totalTimeTaken = results[0].getTestTime() + results[0].getInitTime() - results[1].getInitTime();
long totalTimeTaken = results[0].testTime + results[0].initTime - results[1].initTime;
public void testTopic8() { log.info("Running test Topic8"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.AUTO_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.setMsg...
warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.AUTO_ACKNOWLEDGE);
public void testTopic9() { log.info("Running test Topic9"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.AUTO_ACKNOWLEDGE); //First drain the durable subscription DrainJob drainJob = createDefaultDrainJob(topicName); drainJob.s...
JobTimings[] results = runJobs(new Job[] {receiver, sender});
JobResult[] results = runJobs(new Job[] {receiver, sender}); if (!checkResults(results, "Topic9")) { return; }
public void testTopic9() { log.info("Running test Topic9"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.AUTO_ACKNOWLEDGE); //First drain the durable subscription DrainJob drainJob = createDefaultDrainJob(topicName); drainJob.s...
long totalTimeTaken = results[0].getTestTime() + results[0].getInitTime() - results[1].getInitTime();
long totalTimeTaken = results[0].testTime + results[0].initTime - results[1].testTime;
public void testTopic9() { log.info("Running test Topic9"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.PERSISTENT, Session.AUTO_ACKNOWLEDGE); //First drain the durable subscription DrainJob drainJob = createDefaultDrainJob(topicName); drainJob.s...
warmupDestination(topicNamePrefix + i, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE);
public void testTopicScale1() { log.info("Running test testTopicScale1"); Execution execution = createExecution("TopicScale1"); for (int i = 1; i <= scaleNumber; i++) { log.trace("Running with " + i + " topic(s)"); warmupDestin...
JobTimings[] results = runJobs(jobs);
JobResult[] results = runJobs(jobs); if (!checkResults(results, "TopicScale1")) { return; }
public void testTopicScale1() { log.info("Running test testTopicScale1"); Execution execution = createExecution("TopicScale1"); for (int i = 1; i <= scaleNumber; i++) { log.trace("Running with " + i + " topic(s)"); warmupDestin...
JobTimings senderResult = results[j * 2 + 1]; JobTimings receiverResult = results[j * 2]; long timeOfFirstSend = senderResult.getInitTime();
JobResult senderResult = results[j * 2 + 1]; JobResult receiverResult = results[j * 2]; long timeOfFirstSend = senderResult.initTime;
public void testTopicScale1() { log.info("Running test testTopicScale1"); Execution execution = createExecution("TopicScale1"); for (int i = 1; i <= scaleNumber; i++) { log.trace("Running with " + i + " topic(s)"); warmupDestin...
long timeOfLastReceive = receiverResult.getInitTime() + receiverResult.getTestTime();
long timeOfLastReceive = receiverResult.initTime + receiverResult.testTime;
public void testTopicScale1() { log.info("Running test testTopicScale1"); Execution execution = createExecution("TopicScale1"); for (int i = 1; i <= scaleNumber; i++) { log.trace("Running with " + i + " topic(s)"); warmupDestin...
warmupDestination(this.topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE);
public void testTopicScale2() { log.info("Running test testTopicScale2"); warmupDestination(this.topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE); Execution execution = createExecution("TopicScale2"); for (int i = 1; i <= scal...
JobTimings[] results = runJobs(jobs);
JobResult[] results = runJobs(jobs); if (!checkResults(results, "TopicScale2")) { return; }
public void testTopicScale2() { log.info("Running test testTopicScale2"); warmupDestination(this.topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE); Execution execution = createExecution("TopicScale2"); for (int i = 1; i <= scal...
long minTimeOfFirstSend = results[i].getInitTime();
long minTimeOfFirstSend = results[i].initTime;
public void testTopicScale2() { log.info("Running test testTopicScale2"); warmupDestination(this.topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE); Execution execution = createExecution("TopicScale2"); for (int i = 1; i <= scal...
JobTimings receiverResult = results[j]; long timeOfLastReceive = receiverResult.getInitTime() + receiverResult.getTestTime();
JobResult receiverResult = results[j]; long timeOfLastReceive = receiverResult.initTime + receiverResult.testTime;
public void testTopicScale2() { log.info("Running test testTopicScale2"); warmupDestination(this.topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE); Execution execution = createExecution("TopicScale2"); for (int i = 1; i <= scal...
warmupDestination(topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE);
public void testTopicScale3() { log.info("Running test testTopicScale3"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE); Execution execution = createExecution("TopicScale3"); for (int i = 1; i <= scaleNumb...
JobTimings[] results = runJobs(new Job[] {receiver, sender});
if (!checkResults(results, "TopicScale3")) { return; }
public void testTopicScale3() { log.info("Running test testTopicScale3"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE); Execution execution = createExecution("TopicScale3"); for (int i = 1; i <= scaleNumb...
long totalTimeTaken = results[0].getTestTime() + results[0].getInitTime() - results[1].getInitTime();
long totalTimeTaken = results[0].testTime + results[0].initTime - results[1].initTime;
public void testTopicScale3() { log.info("Running test testTopicScale3"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE); Execution execution = createExecution("TopicScale3"); for (int i = 1; i <= scaleNumb...
openInlineBoxes = new ArrayList(openInlineBoxes);
public static void layoutContent(LayoutContext c, BlockBox box) { int maxAvailableWidth = box.getContentWidth(); int remainingWidth = maxAvailableWidth; LineBox currentLine = newLine(c, null, box); LineBox previousLine = null; InlineLayoutBox currentIB = null; InlineLayoutB...
public static Box layout(Context c, Content content) { Box outerBox;
public static Box layout(Context c, Box outerBox, Content content) {
public static Box layout(Context c, Content content) { Box outerBox;//the outer box may be block or inline block boolean set_bfc = false; if (content instanceof TableContent) { outerBox = new BlockBox(); // install a block formatting context for the body, ...
outerBox = new BlockBox();
public static Box layout(Context c, Content content) { Box outerBox;//the outer box may be block or inline block boolean set_bfc = false; if (content instanceof TableContent) { outerBox = new BlockBox(); // install a block formatting context for the body, ...
outerBox.x = c.getExtents().x; outerBox.y = c.getExtents().y;
public static Box layout(Context c, Content content) { Box outerBox;//the outer box may be block or inline block boolean set_bfc = false; if (content instanceof TableContent) { outerBox = new BlockBox(); // install a block formatting context for the body, ...
c.popBFC();
public static Box layout(Context c, Content content) { Box outerBox;//the outer box may be block or inline block boolean set_bfc = false; if (content instanceof TableContent) { outerBox = new BlockBox(); // install a block formatting context for the body, ...
return tableBox;
outerBox.height = 0; for (Iterator i = outerBox.getChildIterator(); i.hasNext();) { Box child = (Box) i.next(); outerBox.height += child.height; if (child.width > outerBox.width) outerBox.width = child.width; } return outerBox;
public static Box layout(Context c, Content content) { Box outerBox;//the outer box may be block or inline block boolean set_bfc = false; if (content instanceof TableContent) { outerBox = new BlockBox(); // install a block formatting context for the body, ...
block.x = c.getExtents().x; block.y = c.getExtents().y;
public static CellBox layoutCell(Context c, CellBox block, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ...
c.popBFC();
public static CellBox layoutCell(Context c, CellBox block, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ...
row.y = 0;
private static void layoutCells(List cells, Context c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext();) { checkColumns(table, col + 1); if (table.columnRows[col] != ...
if (state == STATE_ROLLBACK_ONLY) { throw new TransactionException("Transaction marked rollback only, cannot commit"); } if (log.isTraceEnabled()) { log.trace("committing " + this); }
public void commit() throws Exception { //TODO - commit the tx in the database state = STATE_COMMITTED; if (insertedTXRecord) { if (pm == null) { throw new IllegalStateException("Reliable messages were handled in the transaction, but there is no persistenc...
if (log.isTraceEnabled()) { log.trace("rolling back " + this); }
public void rollback() throws Exception { //TODO - rollback the tx in the database state = STATE_ROLLEDBACK; if (insertedTXRecord) { pm.rollbackTx(this); } Iterator iter = postRollbackTasks.iterator(); while (iter.hasNext()) { Runnable task ...
JButton jb = null;
JLabel lbl = null;
public ReplacedElement createReplacedElement( LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) { Element e = box.element; JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { ...
jb = new JButton("Image unreachable. " + e.getAttribute("alt"));
lbl = new JLabel("Image unreachable. " + e.getAttribute("alt"));
public ReplacedElement createReplacedElement( LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) { Element e = box.element; JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { ...
jb = new JButton(ii);
lbl = new JLabel(ii);
public ReplacedElement createReplacedElement( LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) { Element e = box.element; JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { ...
jb.setBorder(BorderFactory.createEmptyBorder()); jb.setSize(jb.getPreferredSize()); jb.setContentAreaFilled(false); addImageComponent(e, jb); cc = jb;
lbl.setBorder(BorderFactory.createEmptyBorder()); lbl.setSize(lbl.getPreferredSize()); lbl.setOpaque(false); lbl.setFocusable(false); addImageComponent(e, lbl); cc = lbl;
public ReplacedElement createReplacedElement( LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) { Element e = box.element; JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { ...
Border border = currentStyle.getBorderWidth(c.getCtx());
BorderPropertySet border = currentStyle.getBorder(c.getCtx());
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box...
Rectangle box = new Rectangle(block.x + (int)margin.left() + border.left, block.y + (int)margin.top() + border.top, width - (int)margin.left() - (int)margin.right() - border.left - border.right, height - (int)margin.top() - border.top - border.bottom - (int)margin.bottom());
Rectangle box = new Rectangle(block.x + (int)margin.left() + (int)border.left(), block.y + (int)margin.top() + (int)border.top(), width - (int)margin.left() - (int)margin.right() - (int)border.left() - (int)border.right(), height - (int)margin.top() - (int)border.top() - (int)border.bottom() - (int)margin.bottom());
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box...
bodyReadOnly = false;
public void clearBody() throws JMSException { content = null; super.clearBody(); }
bodyReadOnly = in.readBoolean();
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); if (log.isTraceEnabled()) { log.trace("in readExternal"); } byte type = in.readByte(); if (log.isTraceEnabled()) { log.trace("type is:" + type); } if (type == NUL...
if (!messageReadWrite)
if (bodyReadOnly)
public void setText(String string) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Cannot set the content; message is read-only"); content = string; }
out.writeBoolean(bodyReadOnly);
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); if (log.isTraceEnabled()) { log.trace("in writeExternal"); } if (content == null) { out.writeByte(NULL); } else { out.write(STRING); out.writeUTF(content); ...
public final int update(byte[] input, int inputOffset, int inputLength, byte[] output) throws IllegalStateException, ShortBufferException
public final byte[] update(byte[] input) throws IllegalStateException
public final int update(byte[] input, int inputOffset, int inputLength, byte[] output) throws IllegalStateException, ShortBufferException { return update(input, inputOffset, inputLength, output, 0); }
return update(input, inputOffset, inputLength, output, 0);
return update(input, 0, input.length);
public final int update(byte[] input, int inputOffset, int inputLength, byte[] output) throws IllegalStateException, ShortBufferException { return update(input, inputOffset, inputLength, output, 0); }
public final int doFinal(byte[] input, int inputOffset, int inputLength, byte[] output) throws IllegalStateException, IllegalBlockSizeException, BadPaddingException, ShortBufferException
public final byte[] doFinal() throws IllegalStateException, IllegalBlockSizeException, BadPaddingException
public final int doFinal(byte[] input, int inputOffset, int inputLength, byte[] output) throws IllegalStateException, IllegalBlockSizeException, BadPaddingException, ShortBufferException { return doFinal(input, inputOffset, inputLength, output, 0); }
return doFinal(input, inputOffset, inputLength, output, 0);
return doFinal(new byte[0], 0, 0);
public final int doFinal(byte[] input, int inputOffset, int inputLength, byte[] output) throws IllegalStateException, IllegalBlockSizeException, BadPaddingException, ShortBufferException { return doFinal(input, inputOffset, inputLength, output, 0); }
protected Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) {
public Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) {
protected Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) { return new Rectangle(-bounds.x, -bounds.y, bounds.width, bounds.height); }
String thisAddress = InetAddress.getLocalHost().getHostAddress();
String thisAddress = serverLocator.getHost();
protected Connector startCallbackServer(InvokerLocator serverLocator) throws Exception { if (log.isTraceEnabled()) { log.trace(this + " setting up connection to " + serverLocator); } final int MAX_RETRIES = 50; boolean completed = false; Connector server = null; String serializationType = ...
int bindPort = PortUtil.findFreePort("localhost");
int bindPort = PortUtil.findFreePort(thisAddress);
protected Connector startCallbackServer(InvokerLocator serverLocator) throws Exception { if (log.isTraceEnabled()) { log.trace(this + " setting up connection to " + serverLocator); } final int MAX_RETRIES = 50; boolean completed = false; Connector server = null; String serializationType = ...
if (path.length() == 0) return true;
public boolean changeWorkingDirectory(String path) throws IOException { String cmd = CWD + ' ' + path; send(cmd); FTPResponse response = getResponse(); switch (response.getCode()) { case 250: return true; case 550: return false; default: throw new FTPException(...
c.setSubBlock(old_sub);
public Box layout(Context c, Element elem) { // this is to keep track of when we are inside of a form if(elem.getNodeName().equals("form")) { if(elem.hasAttribute("name")) { String name = elem.getAttribute("name"); String action = elem.getAttribute("action"); ...
public boolean getTransacted() throws JMSException
public boolean getTransacted()
public boolean getTransacted() throws JMSException { log.warn("getTransacted should not be handled at the server endpoint"); return false; }
public DurableSubscriptionHolder(String name, LocalTopic topic, LocalQueue queue)
public DurableSubscriptionHolder(String name, LocalTopic topic, LocalQueue queue, String selector)
public DurableSubscriptionHolder(String name, LocalTopic topic, LocalQueue queue) { this.name = name; this.queue = queue; this.topic = topic; }
String selector, boolean noLocal, DurableSubscriptionHolder subscription)
String selector, boolean noLocal)
public ServerConsumerDelegate(String id, Channel destination, InvokerCallbackHandler callbackHandler, ServerSessionDelegate sessionEndpoint, String selector, boolean noLocal, ...
if (log.isTraceEnabled()) log.trace("Creating ServerConsumerDelegate:" + id + ", noLocal:" + noLocal);
if (log.isTraceEnabled()) log.trace("Creating ServerConsumerDelegate:" + id);
public ServerConsumerDelegate(String id, Channel destination, InvokerCallbackHandler callbackHandler, ServerSessionDelegate sessionEndpoint, String selector, boolean noLocal, ...
this.subscription = subscription;
public ServerConsumerDelegate(String id, Channel destination, InvokerCallbackHandler callbackHandler, ServerSessionDelegate sessionEndpoint, String selector, boolean noLocal, ...
started = sessionEndpoint.connectionEndpoint.started; destination.add(this);
public ServerConsumerDelegate(String id, Channel destination, InvokerCallbackHandler callbackHandler, ServerSessionDelegate sessionEndpoint, String selector, boolean noLocal, ...
void setStarted(boolean start) { if (start)
void setStarted(boolean s) { if (log.isTraceEnabled()) { log.trace("setStarted: " + s); } synchronized (waiting)
void setStarted(boolean start) { if (start) { if (log.isTraceEnabled()) log.trace("attempting to add receiver"); boolean added = destination.add(this); if (log.isTraceEnabled()) log.trace("added receiver: " + this.id + ", success=" + added); } else { if...
if (log.isTraceEnabled()) log.trace("attempting to add receiver"); boolean added = destination.add(this); if (log.isTraceEnabled()) log.trace("added receiver: " + this.id + ", success=" + added); } else { if (log.isTraceEnabled()) log.trace("attempting to remove receiver from destination: " + destination); boolean re...
started = s; if (s)
void setStarted(boolean start) { if (start) { if (log.isTraceEnabled()) log.trace("attempting to add receiver"); boolean added = destination.add(this); if (log.isTraceEnabled()) log.trace("added receiver: " + this.id + ", success=" + added); } else { if...
Object messageID = i.next(); Delivery d = (Delivery)deliveries.get(messageID); try
if (!waiting.isEmpty())
void setStarted(boolean start) { if (start) { if (log.isTraceEnabled()) log.trace("attempting to add receiver"); boolean added = destination.add(this); if (log.isTraceEnabled()) log.trace("added receiver: " + this.id + ", success=" + added); } else { if...
d.cancel();
if (log.isTraceEnabled()) { log.trace("There are " + waiting.size() + " waiting messages to deliver"); } int n = waiting.size(); for (int i = 0; i < n; i++) { Message m = (Message)waiting.removeFirst(); if (log.isTraceEnabled()) { log.trace("queueing the message " + m + " for delivery"); } try { threadPool.execute(...
void setStarted(boolean start) { if (start) { if (log.isTraceEnabled()) log.trace("attempting to add receiver"); boolean added = destination.add(this); if (log.isTraceEnabled()) log.trace("added receiver: " + this.id + ", success=" + added); } else { if...
catch(Throwable t) { log.error("Cannot cancel delivery: " + d, t); } i.remove(); }
}
void setStarted(boolean start) { if (start) { if (log.isTraceEnabled()) log.trace("attempting to add receiver"); boolean added = destination.add(this); if (log.isTraceEnabled()) log.trace("added receiver: " + this.id + ", success=" + added); } else { if...
outerBox.height = 0; for (Iterator i = outerBox.getChildIterator(); i.hasNext();) { Box child = (Box) i.next(); outerBox.height += child.height; outerBox.adjustWidthForChild(child.getWidth()); }
calculateOuterBoxDimensions(outerBox);
public static Box layout(LayoutContext c, BlockBox outerBox, Content content, Boxing.StyleSetListener listener) { boolean set_bfc = false; if (content instanceof TableContent) { } else { XRLog.layout(Level.WARNING, "Unsupported table type " + content.getClass().getName())...
c.setLayingOutTable(false); if (c.isPrint()) { positionRowsOnPage(c, tableBox); calculateOuterBoxDimensions(outerBox); outerBox.calcChildLocations(); }
public static Box layout(LayoutContext c, BlockBox outerBox, Content content, Boxing.StyleSetListener listener) { boolean set_bfc = false; if (content instanceof TableContent) { } else { XRLog.layout(Level.WARNING, "Unsupported table type " + content.getClass().getName())...
private boolean existsStartup(String nodeId) throws Exception
private boolean existsStartup(int nodeId) throws Exception
private boolean existsStartup(String nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStateme...
ps.setString(1, nodeId);
ps.setInt(1, nodeId);
private boolean existsStartup(String nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStateme...
sql.put("CREATE_STARTUP", "CREATE TABLE JMS_STARTUP (NODE_ID VARCHAR(255) PRIMARY KEY)");
sql.put("CREATE_STARTUP", "CREATE TABLE JMS_STARTUP (NODE_ID INTEGER PRIMARY KEY)");
protected Map getDefaultDDLStatements() { Map sql = new LinkedHashMap(); sql.put("CREATE_STARTUP", "CREATE TABLE JMS_STARTUP (NODE_ID VARCHAR(255) PRIMARY KEY)"); return sql; }
private void insertStartup(String nodeId) throws Exception
private void insertStartup(int nodeId) throws Exception
private void insertStartup(String nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("INSERT_STARTUP")); ...
ps.setString(1, nodeId);
ps.setInt(1, nodeId);
private void insertStartup(String nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("INSERT_STARTUP")); ...
private void removeStartup(String nodeId) throws Exception
private void removeStartup(int nodeId) throws Exception
private void removeStartup(String nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("DELETE_STARTUP")); ...
ps.setString(1, nodeId);
ps.setInt(1, nodeId);
private void removeStartup(String nodeId) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("DELETE_STARTUP")); ...
public boolean shutdown(String nodeId) throws Exception
public boolean shutdown(int nodeId) throws Exception
public boolean shutdown(String nodeId) throws Exception { boolean exists = existsStartup(nodeId); if (!exists) { //This shouldn't really happen log.warn("It appears the server did not start up properly!"); return false; } else { removeStartu...
public boolean startup(String nodeId) throws Exception
public boolean startup(int nodeId) throws Exception
public boolean startup(String nodeId) throws Exception { boolean crashed = existsStartup(nodeId); if (crashed) { //These means the server didn't shutdown cleanly last time - //we must assume it crashed log.warn("It appears the server was not shutdown cleanly l...
if (connection != null) {
if ((connection != null) && closeConnWhenDone) {
private void cleanup(Connection connection, Statement statement, ResultSet result) { if (result != null) { try { result.close(); } catch (SQLException ex) { log.error("Error closing resultset", ex); } } if (statement != null) { ...
closeConnWhenDone = true;
protected Connection getConnection() throws SQLException { return ds.getConnection(); }
try { ds = (DataSource) lookup(jndi);
if (jndi != null) { try { ds = (DataSource) lookup(jndi);
public void init(Map props) throws StoreException { entrySequence = (String) props.get("entry.sequence"); stepSequence = (String) props.get("step.sequence"); entryTable = (String) props.get("entry.table"); entryId = (String) props.get("entry.id"); entryName = (String) props.get("e...
if (ds == null) { ds = (DataSource) new javax.naming.InitialContext().lookup(jndi);
if (ds == null) { ds = (DataSource) new javax.naming.InitialContext().lookup(jndi); } } catch (Exception e) { throw new StoreException("Error looking up DataSource at " + jndi, e);
public void init(Map props) throws StoreException { entrySequence = (String) props.get("entry.sequence"); stepSequence = (String) props.get("step.sequence"); entryTable = (String) props.get("entry.table"); entryId = (String) props.get("entry.id"); entryName = (String) props.get("e...
} catch (Exception e) { throw new StoreException("Error looking up DataSource at " + jndi, e); } if (ds == null) { throw new StoreException("No DataSource found at " + jndi);
public void init(Map props) throws StoreException { entrySequence = (String) props.get("entry.sequence"); stepSequence = (String) props.get("step.sequence"); entryTable = (String) props.get("entry.table"); entryId = (String) props.get("entry.id"); entryName = (String) props.get("e...
public MessageCallbackHandler()
public MessageCallbackHandler(Destination destination)
public MessageCallbackHandler() { messages = new BoundedBuffer(capacity); }
messages = new BoundedBuffer(capacity);
this.messages = new BoundedBuffer(capacity); this.destination = destination;
public MessageCallbackHandler() { messages = new BoundedBuffer(capacity); }
{
{ JBossMessage jm = (JBossMessage)m; jm.setSessionDelegate(sessionDelegate);
public void handleCallback(InvocationRequest invocation) throws HandleCallbackException { Message m = (Message)invocation.getParameter(); if (log.isTraceEnabled()) { log.trace("receiving from server: " + m); } try { messages.put(m); if (log.isTraceEnabled()) { log.trace("message...
acknowledge(m);
if (log.isTraceEnabled()) log.trace("Calling delivered()"); delivered(m); if (log.isTraceEnabled()) log.trace("Called delivered()");
public Message receive(long timeout) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (listener != null) { throw new JBossJMSException("A message liste...
if (log.isTraceEnabled()) log.trace("Message is not expired");
public Message receive(long timeout) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (listener != null) { throw new JBossJMSException("A message liste...
acknowledge(m);
delivered(m);
public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } while(true) { try { if (log.isTraceEnabled()) { log.trace("blocking to take a message"); } Message m = (Message)messages.take(); listener.onMessage(m); ...