rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
panel.hovered_element = ib.getRealElement(); XRLog.general("Element "+panel.hovered_element+" entered"); | public void mouseEntered( MouseEvent evt ) { InlineBox ib = findInlineBox(evt); restyle(ib); } | |
restyle(ib); | public void mouseExited( MouseEvent evt ) { InlineBox ib = findInlineBox(evt); restyle(ib); } | |
if(prev != null && prev != ib) { | /* if(prev != null && prev != ib) { | private void restyle(InlineBox ib) { // if moved out of the old block then unstyle it if(prev != null && prev != ib) { Layout lt = LayoutFactory.getLayout(prev.getRealElement()); if(lt instanceof InlineLayout) { ((InlineLayout)lt).restyleNormal(panel.getContext(), ... |
} | }*/ | private void restyle(InlineBox ib) { // if moved out of the old block then unstyle it if(prev != null && prev != ib) { Layout lt = LayoutFactory.getLayout(prev.getRealElement()); if(lt instanceof InlineLayout) { ((InlineLayout)lt).restyleNormal(panel.getContext(), ... |
} if(prev != null) { boolean b = panel.getContext().css.wasHoverRestyled(prev.getRealElement()); u.p("previous was styled = " + b); | private void restyle(InlineBox ib) { // if moved out of the old block then unstyle it if(prev != null && prev != ib) { Layout lt = LayoutFactory.getLayout(prev.getRealElement()); if(lt instanceof InlineLayout) { ((InlineLayout)lt).restyleNormal(panel.getContext(), ... | |
Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); | Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor()); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor()); | public void test1() throws Throwable { Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); Message[] msgs = new Message[150]; Mes... |
if (log.isTraceEnabled()) { log.trace(this + " acknowledging delivery in tx:" + tx); } | if (trace) { log.trace(this + " acknowledging delivery in tx:" + tx); } | public synchronized void acknowledge(Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " acknowledging delivery in tx:" + tx); } // deals with the race condition when acknowledgment arrives before the delivery // is returned back to the sending delivery observer ... |
if (log.isTraceEnabled()) { log.trace(this + " setting done to true"); } | if (trace) { log.trace(this + " setting done to true"); } | public synchronized void acknowledge(Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " acknowledging delivery in tx:" + tx); } // deals with the race condition when acknowledgment arrives before the delivery // is returned back to the sending delivery observer ... |
if (log.isTraceEnabled()) { log.trace(this + " cancelling delivery"); } | if (trace) { log.trace(this + " cancelling delivery"); } | public synchronized void cancel() throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " cancelling delivery"); } // deals with the race condition when cancellation arrives before the delivery // is returned back to the sending delivery observer observer.cancel(this); ... |
public JBossXAResource(ResourceManager rm, SessionDelegate session, SessionState sessionState) { trace = log.isTraceEnabled(); | public JBossXAResource(ResourceManager rm, SessionState sessionState) { this.rm = rm; | public JBossXAResource(ResourceManager rm, SessionDelegate session, SessionState sessionState) { trace = log.isTraceEnabled(); this.rm = rm; this.session = session; this.sessionState = sessionState; } |
this.rm = rm; this.session = session; this.sessionState = sessionState; | this.sessionState = sessionState; this.connection = (ConnectionDelegate)((ConnectionState)sessionState.getParent()).getDelegate(); | public JBossXAResource(ResourceManager rm, SessionDelegate session, SessionState sessionState) { trace = log.isTraceEnabled(); this.rm = rm; this.session = session; this.sessionState = sessionState; } |
if (trace) | if (log.isTraceEnabled()) { | public void commit(Xid xid, boolean onePhase) throws XAException { if (trace) log.trace("Commit xid=" + xid + ", onePhase=" + onePhase + " " + this); rm.commit(xid, onePhase); } |
rm.commit(xid, onePhase); | rm.commit(xid, onePhase, connection); | public void commit(Xid xid, boolean onePhase) throws XAException { if (trace) log.trace("Commit xid=" + xid + ", onePhase=" + onePhase + " " + this); rm.commit(xid, onePhase); } |
if (trace) | if (log.isTraceEnabled()) { | public void end(Xid xid, int flags) throws XAException { if (trace) log.trace("End xid=" + xid + ", flags=" + flags + " " +this); synchronized (this) { switch (flags) { case TMSUSPEND : unsetCurrentTransactionId(xid); rm.suspendTx(xid); ... |
} | public void end(Xid xid, int flags) throws XAException { if (trace) log.trace("End xid=" + xid + ", flags=" + flags + " " +this); synchronized (this) { switch (flags) { case TMSUSPEND : unsetCurrentTransactionId(xid); rm.suspendTx(xid); ... | |
if (trace) | if (log.isTraceEnabled()) { | public void forget(Xid xid) throws XAException { if (trace) log.trace("Forget xid=" + xid + " " + this); } |
} | public void forget(Xid xid) throws XAException { if (trace) log.trace("Forget xid=" + xid + " " + this); } | |
} | public boolean isSameRM(XAResource xaResource) throws XAException { if (!(xaResource instanceof JBossXAResource)) return false; return ((JBossXAResource)xaResource).rm == this.rm; } | |
return rm.prepare(xid); | return rm.prepare(xid, connection); | public int prepare(Xid xid) throws XAException { if (log.isTraceEnabled()) log.trace("Prepare xid=" + xid + " " + this); return rm.prepare(xid); } |
} | public Xid[] recover(int arg1) throws XAException { if (log.isTraceEnabled()) log.trace("Recover arg1=" + arg1 + " " + this); return new Xid[0]; } | |
rm.rollback(xid); try { String asfConsumerID = sessionState.getAsfConsumerID(); session.cancelDeliveries(asfConsumerID); } catch (JMSException e) { throw new XAException(XAException.XAER_RMERR); | public void rollback(Xid xid) throws XAException { if (log.isTraceEnabled()) log.trace("Rollback xid=" + xid + " " + this); rm.rollback(xid); try { String asfConsumerID = sessionState.getAsfConsumerID(); session.cancelDeliveries(asfConsumerID); } cat... | |
rm.rollback(xid, connection); | public void rollback(Xid xid) throws XAException { if (log.isTraceEnabled()) log.trace("Rollback xid=" + xid + " " + this); rm.rollback(xid); try { String asfConsumerID = sessionState.getAsfConsumerID(); session.cancelDeliveries(asfConsumerID); } cat... | |
if (trace) log.trace("Setting current tx xid=" + xid + " previous: " + this.currentTxID + " " + this); this.currentTxID = xid; | if (log.isTraceEnabled()) { log.trace("Setting current tx xid=" + xid + " previous: " + sessionState.getCurrentTxId() + " " + this); } sessionState.setCurrentTxId(xid); | private void setCurrentTransactionId(final Xid xid) { if (xid == null) throw new org.jboss.util.NullArgumentException("xid"); if (trace) log.trace("Setting current tx xid=" + xid + " previous: " + this.currentTxID + " " + this); this.currentTxID = xid; } |
if (this.currentTxID != null) | if (sessionState.getCurrentTxId() != null) | public void start(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); boolean convertTx = false; if (this.currentTxID != null) { if (flags == TMNOFLAGS && this.currentTxID instanceof LocalTxXid... |
if (flags == TMNOFLAGS && this.currentTxID instanceof LocalTxXid) | if (flags == TMNOFLAGS && sessionState.getCurrentTxId() instanceof LocalTxXid) | public void start(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); boolean convertTx = false; if (this.currentTxID != null) { if (flags == TMNOFLAGS && this.currentTxID instanceof LocalTxXid... |
} else { throw new XAException(XAException.XAER_OUTSIDE); | public void start(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); boolean convertTx = false; if (this.currentTxID != null) { if (flags == TMNOFLAGS && this.currentTxID instanceof LocalTxXid... | |
setCurrentTransactionId(rm.convertTx((LocalTxXid)this.currentTxID, xid)); | setCurrentTransactionId(rm.convertTx((LocalTxXid)sessionState.getCurrentTxId(), xid)); | public void start(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); boolean convertTx = false; if (this.currentTxID != null) { if (flags == TMNOFLAGS && this.currentTxID instanceof LocalTxXid... |
if (trace) log.trace("Unsetting current tx xid=" + xid + " previous: " + this.currentTxID + " " + this); | if (log.isTraceEnabled()) { log.trace("Unsetting current tx xid=" + xid + " previous: " + sessionState.getCurrentTxId() + " " + this); } | private void unsetCurrentTransactionId(final Xid xid) { if (xid == null) throw new org.jboss.util.NullArgumentException("xid"); if (trace) log.trace("Unsetting current tx xid=" + xid + " previous: " + this.currentTxID + " " + this); // Don't unset the xid if it has previously been s... |
if (xid.equals(this.currentTxID)) this.currentTxID = rm.createLocalTx(); | if (xid.equals(sessionState.getCurrentTxId())) { sessionState.setCurrentTxId(rm.createLocalTx()); } | private void unsetCurrentTransactionId(final Xid xid) { if (xid == null) throw new org.jboss.util.NullArgumentException("xid"); if (trace) log.trace("Unsetting current tx xid=" + xid + " previous: " + this.currentTxID + " " + this); // Don't unset the xid if it has previously been s... |
private void check(Invocation inv, Destination dest, CheckType checkType, ServerConnectionEndpoint conn) | private void check(Destination dest, CheckType checkType, ServerConnectionEndpoint conn) | private void check(Invocation inv, Destination dest, CheckType checkType, ServerConnectionEndpoint conn) throws JMSSecurityException { JBossDestination jbDest = (JBossDestination)dest; SecurityManager securityManager = conn.getServerPeer().getSecurityManager(); ... |
JBossDestination jbDest = (JBossDestination)dest; SecurityManager securityManager = conn.getServerPeer().getSecurityManager(); SecurityMetadata securityMetadata = securityManager.getSecurityMetadata(jbDest.getName()); | JBossDestination jbDest = (JBossDestination)dest; SecurityManager securityManager = conn.getServerPeer().getSecurityManager(); SecurityMetadata securityMetadata = securityManager.getSecurityMetadata(jbDest.isQueue(), jbDest.getName()); | private void check(Invocation inv, Destination dest, CheckType checkType, ServerConnectionEndpoint conn) throws JMSSecurityException { JBossDestination jbDest = (JBossDestination)dest; SecurityManager securityManager = conn.getServerPeer().getSecurityManager(); ... |
check(mi, dest, CheckType.READ, sess.getConnectionEndpoint()); | check(dest, CheckType.READ, sess.getConnectionEndpoint()); | public Object handleCreateBrowserDelegate(Invocation invocation) throws Throwable { //read permission required on the destination MethodInvocation mi = (MethodInvocation)invocation; Destination dest = (Destination)mi.getArguments()[0]; SessionAdvised del = (SessionAdvised)invo... |
check(mi, dest, CheckType.READ, sess.getConnectionEndpoint()); | check(dest, CheckType.READ, sess.getConnectionEndpoint()); | public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; //read permission required on the destination Destination dest = (Destination)mi.getArguments()[0]; SessionAdvised del = (SessionAdvised)invocatio... |
check(mi, dest, CheckType.CREATE, sess.getConnectionEndpoint()); | check(dest, CheckType.CREATE, sess.getConnectionEndpoint()); | public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; //read permission required on the destination Destination dest = (Destination)mi.getArguments()[0]; SessionAdvised del = (SessionAdvised)invocatio... |
check(mi, dest, CheckType.WRITE, sess.getConnectionEndpoint()); | check(dest, CheckType.WRITE, sess.getConnectionEndpoint()); | public Object handleCreateProducerDelegate(Invocation invocation) throws Throwable { //write permission required on the destination //Null represents an anonymous producer - the destination //for this is specified at send time MethodInvocation mi = (MethodInvocation)invocation; ... |
check(mi, dest, CheckType.WRITE, prod.getSessionEndpoint().getConnectionEndpoint()); | check(dest, CheckType.WRITE, prod.getSessionEndpoint().getConnectionEndpoint()); | public Object handleSend(Invocation invocation) throws Throwable { //anonymous producer //if destination is not null then write permissions required MethodInvocation mi = (MethodInvocation)invocation; Destination dest = (Destination)mi.getArguments()[0]; ProducerAdv... |
macAttrib.put(IMac.MAC_KEY_MATERIAL, new String(password).getBytes("UTF-8")); | macKeyMaterial = new String(password).getBytes(encoding); | public void setup(Map attributes) { Map macAttrib = new HashMap(); macAttrib.put(HMac.USE_WITH_PKCS5_V2, Boolean.TRUE); byte[] s = (byte[]) attributes.get(IPBE.SALT); if (s == null) { if (salt == null) { throw new IllegalArgumentException("no salt specified"); } /... |
throw new Error(uee.getMessage()); | throw new IllegalArgumentException("Unknown or unsupported encoding: " + encoding, uee); | public void setup(Map attributes) { Map macAttrib = new HashMap(); macAttrib.put(HMac.USE_WITH_PKCS5_V2, Boolean.TRUE); byte[] s = (byte[]) attributes.get(IPBE.SALT); if (s == null) { if (salt == null) { throw new IllegalArgumentException("no salt specified"); } /... |
{ throw new IllegalArgumentException("no password specified"); } | throw new IllegalArgumentException("Neither password nor key-material were specified"); | public void setup(Map attributes) { Map macAttrib = new HashMap(); macAttrib.put(HMac.USE_WITH_PKCS5_V2, Boolean.TRUE); byte[] s = (byte[]) attributes.get(IPBE.SALT); if (s == null) { if (salt == null) { throw new IllegalArgumentException("no salt specified"); } /... |
root.history.goNewDocument(doc); | root.history.goNewDocument(doc, url); | public void loadPage(Document doc, URL url) throws Exception { view.setDocument(doc, url); view.addDocumentListener(this); root.history.goNewDocument(doc); updateButtons(); } |
inline_block.y = curr_line.y; | Point offset = c.getBlockFormattingContext().getOffset(inline_block); inline_block.y += offset.y; | public static InlineBox generateFloatedBlockInlineBox(Context c, Content content, int avail, LineBox curr_line) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.set... |
try { readConfigurationFile(); configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); try { NamingManager. setInitialContextFactoryBuilder(new InVMInitialContextFactoryBuilder()); } catch(IllegalStateException e) { } Hashtable t = InVMInitialContextFact... | start(true); | public void start() throws Exception { try { readConfigurationFile(); configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); //TODO: need to think more about this; if I don't do it, though, bind() fails be... |
renderer = getDefaultRenderer(dataModel.getColumnClass(column)); | renderer = getDefaultRenderer(getColumnClass(column)); | public TableCellRenderer getCellRenderer(int row, int column) { TableCellRenderer renderer = columnModel.getColumn(column).getCellRenderer(); if (renderer == null) renderer = getDefaultRenderer(dataModel.getColumnClass(column)); return renderer; } |
return dataModel.getColumnClass(column); | return getModel().getColumnClass(column); | public Class getColumnClass(int column) { return dataModel.getColumnClass(column); } |
u.p("yo! got here w/ " + elem); | public Layout getLayout(Context c, Node elem ) { // we have to do the inputs manually since they don't depend on // the element name if ( elem.getNodeType() == elem.ELEMENT_NODE ) { if ( elem.getNodeName().equals( "input" ) ) { Element el = (Element)elem; ... | |
ConnectionFactoryDelegate d = jmsAdvisor.getServerPeer().getConnectionFactoryDelegate(); | String connectionFactoryID = (String)invocation.getMetaData(). getMetaData(JMSAdvisor.JMS, JMSAdvisor.CONNECTION_FACTORY_ID); ConnectionFactoryDelegate d = jmsAdvisor.getServerPeer().getConnectionFactoryDelegate(connectionFactoryID); | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); JMSAdvisor jmsAdvisor = (JMSAdvisor)mi.getA... |
String getNodeId(); | int getNodeId(); | String getNodeId(); |
public TypeCode create_recursive_sequence_tc(int bound, int offset) { RecordTypeCode r = new RecordTypeCode(TCKind.tk_struct); for (int i = 0; i < offset; i++) r.add(new StructMember()); TypeCode recurs = new PrimitiveTypeCode(TCKind.tk_sequence); r.add(new StructMember("", recurs, null)); return r; } | public abstract TypeCode create_recursive_sequence_tc(int bound, int offset); | public TypeCode create_recursive_sequence_tc(int bound, int offset) { RecordTypeCode r = new RecordTypeCode(TCKind.tk_struct); for (int i = 0; i < offset; i++) r.add(new StructMember()); TypeCode recurs = new PrimitiveTypeCode(TCKind.tk_sequence); r.add(new StructMember("", recurs, null)); return... |
public Context get_default_context() { return new gnuContext("", null); } | public abstract Context get_default_context(); | public Context get_default_context() { return new gnuContext("", null); } |
public int getAcknowledgeMode(); | public int getAcknowledgeMode() throws JMSException; | public int getAcknowledgeMode(); |
public MessageListener getMessageListener(); | public MessageListener getMessageListener() throws JMSException; | public MessageListener getMessageListener(); |
public boolean getTransacted(); | public boolean getTransacted() throws JMSException; | public boolean getTransacted(); |
public void setAcknowledgeMode(int ackMode); | public void setAcknowledgeMode(int ackMode) throws JMSException; | public void setAcknowledgeMode(int ackMode); |
public void setMessageListener(MessageListener listener); | public void setMessageListener(MessageListener listener) throws JMSException; | public void setMessageListener(MessageListener listener); |
public void setTransacted(boolean transacted); | public void setTransacted(boolean transacted) throws JMSException; | public void setTransacted(boolean transacted); |
public void internalFrameActivated(InternalFrameEvent event); | void internalFrameActivated(InternalFrameEvent event); | public void internalFrameActivated(InternalFrameEvent event); |
public void internalFrameClosed(InternalFrameEvent event); | void internalFrameClosed(InternalFrameEvent event); | public void internalFrameClosed(InternalFrameEvent event); |
public void internalFrameClosing(InternalFrameEvent event); | void internalFrameClosing(InternalFrameEvent event); | public void internalFrameClosing(InternalFrameEvent event); |
public void internalFrameDeactivated(InternalFrameEvent event); | void internalFrameDeactivated(InternalFrameEvent event); | public void internalFrameDeactivated(InternalFrameEvent event); |
public void internalFrameDeiconified(InternalFrameEvent event); | void internalFrameDeiconified(InternalFrameEvent event); | public void internalFrameDeiconified(InternalFrameEvent event); |
public void internalFrameIconified(InternalFrameEvent event); | void internalFrameIconified(InternalFrameEvent event); | public void internalFrameIconified(InternalFrameEvent event); |
public void internalFrameOpened(InternalFrameEvent event); | void internalFrameOpened(InternalFrameEvent event); | public void internalFrameOpened(InternalFrameEvent event); |
void submit(JComponent source) { | public void submit(JComponent source) { | void submit(JComponent source) { StringBuffer data = new StringBuffer(); Iterator fields = components.entrySet().iterator(); while (fields.hasNext()) { Map.Entry field = (Map.Entry) fields.next(); Element e = (Element) field.getKey(); JComponent cc = (JComponent... |
if (consumer != null) | public void setDimensions(int width, int height) { consumer.setDimensions(width, height); } | |
if (consumer != null) | public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { consumer.setPixels(x, y, w, h, model, pixels, offset, scansize); } | |
if (consumer != null) | public void setProperties(Hashtable props) { props.put("filters", "ImageFilter"); consumer.setProperties(props); } | |
log.trace(this + "Received message(commit): " + prodName + ":" + msgCount); | public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; outerC... | |
log.trace("Committing"); | public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; outerC... | |
log.trace("Received message(rollback): " + prodName + ":" + msgCount); | public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; outerC... | |
log.trace("Rolling back"); | public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; outerC... | |
prev_inline.rightPadding = prev_inline.totalRightPadding(c.getCurrentStyle()); prev_inline.width += prev_inline.rightPadding; pendingRightPadding -= prev_inline.rightPadding; | int rp = prev_inline.totalRightPadding(c.getCurrentStyle()); prev_inline.rightPadding += rp; prev_inline.width += rp; pendingRightPadding -= rp; remaining_width -= rp; | public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCu... |
reliableDels = new ArrayList(); reliableDels.add(del); | reliableDels = new ArrayList(); | Object execute(PostOfficeInternal office) throws Throwable { TransactionId id = new TransactionId(nodeId, txId); if (hold) { List dels = office.getDeliveries(queueName, numMessages); PullMessagesResponse response = new PullMessagesResponse(dels.size()); ... |
5000, 5000, redistPolicy, rf, 1); | 5000, 5000, redistPolicy, rf, 1, 1000); | protected ClusteredPostOffice createClusteredPostOffice(String nodeId, String groupName) throws Exception { MessagePullPolicy redistPolicy = new NullMessagePullPolicy(); FilterFactory ff = new SimpleFilterFactory(); ClusterRouterFactory rf = new DefaultRouterFactory(); Default... |
List msgs = sendMessages(persistent, office2, 3, null); | List msgs = sendMessages("topic", persistent, office2, 3, null); | protected void local(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPostOf... |
msgs = sendMessages(persistent, office2, 3, null); | msgs = sendMessages("topic", persistent, office2, 3, null); | protected void local(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPostOf... |
msgs = sendMessages(persistent, office3, 3, null); | msgs = sendMessages("topic", persistent, office3, 3, null); | protected void local(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPostOf... |
List msgs = sendMessages(persistent, office1, 3, null); | List msgs = sendMessages("topic", persistent, office1, 3, null); | protected void notLocal(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPos... |
msgs = sendMessages(persistent, office1, 3, null); | msgs = sendMessages("topic", persistent, office1, 3, null); | protected void notLocal(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPos... |
if (!ServerManagement.isRemote()) { sc.stop(); sc = null; } pm.stop(); tr.stop(); ms.stop(); | public void tearDown() throws Exception { if (!ServerManagement.isRemote()) { sc.stop(); sc = null; } pm.stop(); tr.stop(); ms.stop(); super.tearDown(); } | |
cons.cancelMessage(id); | cons.cancelDelivery(id); | public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, int consumerID, boolean isConnectionConsumer, ... |
cancelMessages(ids); | cancelDeliveries(ids); | public void close() throws JMSException { try { synchronized (mainLock) { if (closed) { return; } closing = true; //We wait for any activation in progress to complete and the resulting message ... |
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { | static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle, LinkedList pushedStyles) { | static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl... |
c.pushStyle(c.getCss().getCascadedStyle(sp.getElement(), restyle)); | CascadedStyle style = c.getCss().getCascadedStyle(sp.getElement(), restyle); c.pushStyle(style); if (pushedStyles != null) pushedStyles.addLast(style); | static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl... |
paintPadding(c, line, ib); | int padWidth = ib.totalLeftPadding(c.getCurrentStyle()); paintLeftPadding(c, line, ib, padX, padWidth); padX += padWidth; | static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl... |
int padding_xoff = inline.totalLeftPadding(c.getCurrentStyle()); c.translate(padding_xoff,0); | static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl... | |
c.translate(-padding_xoff,0); | c.translate(-padX, 0); | static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl... |
int padWidth = ib.totalRightPadding(c.getCurrentStyle()); paintRightPadding(c, line, ib, padX, padWidth); padX += padWidth; | static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl... | |
if (pushedStyles != null) pushedStyles.removeLast(); | static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl... | |
c.pushStyle(block.firstLineStyle); | firstLineStyle = block.firstLineStyle; | static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such c.pushStyle(new CascadedStyle()); //BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the con... |
paintLine(c, (LineBox) box.getChild(i), blockLineHeight, blockLineMetrics, restyle); | paintLine(c, (LineBox) box.getChild(i), blockLineHeight, blockLineMetrics, restyle, firstLineStyle); | static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such c.pushStyle(new CascadedStyle()); //BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the con... |
c.popStyle(); | firstLineStyle = null; | static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such c.pushStyle(new CascadedStyle()); //BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the con... |
static void paintLine(Context c, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { | static void paintLine(Context c, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle, CascadedStyle firstLineStyle) { | static void paintLine(Context c, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { // get Xx and y int lx = line.x; int ly = line.y + line.getBaseline(); // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child ... |
paintInline(c, box, lx, ly, line, blockLineHeight, blockLineMetrics, restyle); | paintInline(c, box, lx, ly, line, blockLineHeight, blockLineMetrics, restyle, pushedStyles); } if (firstLineStyle != null) { for (int i = 0; i < pushedStyles.size(); i++) { c.popStyle(); } c.popStyle(); for (Iterator i = pushedStyles.iterator(); i.hasNext();) { c.pushStyle((CascadedStyle) i.next()); } | static void paintLine(Context c, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { // get Xx and y int lx = line.x; int ly = line.y + line.getBaseline(); // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child ... |
this.connections = new ConcurrentHashMap(); | public ServerPeer(String serverPeerID, String defaultQueueJNDIContext, String defaultTopicJNDIContext) throws Exception { this.serverPeerID = serverPeerID; this.defaultQueueJNDIContext = defaultQueueJNDIContext; this.defaultTopicJNDIContext = defaultTopicJNDIC... | |
connectionManager = new ConnectionManagerImpl(); | public ServerPeer(String serverPeerID, String defaultQueueJNDIContext, String defaultTopicJNDIContext) throws Exception { this.serverPeerID = serverPeerID; this.defaultQueueJNDIContext = defaultQueueJNDIContext; this.defaultTopicJNDIContext = defaultTopicJNDIC... | |
return this; | return connectionManager; | public ConnectionManager getConnectionManager() { return this; } |
log.info("Getting invokerlocator for " + connectorName); | private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j... | |
mbeanServer.invoke(connectorName, "setLeasePeriod", new Object[] {new Long(CONNECTION_LEASE_PERIOD)}, new String[] {"long"}); mbeanServer.invoke(connectorName, "addConnectionListener", new Object[] {connectionManager}, new String[] {"org.jboss.remoting.ConnectionListener"}); | private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j... | |
public void loadPage(String url_text) throws Exception { logger.info("Loading Page: " + url_text); current_url = url_text; DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance(); fact.setValidating(true); DocumentBuilder builder = fact.newDocumentBuilder(); builder.setErrorHandler(root.error_handler); Doc... | public void loadPage(Document doc, URL url) throws Exception { view.setDocument(doc,url); view.addDocumentListener(this); root.history.goNewDocument(doc); updateButtons(); | public void loadPage(String url_text) throws Exception { logger.info("Loading Page: " + url_text); current_url = url_text; DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance(); fact.setValidating(true); DocumentBuilder builder = fact.newDocumentBuilde... |
throw new IllegalStateException("This method has been deprecated and shouldn't be used"); | return endpoint.getIdBlock(size); | public IdBlock getIdBlock(int size) throws JMSException { throw new IllegalStateException("This method has been deprecated and shouldn't be used"); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.