rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
wrap.end(); | try { wrap.end(); } finally { if (wrap.failed) { this.decPersistentCounts(addsToReverse); } this.releaseLocks(refs); } | protected void handleBeforePrepare(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //We insert a tx record and //a row for each ref with + //and update the row for each delivery with "-" PreparedStatement psReference = null; PreparedStatement psInsertMessage = n... |
conn = ds.getConnection(); | this.getLocks(refs); conn = getConnection(); | protected void handleBeforeRollback(List refsToAdd, Transaction tx) throws Exception { //remove refs marked with + //and update rows marked with - to C PreparedStatement psDeleteMessage = null; PreparedStatement psUpdateMessage = null; Connection conn = null; TransactionWr... |
Iterator iter = refsToAdd.iterator(); | iter = refsToAdd.iterator(); | protected void handleBeforeRollback(List refsToAdd, Transaction tx) throws Exception { //remove refs marked with + //and update rows marked with - to C PreparedStatement psDeleteMessage = null; PreparedStatement psUpdateMessage = null; Connection conn = null; TransactionWr... |
synchronized (m) { | boolean removed; if (m.getPersistentChannelCount() == 0) { removeMessage(m, psDeleteMessage); | protected void handleBeforeRollback(List refsToAdd, Transaction tx) throws Exception { //remove refs marked with + //and update rows marked with - to C PreparedStatement psDeleteMessage = null; PreparedStatement psUpdateMessage = null; Connection conn = null; TransactionWr... |
m.decPersistentChannelCount(); | removed = true; } else { updateMessageChannelCount(m, psUpdateMessage); | protected void handleBeforeRollback(List refsToAdd, Transaction tx) throws Exception { //remove refs marked with + //and update rows marked with - to C PreparedStatement psDeleteMessage = null; PreparedStatement psUpdateMessage = null; Connection conn = null; TransactionWr... |
boolean removed; if (m.getPersistentChannelCount() == 0) | removed = false; } if (batch) { if (removed) | protected void handleBeforeRollback(List refsToAdd, Transaction tx) throws Exception { //remove refs marked with + //and update rows marked with - to C PreparedStatement psDeleteMessage = null; PreparedStatement psUpdateMessage = null; Connection conn = null; TransactionWr... |
removeMessage(m, psDeleteMessage); removed = true; | psDeleteMessage.addBatch(); messageDeletionsInBatch = true; | protected void handleBeforeRollback(List refsToAdd, Transaction tx) throws Exception { //remove refs marked with + //and update rows marked with - to C PreparedStatement psDeleteMessage = null; PreparedStatement psUpdateMessage = null; Connection conn = null; TransactionWr... |
updateMessageChannelCount(m, psUpdateMessage); | psUpdateMessage.addBatch(); messageUpdatesInBatch = true; } } else { if (removed) { int rows = psDeleteMessage.executeUpdate(); | protected void handleBeforeRollback(List refsToAdd, Transaction tx) throws Exception { //remove refs marked with + //and update rows marked with - to C PreparedStatement psDeleteMessage = null; PreparedStatement psUpdateMessage = null; Connection conn = null; TransactionWr... |
removed = false; } if (batch) { if (removed) | if (trace) | protected void handleBeforeRollback(List refsToAdd, Transaction tx) throws Exception { //remove refs marked with + //and update rows marked with - to C PreparedStatement psDeleteMessage = null; PreparedStatement psUpdateMessage = null; Connection conn = null; TransactionWr... |
psDeleteMessage.addBatch(); messageDeletionsInBatch = true; } else { psUpdateMessage.addBatch(); messageUpdatesInBatch = true; | log.trace("deleted " + rows + " rows"); | protected void handleBeforeRollback(List refsToAdd, Transaction tx) throws Exception { //remove refs marked with + //and update rows marked with - to C PreparedStatement psDeleteMessage = null; PreparedStatement psUpdateMessage = null; Connection conn = null; TransactionWr... |
if (removed) | int rows = psUpdateMessage.executeUpdate(); if (trace) | protected void handleBeforeRollback(List refsToAdd, Transaction tx) throws Exception { //remove refs marked with + //and update rows marked with - to C PreparedStatement psDeleteMessage = null; PreparedStatement psUpdateMessage = null; Connection conn = null; TransactionWr... |
int rows = psDeleteMessage.executeUpdate(); if (trace) { log.trace("deleted " + rows + " rows"); } | log.trace("updated " + rows + " rows"); | protected void handleBeforeRollback(List refsToAdd, Transaction tx) throws Exception { //remove refs marked with + //and update rows marked with - to C PreparedStatement psDeleteMessage = null; PreparedStatement psUpdateMessage = null; Connection conn = null; TransactionWr... |
else { int rows = psUpdateMessage.executeUpdate(); if (trace) { log.trace("updated " + rows + " rows"); } } psDeleteMessage.close(); psDeleteMessage = null; psUpdateMessage.close(); psUpdateMessage = null; | protected void handleBeforeRollback(List refsToAdd, Transaction tx) throws Exception { //remove refs marked with + //and update rows marked with - to C PreparedStatement psDeleteMessage = null; PreparedStatement psUpdateMessage = null; Connection conn = null; TransactionWr... | |
} | psDeleteMessage.close(); psDeleteMessage = null; psUpdateMessage.close(); psUpdateMessage = null; } | protected void handleBeforeRollback(List refsToAdd, Transaction tx) throws Exception { //remove refs marked with + //and update rows marked with - to C PreparedStatement psDeleteMessage = null; PreparedStatement psUpdateMessage = null; Connection conn = null; TransactionWr... |
wrap.end(); | try { wrap.end(); } finally { if (wrap.failed) { this.incPersistentCounts(removesToReverse); } this.releaseLocks(refs); } | protected void handleBeforeRollback(List refsToAdd, Transaction tx) throws Exception { //remove refs marked with + //and update rows marked with - to C PreparedStatement psDeleteMessage = null; PreparedStatement psUpdateMessage = null; Connection conn = null; TransactionWr... |
insertMessageRef = sqlProperties.getProperty("INSERT_MESSAGE_REF", insertMessageRef); deleteMessageRef = sqlProperties.getProperty("DELETE_MESSAGE_REF", deleteMessageRef); updateMessageRef = sqlProperties.getProperty("UPDATE_MESSAGE_REF", updateMessageRef); updateMessageRefNotLoaded = sqlProperties.getProperty("UPDATE_... | protected void initSqlProperties() { insertMessageRef = sqlProperties.getProperty("INSERT_MESSAGE_REF", insertMessageRef); deleteMessageRef = sqlProperties.getProperty("DELETE_MESSAGE_REF", deleteMessageRef); updateMessageRef = sqlProperties.getProperty("UPDATE_MESSAGE_REF", updateMessageRef); ... | |
insertTransaction = sqlProperties.getProperty("INSERT_TRANSACTION", insertTransaction); deleteTransaction = sqlProperties.getProperty("DELETE_TRANSACTION", deleteTransaction); selectPreparedTransactions = sqlProperties.getProperty("SELECT_PREPARED_TRANSACTIONS", selectPreparedTransactions); | protected void initSqlProperties() { insertMessageRef = sqlProperties.getProperty("INSERT_MESSAGE_REF", insertMessageRef); deleteMessageRef = sqlProperties.getProperty("DELETE_MESSAGE_REF", deleteMessageRef); updateMessageRef = sqlProperties.getProperty("UPDATE_MESSAGE_REF", updateMessageRef); ... | |
createIdxMessageRefMessageId = sqlProperties.getProperty("CREATE_IDX_MESSAGE_REF_MESSAGEID", createIdxMessageRefMessageId); | createIdxMessageRefMessageId = sqlProperties.getProperty("CREATE_IDX_MESSAGE_REF_MESSAGEID", createIdxMessageRefMessageId); createIdxMessageRefLoaded = sqlProperties.getProperty("CREATE_IDX_MESSAGE_REF_LOADED", createIdxMessageRefLoaded); createIdxMessageRefReliable = sqlProperties.getProperty("CREATE_IDX_MESSAGE_REF_R... | protected void initSqlProperties() { insertMessageRef = sqlProperties.getProperty("INSERT_MESSAGE_REF", insertMessageRef); deleteMessageRef = sqlProperties.getProperty("DELETE_MESSAGE_REF", deleteMessageRef); updateMessageRef = sqlProperties.getProperty("UPDATE_MESSAGE_REF", updateMessageRef); ... |
insertMessage = sqlProperties.getProperty("INSERT_MESSAGE", insertMessage); createMessage = sqlProperties.getProperty("CREATE_MESSAGE", createMessage); updateMessageChannelCount = sqlProperties.getProperty("UPDATE_MESSAGE_CHANNEL_COUNT", updateMessageChannelCount); | messageIdColumn = sqlProperties.getProperty("MESSAGE_ID_COLUMN", messageIdColumn); removeAllNonReliableMessages = sqlProperties.getProperty("REMOVE_ALL_NONRELIABLE_MSGS", removeAllNonReliableMessages); createTransaction = sqlProperties.getProperty("CREATE_TRANSACTION", createTransaction); insertTransaction = sqlPrope... | protected void initSqlProperties() { insertMessageRef = sqlProperties.getProperty("INSERT_MESSAGE_REF", insertMessageRef); deleteMessageRef = sqlProperties.getProperty("DELETE_MESSAGE_REF", deleteMessageRef); updateMessageRef = sqlProperties.getProperty("UPDATE_MESSAGE_REF", updateMessageRef); ... |
conn = ds.getConnection(); | conn = getConnection(); | public void removeAllChannelData(long channelID) throws Exception { if (trace) { log.trace("removing all references for channel " + channelID); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); boolean success... |
Connection conn = ds.getConnection(); | Connection conn = getConnection(); Message m = ref.getMessage(); boolean decremented = false; | public void removeReference(long channelID, MessageReference ref, Transaction tx) throws Exception { if (tx != null) { //In a tx so we just add the ref in the tx in memory for now TransactionCallback callback = getCallback(tx); callback.addReferenceToRemove(channelID, ref); ... |
Message m = ref.getMessage(); | LockMap.instance.obtainLock(m); | public void removeReference(long channelID, MessageReference ref, Transaction tx) throws Exception { if (tx != null) { //In a tx so we just add the ref in the tx in memory for now TransactionCallback callback = getCallback(tx); callback.addReferenceToRemove(channelID, ref); ... |
synchronized (m) { m.decPersistentChannelCount(); if (m.getPersistentChannelCount() == 0) { psMessage = conn.prepareStatement(deleteMessage); removeMessage(m, psMessage); } else { psMessage = conn.prepareStatement(updateMessageChannelCount); updateMessageChannelCount(m, psMessage); } rows = psMessage.executeUpda... | updateMessageChannelCount(m, psMessage); | public void removeReference(long channelID, MessageReference ref, Transaction tx) throws Exception { if (tx != null) { //In a tx so we just add the ref in the tx in memory for now TransactionCallback callback = getCallback(tx); callback.addReferenceToRemove(channelID, ref); ... |
wrap.end(); | try { wrap.end(); } finally { if (wrap.failed && decremented) { m.incPersistentChannelCount(); } LockMap.instance.releaseLock(m); } | public void removeReference(long channelID, MessageReference ref, Transaction tx) throws Exception { if (tx != null) { //In a tx so we just add the ref in the tx in memory for now TransactionCallback callback = getCallback(tx); callback.addReferenceToRemove(channelID, ref); ... |
conn = ds.getConnection(); | getLocks(references); conn = getConnection(); | public void removeReferences(long channelID, List references) throws Exception { if (trace) { log.trace(this + " Removing " + references.size() + " refs from channel " + channelID); } Connection conn = null; PreparedStatement psDeleteReference = null; PreparedStatement psDeleteMessage =... |
synchronized (m) { m.decPersistentChannelCount(); | m.decPersistentChannelCount(); removesToReverse.add(ref); | public void removeReferences(long channelID, List references) throws Exception { if (trace) { log.trace(this + " Removing " + references.size() + " refs from channel " + channelID); } Connection conn = null; PreparedStatement psDeleteReference = null; PreparedStatement psDeleteMessage =... |
boolean removed; if (m.getPersistentChannelCount() == 0) { removeMessage(m, psDeleteMessage); | boolean removed; if (m.getPersistentChannelCount() == 0) { removeMessage(m, psDeleteMessage); removed = true; } else { updateMessageChannelCount(m, psUpdateMessage); removed = false; } if (usingBatchUpdates) { if (removed) { psDeleteMessage.addBatch(); messageDeletionsInBatch = true; } else { psUpdateMessage.addBa... | public void removeReferences(long channelID, List references) throws Exception { if (trace) { log.trace(this + " Removing " + references.size() + " refs from channel " + channelID); } Connection conn = null; PreparedStatement psDeleteReference = null; PreparedStatement psDeleteMessage =... |
removed = true; | if (trace) { log.trace("Deleted " + rows + " rows"); } | public void removeReferences(long channelID, List references) throws Exception { if (trace) { log.trace(this + " Removing " + references.size() + " refs from channel " + channelID); } Connection conn = null; PreparedStatement psDeleteReference = null; PreparedStatement psDeleteMessage =... |
updateMessageChannelCount(m, psUpdateMessage); | int rows = psUpdateMessage.executeUpdate(); | public void removeReferences(long channelID, List references) throws Exception { if (trace) { log.trace(this + " Removing " + references.size() + " refs from channel " + channelID); } Connection conn = null; PreparedStatement psDeleteReference = null; PreparedStatement psDeleteMessage =... |
removed = false; } if (usingBatchUpdates) { if (removed) | if (trace) | public void removeReferences(long channelID, List references) throws Exception { if (trace) { log.trace(this + " Removing " + references.size() + " refs from channel " + channelID); } Connection conn = null; PreparedStatement psDeleteReference = null; PreparedStatement psDeleteMessage =... |
psDeleteMessage.addBatch(); messageDeletionsInBatch = true; | log.trace("Updated " + rows + " rows"); | public void removeReferences(long channelID, List references) throws Exception { if (trace) { log.trace(this + " Removing " + references.size() + " refs from channel " + channelID); } Connection conn = null; PreparedStatement psDeleteReference = null; PreparedStatement psDeleteMessage =... |
else { psUpdateMessage.addBatch(); messageUpdatesInBatch = true; } } else { if (removed) { int rows = psDeleteMessage.executeUpdate(); if (trace) { log.trace("Deleted " + rows + " rows"); } } else { int rows = psUpdateMessage.executeUpdate(); if (trace) { log.trace("Updated " + rows + " rows"); } } psDeleteMessage.cl... | } psDeleteMessage.close(); psDeleteMessage = null; psUpdateMessage.close(); psUpdateMessage = null; } } | public void removeReferences(long channelID, List references) throws Exception { if (trace) { log.trace(this + " Removing " + references.size() + " refs from channel " + channelID); } Connection conn = null; PreparedStatement psDeleteReference = null; PreparedStatement psDeleteMessage =... |
wrap.end(); | try { wrap.end(); } finally { if (wrap.failed) { this.incPersistentCounts(removesToReverse); } this.releaseLocks(references); } | public void removeReferences(long channelID, List references) throws Exception { if (trace) { log.trace(this + " Removing " + references.size() + " refs from channel " + channelID); } Connection conn = null; PreparedStatement psDeleteReference = null; PreparedStatement psDeleteMessage =... |
conn = ds.getConnection(); | conn = getConnection(); | public long reserveIDBlock(String counterName, int size) throws Exception { //TODO This will need locking (e.g. SELECT ... FOR UPDATE...) in the clustered case if (trace) { log.trace("Getting id block for counter: " + counterName + " ,size: " + size); } if (size <= 0) ... |
conn = ds.getConnection(); | conn = getConnection(); log.info("Removing all non-reliable message references"); | protected void resetMessageData() throws Exception { if (trace) { log.trace("Removing all non-persistent data"); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ... |
log.info("Updated " + rows + " rows"); | protected void resetMessageData() throws Exception { if (trace) { log.trace("Removing all non-persistent data"); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ... | |
conn = ds.getConnection(); | conn = getConnection(); | public List retrievePreparedTransactions() throws Exception { Connection conn = null; Statement st = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { List transactions = new ArrayList(); conn = ds.getConnection(); ... |
log.error("Failed to set sql properties", shouldnothappen); | public void setSqlProperties(String value) { try { ByteArrayInputStream is = new ByteArrayInputStream(value.getBytes()); sqlProperties = new Properties(); sqlProperties.load(is); } catch (IOException shouldnothappen) { } } | |
ps.setInt(8, m.getPersistentChannelCount()); | ps.setInt(8, 1); | protected void storeMessage(Message m, PreparedStatement ps) throws Exception { /* Reference counting code commented out until 1.2 // get the reference count from the database // TODO Probably this can be done smarter than that incrementing directly in the database ps ... |
else { ps.setByte(9, CoreMessage.TYPE); ps.setNull(10, Types.VARCHAR); ps.setNull(11, Types.VARCHAR); ps.setNull(12, Types.BINARY); ps.setNull(13, Types.BIGINT); ps.setNull(14, Types.BIGINT); ps.setNull(15, Types.LONGVARBINARY); } | protected void storeMessage(Message m, PreparedStatement ps) throws Exception { /* Reference counting code commented out until 1.2 // get the reference count from the database // TODO Probably this can be done smarter than that incrementing directly in the database ps ... | |
conn = ds.getConnection(); | conn = getConnection(); | public void updateReferencesNotLoaded(long channelID, List references) throws Exception { Connection conn = null; PreparedStatement psUpdateReference = null; TransactionWrapper wrap = new TransactionWrapper(); if (trace) { log.trace("Updating references to not loaded for ch... |
conn = ds.getConnection(); | conn = getConnection(); | public void updateReliableReferencesLoadedInRange(long channelID, long orderStart, long orderEnd) throws Exception { if (trace) { log.trace("Updating reliable references for channel " + channelID + " between " + orderStart + " and " + orderEnd); } Connection conn = null; Prep... |
void setBytes(int parameterIndex, byte[] x) throws SQLException; | void setBytes(int index, byte[] value) throws SQLException; | void setBytes(int parameterIndex, byte[] x) throws SQLException; |
throw new IOException("Key in Map must be Serializable: " + me.getKey()); | throw new IOException("Key in map must be Serializable: " + me.getKey()); | public static void writeMap(ObjectOutput out, Map map, boolean stringKeys) throws IOException { if (map.isEmpty()) { out.writeByte(NULL); } else { out.writeByte(MAP); Set entrySet = map.entrySet(); out.writeInt(entrySet.size()); for (Iter... |
if (!(me.getValue() instanceof Serializable)) { throw new IOException("Value in Map must be Serializable: " + me.getValue()); } internalWriteObject(out, (Serializable)me.getValue(), false); | internalWriteObject(out, (Serializable)value, false); | public static void writeMap(ObjectOutput out, Map map, boolean stringKeys) throws IOException { if (map.isEmpty()) { out.writeByte(NULL); } else { out.writeByte(MAP); Set entrySet = map.entrySet(); out.writeInt(entrySet.size()); for (Iter... |
void setBinaryStream(int parameterIndex, InputStream x, int length) | void setBinaryStream(int index, InputStream stream, int count) | void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException; |
void setByte(int parameterIndex, byte x) throws SQLException; | void setByte(int index, byte value) throws SQLException; | void setByte(int parameterIndex, byte x) throws SQLException; |
Thread.sleep(1000); | private boolean assertRemainingMessages(int expected) throws Exception { ObjectName destObjectName = new ObjectName("jboss.messaging.destination:service=Queue,name=Queue"); Integer messageCount = (Integer)ServerManagement.getAttribute(destObjectName, "MessageCount"); assertEquals(expe... | |
awtContainer.doLayout(); final int cnt = parent.getComponentCount(); final Insets insets = containerPeer.getInsets(); final int dx = insets.left; final int dy = insets.top; for (int i = 0; i < cnt; i++) { final Component child = parent.getComponent(i); if (child instanceof ISwingPeer) { final Component awtComp = ((ISw... | if (!layoutBusy) { layoutBusy = true; try { doLayout(parent); } finally { layoutBusy = false; } } | public void layoutContainer(Container parent) { awtContainer.doLayout(); final int cnt = parent.getComponentCount(); final Insets insets = containerPeer.getInsets(); final int dx = insets.left; final int dy = insets.top; for (int i = 0; i < cnt; i++) { final Component child = parent.getComponent(... |
SelectionMouseListener ma = new SelectionMouseListener(); view.addMouseListener(ma); view.addMouseMotionListener(ma); | public void createActions() { open_file.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { try { FileDialog fd = new FileDialog(root.frame,"Open a local file",FileDialog.LOAD); fd.show(); S... | |
System.exit(0); | try { FileDialog fd = new FileDialog(root.frame,"Open a local file",FileDialog.LOAD); fd.show(); String file = fd.getDirectory() + fd.getFile(); root.panel.loadPage(file); } catch (Exception ex) { logger.info("error:" + ex); } | public void actionPerformed(ActionEvent evt) { System.exit(0); } |
try { goBack(); view.repaint(); } catch (Exception ex) { u.p(ex); } | System.exit(0); | public void actionPerformed(ActionEvent evt) { try { goBack(); view.repaint(); } catch (Exception ex) { u.p(ex); } } |
root.panel.view.c.debug_draw_line_boxes = !root.panel.view.c.debug_draw_line_boxes; | root.panel.view.c.debug_draw_boxes = !root.panel.view.c.debug_draw_boxes; | public void actionPerformed(ActionEvent evt) { root.panel.view.c.debug_draw_line_boxes = !root.panel.view.c.debug_draw_line_boxes; root.panel.view.repaint(); } |
root.panel.view.c.debug_draw_inline_boxes = !root.panel.view.c.debug_draw_inline_boxes; | root.panel.view.c.debug_draw_line_boxes = !root.panel.view.c.debug_draw_line_boxes; | public void actionPerformed(ActionEvent evt) { root.panel.view.c.debug_draw_inline_boxes = !root.panel.view.c.debug_draw_inline_boxes; root.panel.view.repaint(); } |
JFrame frame = new JFrame(); frame.getContentPane().add(new DOMInspector(root.panel.view.doc)); frame.pack(); frame.setSize(250,500); frame.show(); | root.panel.view.c.debug_draw_inline_boxes = !root.panel.view.c.debug_draw_inline_boxes; root.panel.view.repaint(); | public void actionPerformed(ActionEvent evt) { JFrame frame = new JFrame(); frame.getContentPane().add(new DOMInspector(root.panel.view.doc)); frame.pack(); frame.setSize(250,500); frame.show(); } |
try { FileDialog fd = new FileDialog(root.frame,"Open a local file",FileDialog.LOAD); fd.show(); String file = fd.getDirectory() + fd.getFile(); root.panel.loadPage(file); } catch (Exception ex) { logger.info("error:" + ex); } | JFrame frame = new JFrame(); frame.getContentPane().add(new DOMInspector(root.panel.view.doc)); frame.pack(); frame.setSize(250,500); frame.show(); | public void actionPerformed(ActionEvent evt) { try { FileDialog fd = new FileDialog(root.frame,"Open a local file",FileDialog.LOAD); fd.show(); String file = fd.getDirectory() + fd.getFile(); root.panel.loadPage(file)... |
String url_text = url.getText(); loadPage(url_text); | reloadPage(); | public void actionPerformed(ActionEvent evt) { try { String url_text = url.getText(); loadPage(url_text); view.repaint(); } catch (Exception ex) { u.p(ex); } } |
goForward(); | goBack(); | public void actionPerformed(ActionEvent evt) { try { goForward(); view.repaint(); } catch (Exception ex) { u.p(ex); } } |
reloadPage(); | goForward(); | public void actionPerformed(ActionEvent evt) { try { reloadPage(); view.repaint(); } catch (Exception ex) { u.p(ex); } } |
view.setErrorHandler(root.error_handler); | public void init() { forward = new JButton("Forward"); backward = new JButton("Back"); stop = new JButton("Stop"); reload = new JButton("Reload"); url = new JTextField(); view = new HTMLPanel(); status = new JLabel("Status"); int text_width = 200; ... | |
public FileDialog(Frame parent, String title, int mode) { super(parent, title, true); setMode(mode); } | FileDialog(Frame parent) { this(parent, "", LOAD); } | public FileDialog(Frame parent, String title, int mode) { super(parent, title, true); setMode(mode); } |
public String getDirectory() { return (dir); } | getDirectory() { return(dir); } | public String getDirectory() { return (dir); } |
public String getFile() { return (file); } | getFile() { return(file); } | public String getFile() { return (file); } |
public void setDocument(Document doc, URL url) { this.doc = doc; Element html = (Element)doc.getDocumentElement(); c.css = new CSSBank(); c.setBaseURL(url); try { Object marker = new DefaultCSSMarker(); InputStream stream = marker.getClass().getResourceAsStream("default.css"); c.css.parse(new InputStreamReader(stream... | public void setDocument(String filename) throws Exception { setDocument(x.loadDocument(filename),new File(filename).toURL()); | public void setDocument(Document doc, URL url) { this.doc = doc; Element html = (Element)doc.getDocumentElement(); c.css = new CSSBank(); c.setBaseURL(url); try { //c.css.parse(new FileReader("second.css")); Object marker = new DefaultCSSMarker(); ... |
if (log.isTraceEnabled()) { log.trace("Setting current tx id to " + currentTxID); } if (log.isTraceEnabled()) { log.trace("XAresource is: " + this); } | public void setCurrentTxID(Object currentTxID) { this.currentTxID = currentTxID; } | |
setCurrentTransactionId(rm.startTx(xid)); if (log.isTraceEnabled()) { log.trace("Setting current tx on session state as:" + xid); } | setCurrentTransactionId(rm.startTx(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... |
private void readResolve() throws ObjectStreamException | private Object readResolve() throws ObjectStreamException | private void readResolve() throws ObjectStreamException { // FIXME: implement this } |
return new Inet4Address(addr, hostName); | private void readResolve() throws ObjectStreamException { // FIXME: implement this } | |
catch (Exception e) | catch (Throwable e) | public void deInit() { try { sess.close(); } catch (Exception e) { log.error("!!!!!!!!!!!!!!!!!!!!!Close failed", e); failed = true; } } |
log.error("!!!!!!!!!!!!!!!!!!!!!Close failed", e); | log.error("Failed to deInit()", e); throwable = e; | public void deInit() { try { sess.close(); } catch (Exception e) { log.error("!!!!!!!!!!!!!!!!!!!!!Close failed", e); failed = true; } } |
catch (Exception e) | catch (Throwable e) | public void init() { try { Connection conn = getNextConnection(); sess = conn.createSession(transacted, Session.AUTO_ACKNOWLEDGE); //Ackmode doesn't matter prod = null; if (anon) { ... |
log.error("!!!!!!!!!!!!!!!!!!!!!!!!Sender failed", e); | log.error("Failed to init", e); throwable = e; | public void init() { try { Connection conn = getNextConnection(); sess = conn.createSession(transacted, Session.AUTO_ACKNOWLEDGE); //Ackmode doesn't matter prod = null; if (anon) { ... |
catch (Exception e) | catch (Throwable e) | public void run() { try { int count = 0; while (count < numMessages) { Message m = mf.getMessage(sess, msgSize); if (anon) { prod.send(dest, m); ... |
log.error("!!!!!!!!!!!!!!!!!!!!!!!!Sender failed", e); | log.error("Sender failed", e); throwable = e; | public void run() { try { int count = 0; while (count < numMessages) { Message m = mf.getMessage(sess, msgSize); if (anon) { prod.send(dest, m); ... |
{ fail(); } if (!m1.getClass().equals(m2.getClass())) | protected void checkEquivalent(Message m1, Message m2) throws Exception { if (m1 == m2) { fail(); } if (m1 == null || m2 == null) { fail(); } if (!m1.getClass().equals(m2.getClass())) { fail(); } //Attributes from org.jboss... | |
assertEquals(m1.getPayload(), m2.getPayload()); | if (m1.getPayload() instanceof byte[] && m2.getPayload() instanceof byte[]) { this.checkByteArraysEqual((byte[])m1.getPayload(), (byte[])m2.getPayload()); } else if (m1.getPayload() instanceof Map && m2.getPayload() instanceof Map) { this.checkMapsEquivalent((Map)m1.getPayload(), (Map)m2.getPayload()); } else if (m1.ge... | protected void checkEquivalent(Message m1, Message m2) throws Exception { if (m1 == m2) { fail(); } if (m1 == null || m2 == null) { fail(); } if (!m1.getClass().equals(m2.getClass())) { fail(); } //Attributes from org.jboss... |
headers.put(new GUID().toString(), new GUID().toString()); | headers.put(new GUID().toString(), randString(1000)); | protected Map generateFilledMap(boolean useObject) { Map headers = new HashMap(); for (int j = 0; j < 27; j++) { //put some crap in the map int k; if (useObject) { k = j % 11; } else { k = j % 10; } ... |
String s = new GUID().toString(); | String s = randString(1000); | protected byte[] randByteArray() { String s = new GUID().toString(); return s.getBytes(); } |
ServerManagement.deInit(); | public void tearDown() throws Exception { ServerManagement.deInit(); super.tearDown(); } | |
public void setSqlProperties(Properties props) | public void setSqlProperties(String value) | public void setSqlProperties(Properties props) { sqlProperties = new Properties(props); } |
sqlProperties = new Properties(props); | try { ByteArrayInputStream is = new ByteArrayInputStream(value.getBytes()); sqlProperties = new Properties(); sqlProperties.load(is); } catch (IOException shouldnothappen) { } | public void setSqlProperties(Properties props) { sqlProperties = new Properties(props); } |
super(messageID, reliable, expiration, timestamp, priority, headers, payload); | super(messageID, reliable, expiration, timestamp, priority, 0, 0, headers, payload); | public CoreMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, int priority, Map headers, Serializable payload) { super(messageID, reliable, expiration, ... |
ds = (DataSource)ic.lookup("java:/DefaultDS"); | public void start() throws Exception { log.debug("starting JDBCPersistenceManager"); initSqlProperties(); InitialContext ic = new InitialContext(); mgr = (TransactionManager)ic.lookup("java:/TransactionManager"); ds = (DataSource)ic.lookup("java:/DefaultDS"); ic.close(); if (crea... | |
JMSAdvisor jmsAdvisor = (JMSAdvisor)mi.getAdvisor(); | 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.getAdvisor();... | |
public SecurityMetadata getSecurityMetadata(String destName) | public SecurityMetadata getSecurityMetadata(boolean isQueue, String destName) | public SecurityMetadata getSecurityMetadata(String destName) { SecurityMetadata m = (SecurityMetadata) securityConf.get(destName); if (m == null) { // No SecurityMetadata was configured for the dest, // Apply the default if (defaultSecurityConfig != null) { ... |
SecurityMetadata m = (SecurityMetadata) securityConf.get(destName); | SecurityMetadata m = (SecurityMetadata) (isQueue ? queueSecurityConf.get(destName) : topicSecurityConf.get(destName)); | public SecurityMetadata getSecurityMetadata(String destName) { SecurityMetadata m = (SecurityMetadata) securityConf.get(destName); if (m == null) { // No SecurityMetadata was configured for the dest, // Apply the default if (defaultSecurityConfig != null) { ... |
log.debug("No SecurityMetadadata was available for " + destName + " using default security config"); | log.debug("No SecurityMetadadata was available for " + destName + ", using default security config"); | public SecurityMetadata getSecurityMetadata(String destName) { SecurityMetadata m = (SecurityMetadata) securityConf.get(destName); if (m == null) { // No SecurityMetadata was configured for the dest, // Apply the default if (defaultSecurityConfig != null) { ... |
log.warn("No SecurityMetadadata was available for " + destName + " adding guest"); | log.warn("No SecurityMetadadata was available for " + destName + ", adding guest"); | public SecurityMetadata getSecurityMetadata(String destName) { SecurityMetadata m = (SecurityMetadata) securityConf.get(destName); if (m == null) { // No SecurityMetadata was configured for the dest, // Apply the default if (defaultSecurityConfig != null) { ... |
securityConf.put(destName, m); | public SecurityMetadata getSecurityMetadata(String destName) { SecurityMetadata m = (SecurityMetadata) securityConf.get(destName); if (m == null) { // No SecurityMetadata was configured for the dest, // Apply the default if (defaultSecurityConfig != null) { ... | |
LocalClusteredQueue queue1 = new LocalClusteredQueue(office2, 2, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue1 = new LocalClusteredQueue(office2, 2, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void local(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPostOf... |
LocalClusteredQueue queue2 = new LocalClusteredQueue(office3, 3, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue2 = new LocalClusteredQueue(office3, 3, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void local(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPostOf... |
LocalClusteredQueue queue3 = new LocalClusteredQueue(office4, 4, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue3 = new LocalClusteredQueue(office4, 4, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void local(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPostOf... |
LocalClusteredQueue queue4 = new LocalClusteredQueue(office5, 5, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue4 = new LocalClusteredQueue(office5, 5, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void local(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPostOf... |
LocalClusteredQueue queue5 = new LocalClusteredQueue(office6, 6, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue5 = new LocalClusteredQueue(office6, 6, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void local(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPostOf... |
LocalClusteredQueue queue1 = new LocalClusteredQueue(office2, 2, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue1 = new LocalClusteredQueue(office2, 2, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void notLocal(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPos... |
LocalClusteredQueue queue2 = new LocalClusteredQueue(office3, 3, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue2 = new LocalClusteredQueue(office3, 3, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void notLocal(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPos... |
LocalClusteredQueue queue3 = new LocalClusteredQueue(office4, 4, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue3 = new LocalClusteredQueue(office4, 4, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void notLocal(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPos... |
LocalClusteredQueue queue4 = new LocalClusteredQueue(office5, 5, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue4 = new LocalClusteredQueue(office5, 5, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void notLocal(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPos... |
LocalClusteredQueue queue5 = new LocalClusteredQueue(office6, 6, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue5 = new LocalClusteredQueue(office6, 6, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void notLocal(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPos... |
statsSender.start(); | public void start() throws Exception { if (syncChannelConfigE != null) { this.syncChannel = new JChannel(syncChannelConfigE); this.asyncChannel = new JChannel(asyncChannelConfigE); } else { this.syncChannel = new JChannel(syncChannelConfigS); this.a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.