rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
storeResult("testTopicScale3_" + i, totalTimeTaken);
Measurement measure = new Measurement("throughput", 1000 * (double)totalMessages / totalTimeTaken); measure.setVariableValue("numberOfSubscribers", i); execution.addMeasurement(measure);
public void testTopicScale3() { log.info("Running test testTopicScale3"); for (int i = 1; i <= 20; i++) { SenderJob sender = createDefaultSenderJob(testTopicName); sender.setNumMessages(10000); sender.setMsgSize(1024); sender.setMf(new BytesMessageMessageFactory...
pm.saveExecution(execution);
public void testTopicScale3() { log.info("Running test testTopicScale3"); for (int i = 1; i <= 20; i++) { SenderJob sender = createDefaultSenderJob(testTopicName); sender.setNumMessages(10000); sender.setMsgSize(1024); sender.setMf(new BytesMessageMessageFactory...
Dimension viewSize = viewport.getViewSize();
Dimension viewSize = viewport.getView().getPreferredSize();
public void layoutContainer(Container parent) { // Sun's implementation simply throws a ClassCastException if // parent is no JScrollPane, so do we. JScrollPane sc = (JScrollPane) parent; JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); ...
connector.connect(restrict, "restriction.conditionType");
connector.connect(restrict, "restriction.conditionsDescriptor.type");
protected void initComponents() { String colLayout = "2dlu, max(32dlu;pref), 2dlu, pref:grow, 4dlu"; String rowLayout = "4dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref"; JTabbedPane tabbedPane = new JTabbedPane(); FormLayout layout = new FormLayout("2dlu, pref:grow, 2dlu", "2dlu, pref, 2dlu")...
threadPool = new PooledExecutor();
threadPool = new PooledExecutor(new LinkedQueue(), 10);
public synchronized void start() throws Exception { if (started) { return; } log.debug(this + " starting"); mbeanServer = findMBeanServer(); tm = findTransactionManager(); // TODO: this should be configurable pm = new HSQLDBPersistenceManager(); // TO...
protected AttributeContext getAttributeContext()
protected final AttributeContext getAttributeContext()
protected AttributeContext getAttributeContext() { return context; }
protected Rectangle getPaintingBorderEdge(CssContext cssCtx) {
public Rectangle getPaintingBorderEdge(CssContext cssCtx) {
protected Rectangle getPaintingBorderEdge(CssContext cssCtx) { return getBorderEdge(getAbsX(), getAbsY(), cssCtx); }
if (getStyle().isHidden()) {
if (! getStyle().isVisible()) {
public void paintBackground(RenderingContext c) { if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } if (getStyle().isHidden()) { return; } Color backgroundColor = getStyle().getCalculatedStyle().getBackgroundColor();...
if (getStyle().isHidden()) {
if (! getStyle().isVisible()) {
public void paintBorder(RenderingContext c) { if (getStyle().isHidden()) { return; } Rectangle borderBounds = getPaintingBorderEdge(c); if (getState() != Box.DONE) { borderBounds.height += c.getCanvas().getHeight(); } BorderPainter.paint(bo...
calcCanvasLocation(); calcChildLocations();
public Dimension positionPositioned(CssContext cssCtx) { int initialX = this.x; int initialY = this.y; CalculatedStyle style = getStyle().getCalculatedStyle(); Rectangle boundingBox = null; int cbContentHeight = getContainingBlock().getContentAreaEdge(0, 0, cssCtx)...
ref.releaseMemoryReference();
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { checkClosed(); if (r == null) { return null; } if (trace){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ...
if (r.isReference())
if (!r.isReference())
protected MessageReference obtainReference(Routable r) { MessageReference ref = null; // Convert to reference try { if (r.isReference()) { // Make a copy - each channel has it's own copy of the reference - this is becaause // the headers for a particular me...
ref = ((MessageReference)r).copy();
log.warn("Should only handle references"); ref = ms.reference((Message)r);
protected MessageReference obtainReference(Routable r) { MessageReference ref = null; // Convert to reference try { if (r.isReference()) { // Make a copy - each channel has it's own copy of the reference - this is becaause // the headers for a particular me...
{ ref = ms.reference((Message)r);
{ ref = ((MessageReference)r).copy();
protected MessageReference obtainReference(Routable r) { MessageReference ref = null; // Convert to reference try { if (r.isReference()) { // Make a copy - each channel has it's own copy of the reference - this is becaause // the headers for a particular me...
if (m.matches()) {
if (m.find()) {
public StylesheetInfo[] getStylesheetLinks(org.w3c.dom.Document doc) { List list = new ArrayList(); //get the processing-instructions (actually for XmlDocuments) //type and href are required to be set try { org.w3c.dom.NodeList nl = XPathAPI.selectNodeList(doc.getDocumentEleme...
if (trace) { log.trace("Throwing HeuristicMixedException, tx=" + this + "status=" + getStringStatus(status)); }
if (log.isTraceEnabled()) { log.trace("Throwing HeuristicMixedException, tx=" + this + "status=" + getStringStatus(status)); }
private void checkHeuristics() throws HeuristicMixedException, HeuristicRollbackException { boolean trace = log.isTraceEnabled(); switch (heuristicCode) { case XAException.XA_HEURHAZ: case XAException.XA_HEURMIX: heuristicCode = HEUR_NONE; if (trace) { log.trace...
if (trace) { log.trace("Throwing HeuristicRollbackException, tx=" + this + "status=" + getStringStatus(status)); }
if (log.isTraceEnabled()) { log.trace("Throwing HeuristicRollbackException, tx=" + this + "status=" + getStringStatus(status)); }
private void checkHeuristics() throws HeuristicMixedException, HeuristicRollbackException { boolean trace = log.isTraceEnabled(); switch (heuristicCode) { case XAException.XA_HEURHAZ: case XAException.XA_HEURMIX: heuristicCode = HEUR_NONE; if (trace) { log.trace...
if (trace) {log.trace("NOT Throwing HeuristicCommitException, tx=" + this + "status=" + getStringStatus(status)); }
if (log.isTraceEnabled()) {log.trace("NOT Throwing HeuristicCommitException, tx=" + this + "status=" + getStringStatus(status)); }
private void checkHeuristics() throws HeuristicMixedException, HeuristicRollbackException { boolean trace = log.isTraceEnabled(); switch (heuristicCode) { case XAException.XA_HEURHAZ: case XAException.XA_HEURMIX: heuristicCode = HEUR_NONE; if (trace) { log.trace...
if (textComponent.isEditable())
boolean editable = ((Boolean) event.getNewValue()).booleanValue(); if (editable)
protected void propertyChange(PropertyChangeEvent event) { if (event.getPropertyName().equals("editable")) { if (textComponent.isEditable()) textComponent.setBackground(background); else textComponent.setBackground(inactiveBackground); } }
Rectangle rect = c.getExtents(); int xoff = -rect.x; int yoff = -rect.y;
Rectangle rect = c.getFixedRectangle(); int by = c.getBlockFormattingContext().getY(); int bx = c.getBlockFormattingContext().getX(); int xoff = bx -rect.x; int yoff = by -rect.y;
public static void paintFixed(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = -rect.x; int yoff = -rect.y; if (block.top_set) { yoff += block.top; } if (block.right_set) { xoff = -rect.x + rect.wi...
xoff = -rect.x + rect.width - block.width - block.right;
xoff += rect.width - block.width - block.right;
public static void paintFixed(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = -rect.x; int yoff = -rect.y; if (block.top_set) { yoff += block.top; } if (block.right_set) { xoff = -rect.x + rect.wi...
xoff = block.left;
xoff += block.left;
public static void paintFixed(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = -rect.x; int yoff = -rect.y; if (block.top_set) { yoff += block.top; } if (block.right_set) { xoff = -rect.x + rect.wi...
yoff = -rect.y + rect.height - block.height - block.bottom;
yoff += rect.height - block.height - block.bottom;
public static void paintFixed(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = -rect.x; int yoff = -rect.y; if (block.top_set) { yoff += block.top; } if (block.right_set) { xoff = -rect.x + rect.wi...
SerializationStreamFactory.setManagerClassName("jms", "org.jboss.jms.server.remoting.JMSSerializationManager");
SerializationStreamFactory.setManagerClassName("jms", "org.jboss.remoting.serialization.impl.jboss.JBossSerializationManager");
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with our customer SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName("jms", "org.jboss.jms.server.remoting.JMSSerializati...
if (log.isTraceEnabled()) { log.trace("Closing..."); }
public Object invoke(Invocation invocation) throws Throwable { String methodName = ((MethodInvocation) invocation).getMethod().getName(); boolean isClosing = methodName.equals("closing"); boolean isClose = methodName.equals("close"); if (isClosing) { if (checkC...
if (gt) { fxch(os, fpuStack, Register.ST1); } os.writeFUCOMPP(); os.writeFNSTSW_AX(); os.writeSAHF(); fpuStack.pop(); fpuStack.pop(); final Label eqLabel = new Label(curInstrLabel + "eq"); final Label ltLabel = new Label(curInstrLabel + "lt"); final Label endLabel = new Label(curInstrLabel + "end"); os.writeJCC(eqL...
if (gt) { fxch(os, fpuStack, Register.ST1); } os.writeFUCOMPP(); os.writeFNSTSW_AX(); os.writeSAHF();
final static void compare(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final ...
final IntItem res = IntItem.createReg(resr); pool.transferOwnerTo(resr, res); vstack.push(res);
fpuStack.pop(); fpuStack.pop();
final static void compare(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final ...
pool.release(EAX); }
final Label eqLabel = new Label(curInstrLabel + "eq"); final Label ltLabel = new Label(curInstrLabel + "lt"); final Label endLabel = new Label(curInstrLabel + "end"); os.writeJCC(eqLabel, X86Constants.JE); os.writeJCC(ltLabel, X86Constants.JB); if (gt) { os.writeMOV_Const(resr, -1); } else { os.writeMOV_Const(resr, 1)...
final static void compare(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final ...
private final static Item createFPUStack(int type) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createFPUStack(); case JvmType.FLOAT: return FloatItem.createFPUStack(); case JvmType.INT: return IntItem.createFPUStack(); case JvmType.LONG: return LongItem.createFPUStack(); default: throw new IllegalArgumentE...
final static Item createFPUStack(int type) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createFPUStack(); case JvmType.FLOAT: return FloatItem.createFPUStack(); case JvmType.INT: return IntItem.createFPUStack(); case JvmType.LONG: return LongItem.createFPUStack(); default: throw new IllegalArgumentException...
private final static Item createFPUStack(int type) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createFPUStack(); case JvmType.FLOAT: return FloatItem.createFPUStack(); case JvmType.INT: return IntItem.createFPUStack(); case JvmType.LON...
if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(type, fpv1 / fpv2)); } else { final FPUStack fpuStack = vstack.fpuStack; final Register reg; reg = prepareForOperation(os, ec, vstack, fpuStack, v2, v1, false); fxchST1(os, fpuStac...
if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(type, fpv1 / fpv2)); } else { final FPUStack fpuStack = vstack.fpuStack; final Register reg; reg = prepareForOperation(os, ec, vstack, fpuStack, v2, v1, false); fxchST1(os, fpuStac...
final static void rem(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = ...
os.writeFPREM(); os.writeFXCH(Register.ST1); os.writeFFREEP(Register.ST0);
fpuStack.pop();
final static void rem(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = ...
vstack.push(fpuStack.tos()); } }
os.writeFPREM(); os.writeFXCH(Register.ST1); os.writeFFREEP(Register.ST0); vstack.push(fpuStack.tos()); } }
final static void rem(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = ...
layer = c.getLayer();
public BlockFormattingContext(Box block, LayoutContext c) { persistentBFC = new PersistentBFC(block, c); }
InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) {
InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, boolean isFirstLine, CascadedStyle firstLineStyle) {
private InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) { CalculatedStyle style = content.getStyle(); // get t...
CalculatedStyle style = content.getStyle();
if (isFirstLine && firstLineStyle != null) c.pushStyle(firstLineStyle); CalculatedStyle style = c.getCurrentStyle();
private InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) { CalculatedStyle style = content.getStyle(); // get t...
return LineBreaker.generateReplacedInlineBox(c, content, avail, prev_align, font);
result = LineBreaker.generateReplacedInlineBox(c, content, avail, prev_align, font); } else if (content instanceof FloatedBlockContent) { result = FloatUtil.generateFloatedBlockInlineBox(c, content, avail, prev_align, font); } else { TextContent textContent = (TextContent) content; int start = 0; if (prev != null...
private InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) { CalculatedStyle style = content.getStyle(); // get t...
if (content instanceof FloatedBlockContent) { return FloatUtil.generateFloatedBlockInlineBox(c, content, avail, prev_align, font); } TextContent textContent = (TextContent) content; int start = 0; if (prev != null && prev.getContent() == textContent) { start = prev.end_index; } String text = textContent.getText(...
if (isFirstLine && firstLineStyle != null) c.popStyle(); return result;
private InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) { CalculatedStyle style = content.getStyle(); // get t...
List contentList = box.getContent().getChildContent(c);
List contentList = box.content.getChildContent(c);
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)...
Box block = (Box) box;
BlockBox block = (BlockBox) box;
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)...
CalculatedStyle parentStyle = box.getContent().getStyle();
CalculatedStyle parentStyle = c.getCurrentStyle();
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)...
CascadedStyle firstLineStyle = null; CascadedStyle firstLetterStyle = null;
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)...
firstLineStyle = ((FirstLineStyle) o).getStyle();
block.firstLineStyle = ((FirstLineStyle) o).getStyle();
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)...
firstLetterStyle = ((FirstLetterStyle) o).getStyle();
block.firstLetterStyle = ((FirstLetterStyle) o).getStyle(); continue; } if (o instanceof StylePush) { c.pushStyle(((StylePush) o).getStyle()); continue; } if (o instanceof StylePop) { c.popStyle();
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)...
if (prev_inline != null && prev_inline.getContent() == currentContent) {
if (prev_inline != null && prev_inline.content == currentContent) {
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)...
currentStyle = currentContent.getStyle();
currentStyle = c.getCurrentStyle();
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)...
prev_inline, prev_align_inline, isFirstLetter, firstLetterStyle, firstLineStyle);
prev_inline, prev_align_inline, isFirstLetter, block.firstLetterStyle, isFirstLine, block.firstLineStyle);
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)...
firstLetterStyle = null;
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)...
firstLineStyle = null;
isFirstLine = false;
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)...
drainDestination(cf, queue);
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); Ser...
write8(0x67);
public final void writeJECXZ(Label label) { final ObjectRef ref = getObjectRef(label); final int shortOffset = m_used + 2; if (ref.isResolved()) { if (isByteDistance(ref, shortOffset)) { try { write8(0x67); write8(0xE3); ...
final int ofs = m_used + 4;
final int ofs = m_used + 1;
public final void writeJECXZ(Label label) { final ObjectRef ref = getObjectRef(label); final int shortOffset = m_used + 2; if (ref.isResolved()) { if (isByteDistance(ref, shortOffset)) { try { write8(0x67); write8(0xE3); ...
write32(xref.getOffset() - ofs);
write8(xref.getOffset() - ofs);
public final void writeJECXZ(Label label) { final ObjectRef ref = getObjectRef(label); final int shortOffset = m_used + 2; if (ref.isResolved()) { if (isByteDistance(ref, shortOffset)) { try { write8(0x67); write8(0xE3); ...
xref.addUnresolvedLink(m_used, 4); write32(ofs);
xref.addUnresolvedLink(m_used, 1); write8(ofs);
public final void writeJECXZ(Label label) { final ObjectRef ref = getObjectRef(label); final int shortOffset = m_used + 2; if (ref.isResolved()) { if (isByteDistance(ref, shortOffset)) { try { write8(0x67); write8(0xE3); ...
queue = (Destination)initialContext.lookup("/queue/Queue"); drainDestination(cf, queue);
queue = (Destination)initialContext.lookup("/queue/Queue"); if (!ServerManagement.isRemote()) suspendedTx = tm.suspend();
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); if (!ServerManagement.isRemote()) tm = TxMa...
if (suspendedTx != null) { tm.resume(suspendedTx); }
public void tearDown() throws Exception { ServerManagement.undeployQueue("Queue"); super.tearDown(); }
conn = cf.createConnection(); session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); prod = session.createProducer(queue); prod.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
topic = (Topic)ic.lookup("/topic/Topic");
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); ServerManagement.undeployQueue("Queue"); ServerManagement.deployQueue("Queue"); InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (ConnectionFactory)ic.lo...
conn.close();
public void tearDown() throws Exception { conn.close(); ServerManagement.undeployQueue("Queue"); super.tearDown(); }
session.close();
public void testSelectiveClosingConsumer() throws Exception { String selector = "color = 'red'"; MessageConsumer redConsumer = session.createConsumer(queue, selector); conn.start(); Message redMessage = session.createMessage(); redMessage.setStringProperty("color", "red"); Message blu...
Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null);
Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor());
public void test1() throws Throwable { Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Message[] msgs = new Message[241]; MessageReference[] refs = new MessageReference[241]; //Send 99 Transaction tx = createXATx();...
return new DefaultModuleRevision(this, md, true, downloaded);
return new DefaultModuleRevision(this, this, md, true, downloaded);
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { _ivyattempts.clear(); boolean downloaded = false; ModuleRevisionId mrid = dd.getDependencyRevisionId(); // check revision int index = mrid.getRevision().indexOf("@"); if (index !...
callOnMessage(sessionDelegate, listener, consumerID, channelID, false, mp, ackMode, maxDeliveries);
callOnMessage(sessionDelegate, listener, consumerID, channelID, false, mp, ackMode, maxDeliveries, null);
public void run() { MessageProxy mp = null; boolean again = false; synchronized (mainLock) { if (listener == null) { listenerRunning = false; if (trace) { log.trace("no listener, returning"); } ...
int maxDeliveries)
int maxDeliveries, SessionDelegate connectionConsumerSession)
public static void callOnMessage(SessionDelegate sess, MessageListener listener, int consumerID, long channelID, boolean isConnectionConsumer, ...
preDeliver(sess, consumerID, channelID, m, isConnectionConsumer);
if (!isConnectionConsumer) { sess.preDeliver(new DeliveryInfo(m, consumerID, channelID, connectionConsumerSession)); }
public static void callOnMessage(SessionDelegate sess, MessageListener listener, int consumerID, long channelID, boolean isConnectionConsumer, ...
postDeliver(sess, isConnectionConsumer, cancel);
if (!isConnectionConsumer) { sess.postDeliver(cancel); }
public static void callOnMessage(SessionDelegate sess, MessageListener listener, int consumerID, long channelID, boolean isConnectionConsumer, ...
Cancel ack = new Cancel(mp.getDeliveryId(), mp.getDeliveryCount());
DefaultCancel ack = new DefaultCancel(mp.getDeliveryId(), mp.getDeliveryCount());
public void close() throws JMSException { synchronized (mainLock) { log.debug(this + " closing"); if (closed) { return; } closed = true; if (receiverThread != null) { // Wake up any ...
preDeliver(sessionDelegate, consumerID, channelID, m, isConnectionConsumer);
if (!isConnectionConsumer) { sessionDelegate.preDeliver(new DeliveryInfo(m, consumerID, channelID, null)); sessionDelegate.postDeliver(false); }
public MessageProxy receive(long timeout) throws JMSException { MessageProxy m = null; synchronized (mainLock) { if (trace) { log.trace(this + " receiving, timeout = " + timeout); } if (closed) { // If consumer is closed...
postDeliver(sessionDelegate, isConnectionConsumer, false);
public MessageProxy receive(long timeout) throws JMSException { MessageProxy m = null; synchronized (mainLock) { if (trace) { log.trace(this + " receiving, timeout = " + timeout); } if (closed) { // If consumer is closed...
this(topic, selector, ms, null);
this("sub" + new GUID().toString(), topic, selector, ms, null);
public Subscription(Topic topic, String selector, MessageStore ms) { this(topic, selector, ms, null); }
EJBHome home = (EJBHome) PortableRemoteObject.narrow(new InitialContext().lookup(ejbLocation), EJBHome.class);
EJBLocalHome home = (EJBLocalHome) PortableRemoteObject.narrow(new InitialContext().lookup(ejbLocation), EJBLocalHome.class);
public void execute(Map transientVars, Map args, PropertySet ps) throws WorkflowException { FunctionProvider sessionBean = null; String ejbLocation = (String) args.get(AbstractWorkflow.EJB_LOCATION); try { EJBHome home = (EJBHome) PortableRemoteObject.narrow(new InitialContext().look...
if (length < 0)
if (length == 0)
protected Serializable readPayloadExternal(ObjectInput in) throws IOException, ClassNotFoundException { int length = in.readInt(); if (length < 0) { return null; } byte[] payload = new byte[length]; in.readFully(payload); return payload; }
String name = attributes.getValue("name");
String name = _ivy.substitute(attributes.getValue("name"));
private void addDependencyArtifact(Attributes attributes, boolean includes) { String name = attributes.getValue("name"); name = name == null ? PatternMatcher.ANY_EXPRESSION : name; String type = attributes.getValue("type"); type = type == null ? PatternMatcher.ANY_EXPRESSION : type; ...
String type = attributes.getValue("type");
String type = _ivy.substitute(attributes.getValue("type"));
private void addDependencyArtifact(Attributes attributes, boolean includes) { String name = attributes.getValue("name"); name = name == null ? PatternMatcher.ANY_EXPRESSION : name; String type = attributes.getValue("type"); type = type == null ? PatternMatcher.ANY_EXPRESSION : type; ...
String ext = attributes.getValue("ext");
String ext = _ivy.substitute(attributes.getValue("ext"));
private void addDependencyArtifact(Attributes attributes, boolean includes) { String name = attributes.getValue("name"); name = name == null ? PatternMatcher.ANY_EXPRESSION : name; String type = attributes.getValue("type"); type = type == null ? PatternMatcher.ANY_EXPRESSION : type; ...
String matcherName = attributes.getValue("matcher");
String matcherName = _ivy.substitute(attributes.getValue("matcher"));
private void addDependencyArtifact(Attributes attributes, boolean includes) { String name = attributes.getValue("name"); name = name == null ? PatternMatcher.ANY_EXPRESSION : name; String type = attributes.getValue("type"); type = type == null ? PatternMatcher.ANY_EXPRESSION : type; ...
String org = attributes.getValue("org");
String org = _ivy.substitute(attributes.getValue("org"));
private void addDependencyArtifact(Attributes attributes, boolean includes) { String name = attributes.getValue("name"); name = name == null ? PatternMatcher.ANY_EXPRESSION : name; String type = attributes.getValue("type"); type = type == null ? PatternMatcher.ANY_EXPRESSION : type; ...
String module = attributes.getValue("module");
String module = _ivy.substitute(attributes.getValue("module"));
private void addDependencyArtifact(Attributes attributes, boolean includes) { String name = attributes.getValue("name"); name = name == null ? PatternMatcher.ANY_EXPRESSION : name; String type = attributes.getValue("type"); type = type == null ? PatternMatcher.ANY_EXPRESSION : type; ...
String confs = attributes.getValue("conf");
String confs = _ivy.substitute(attributes.getValue("conf"));
private void addDependencyArtifact(Attributes attributes, boolean includes) { String name = attributes.getValue("name"); name = name == null ? PatternMatcher.ANY_EXPRESSION : name; String type = attributes.getValue("type"); type = type == null ? PatternMatcher.ANY_EXPRESSION : type; ...
_md.addLicense(new License(attributes.getValue("name"), attributes.getValue("url")));
_md.addLicense(new License(_ivy.substitute(attributes.getValue("name")), _ivy.substitute(attributes.getValue("url"))));
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { try { if ("ivy-module".equals(qName)) { String version = attributes.getValue("version"); int versionIndex = ALLOWED_VERSIONS.indexOf(version); ...
_md.setHomePage(attributes.getValue("homepage"));
_md.setHomePage(_ivy.substitute(attributes.getValue("homepage")));
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { try { if ("ivy-module".equals(qName)) { String version = attributes.getValue("version"); int versionIndex = ALLOWED_VERSIONS.indexOf(version); ...
String ext = attributes.getValue("ext"); ext = ext != null?ext:attributes.getValue("type"); _artifact = new MDArtifact(_md, attributes.getValue("name"), attributes.getValue("type"), ext); String confs = attributes.getValue("conf");
String ext = _ivy.substitute(attributes.getValue("ext")); ext = ext != null?ext:_ivy.substitute(attributes.getValue("type")); _artifact = new MDArtifact(_md, _ivy.substitute(attributes.getValue("name")), _ivy.substitute(attributes.getValue("type")), ext); String confs = _ivy.substitute(attributes.getValue("conf"));
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { try { if ("ivy-module".equals(qName)) { String version = attributes.getValue("version"); int versionIndex = ALLOWED_VERSIONS.indexOf(version); ...
boolean force = Boolean.valueOf(attributes.getValue("force")).booleanValue(); boolean changing = Boolean.valueOf(attributes.getValue("changing")).booleanValue();
boolean force = Boolean.valueOf(_ivy.substitute(attributes.getValue("force"))).booleanValue(); boolean changing = Boolean.valueOf(_ivy.substitute(attributes.getValue("changing"))).booleanValue();
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { try { if ("ivy-module".equals(qName)) { String version = attributes.getValue("version"); int versionIndex = ALLOWED_VERSIONS.indexOf(version); ...
String transitiveValue = attributes.getValue("transitive");
String transitiveValue = _ivy.substitute(attributes.getValue("transitive"));
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { try { if ("ivy-module".equals(qName)) { String version = attributes.getValue("version"); int versionIndex = ALLOWED_VERSIONS.indexOf(version); ...
String confs = attributes.getValue("conf");
String confs = _ivy.substitute(attributes.getValue("conf"));
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { try { if ("ivy-module".equals(qName)) { String version = attributes.getValue("version"); int versionIndex = ALLOWED_VERSIONS.indexOf(version); ...
String conf = attributes.getValue("name");
String conf = _ivy.substitute(attributes.getValue("name"));
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { try { if ("ivy-module".equals(qName)) { String version = attributes.getValue("version"); int versionIndex = ALLOWED_VERSIONS.indexOf(version); ...
String visibility = attributes.getValue("visibility"); String ext = attributes.getValue("extends");
String visibility = _ivy.substitute(attributes.getValue("visibility")); String ext = _ivy.substitute(attributes.getValue("extends"));
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { try { if ("ivy-module".equals(qName)) { String version = attributes.getValue("version"); int versionIndex = ALLOWED_VERSIONS.indexOf(version); ...
attributes.getValue("description"),
_ivy.substitute(attributes.getValue("description")),
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { try { if ("ivy-module".equals(qName)) { String version = attributes.getValue("version"); int versionIndex = ALLOWED_VERSIONS.indexOf(version); ...
String mappeds = attributes.getValue("mapped");
String mappeds = _ivy.substitute(attributes.getValue("mapped"));
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { try { if ("ivy-module".equals(qName)) { String version = attributes.getValue("version"); int versionIndex = ALLOWED_VERSIONS.indexOf(version); ...
_dd.addDependencyConfiguration(_conf, attributes.getValue("name"));
_dd.addDependencyConfiguration(_conf, _ivy.substitute(attributes.getValue("name")));
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { try { if ("ivy-module".equals(qName)) { String version = attributes.getValue("version"); int versionIndex = ALLOWED_VERSIONS.indexOf(version); ...
String matcherName = attributes.getValue("matcher");
String matcherName = _ivy.substitute(attributes.getValue("matcher"));
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { try { if ("ivy-module".equals(qName)) { String version = attributes.getValue("version"); int versionIndex = ALLOWED_VERSIONS.indexOf(version); ...
public void addAck(Object xid, AckInfo ackInfo)
public void addAck(Object xid, AckInfo ackInfo) throws JMSException
public void addAck(Object xid, AckInfo ackInfo) { if (log.isTraceEnabled()) { log.trace("Addding ack for xid:" + xid); } TxState tx = getTx(xid); tx.acks.add(ackInfo); }
if (tx == null) { throw new JMSException("There is no transaction with id:" + xid); }
public void addAck(Object xid, AckInfo ackInfo) { if (log.isTraceEnabled()) { log.trace("Addding ack for xid:" + xid); } TxState tx = getTx(xid); tx.acks.add(ackInfo); }
log.info("blah");
public void test_Simple_NTP_NLA() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sessReceive = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer cons = ...
cond.getArgs().put("negate", String.valueOf(cond.isNegate()));
public void modify(ConditionDescriptor cond) { ConfigConditionDescriptor condition; if(cond.getName() != null) { condition = new ConfigConditionDescriptor(getConfigDescriptor(cond)); } else { condition = new ConfigConditionDescriptor(getModel().getPalette()); condition.setType(cond.ge...
Dimension d1 = l.preferredLayoutSize(c); Dimension d2 = getMinimumOptionPaneSize();
Dimension d1 = l.preferredLayoutSize(c); Dimension d2 = getMinimumOptionPaneSize(); d1.width = Math.max(d1.width, d2.width); d1.height = Math.max(d1.height, d2.height);
public Dimension getPreferredSize(JComponent c) { if (c == null) return getMinimumOptionPaneSize(); if (c != pane) return null; LayoutManager l = c.getLayout(); if (l == null) return getMinimumOptionPaneSize(); Dimension d1 = l.preferredLayoutSize(c); Dimension d2 = getMinimumOptionPaneSize(); d1.width = ...
d1.width = Math.max(d1.width, d2.width); d1.height = Math.max(d1.height, d2.height); return d2; }
return d2; }
public Dimension getPreferredSize(JComponent c) { if (c == null) return getMinimumOptionPaneSize(); if (c != pane) return null; LayoutManager l = c.getLayout(); if (l == null) return getMinimumOptionPaneSize(); Dimension d1 = l.preferredLayoutSize(c); Dimension d2 = getMinimumOptionPaneSize(); d1.width = ...
JLabel message = pane.msg != null ? new JLabel((String) pane.msg) : null; JButton ok_button = new JButton("Ok");
JLabel message = null; JButton ok_button = new JButton("Ok");
public void installUI(JComponent c) { super.installUI(c); pane = (JOptionPane) c; System.out.println(" -------------: " + pane); JLabel message = pane.msg != null ? new JLabel((String) pane.msg) : null; JButton ok_button = new JButton("Ok"); ok_button.addActionListener(new ActionListener() { public void ac...
if (pane.dialog.isModal()) { System.out.println("modal dialog !!"); pane.dialog.setModal(false); } pane.dialog.setVisible(false);
if (pane.dialog.isModal()) { System.out.println("modal dialog !!"); pane.dialog.setModal(false);
public void installUI(JComponent c) { super.installUI(c); pane = (JOptionPane) c; System.out.println(" -------------: " + pane); JLabel message = pane.msg != null ? new JLabel((String) pane.msg) : null; JButton ok_button = new JButton("Ok"); ok_button.addActionListener(new ActionListener() { public void ac...
});
pane.dialog.setVisible(false); } });
public void installUI(JComponent c) { super.installUI(c); pane = (JOptionPane) c; System.out.println(" -------------: " + pane); JLabel message = pane.msg != null ? new JLabel((String) pane.msg) : null; JButton ok_button = new JButton("Ok"); ok_button.addActionListener(new ActionListener() { public void ac...
if (pane.args != null) { for (int i = 0; i < pane.args.length; i++) { Object o = pane.args[i]; if (o != null) { if (o instanceof String) { String s = (String) o; JLabel m = new JLabel(s); pane.add(m); } else if (o instanceof Component) { Component com = (Component) o; pane.add(com); } else { System.out.println("UNRECOG...
Object[] options = null; if (options != null) { for (int i=0; i<options.length; i++) { Object o = options[i]; if (o != null) { if (o instanceof String) { String s = (String) o; JLabel m = new JLabel(s); pane.add(m); } else if (o instanceof Component) { Component com = (Component) o; pane.add(com); } else { System.out.p...
public void installUI(JComponent c) { super.installUI(c); pane = (JOptionPane) c; System.out.println(" -------------: " + pane); JLabel message = pane.msg != null ? new JLabel((String) pane.msg) : null; JButton ok_button = new JButton("Ok"); ok_button.addActionListener(new ActionListener() { public void ac...
if (pane.dialog.isModal()) { System.out.println("modal dialog !!"); pane.dialog.setModal(false); } pane.dialog.setVisible(false);
if (pane.dialog.isModal()) { System.out.println("modal dialog !!"); pane.dialog.setModal(false);
public void actionPerformed(ActionEvent a) { System.out.println("ACTION ---> " + a); // pane.dialog.dispose(); if (pane.dialog.isModal()) { System.out.println("modal dialog !!"); pane.dialog.setModal(false); } pane.dialog.setVisible(false); }