rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
log.trace("Inserted " + rows + " rows"); } m.incPersistentChannelCount(); incremented = true; if (m.getPersistentChannelCount() == 1) { | log.info(m + " Not persisted so inserting message"); | public void addReference(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.addReferenceToAdd(channelID, ref); }... |
storeMessage(m, psMessage); | storeMessage(m, psMessage); m.setPersisted(true); | public void addReference(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.addReferenceToAdd(channelID, ref); }... |
psMessage = conn.prepareStatement(getSQLStatement("UPDATE_MESSAGE_CHANNELCOUNT")); | psMessage = conn.prepareStatement(getSQLStatement("INC_CHANNELCOUNT")); | public void addReference(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.addReferenceToAdd(channelID, ref); }... |
updateMessageChannelCount(m, psMessage); | incrementChannelCount(m, psMessage); | public void addReference(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.addReferenceToAdd(channelID, ref); }... |
if (trace) { log.trace("Inserted/updated " + rows + " rows"); } | if (trace) { log.trace("Inserted/updated " + rows + " rows"); } log.trace("message Inserted/updated " + rows + " rows"); | public void addReference(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.addReferenceToAdd(channelID, ref); }... |
if (wrap.isFailed() && incremented) { m.decPersistentChannelCount(); } | public void addReference(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.addReferenceToAdd(channelID, ref); }... | |
map.put("UPDATE_MESSAGE_CHANNELCOUNT", "UPDATE JMS_MESSAGE SET CHANNELCOUNT=? WHERE MESSAGEID=?"); map.put("DELETE_MESSAGE", "DELETE FROM JMS_MESSAGE WHERE MESSAGEID=?"); | map.put("INC_CHANNELCOUNT", "UPDATE JMS_MESSAGE SET CHANNELCOUNT = CHANNELCOUNT + 1 WHERE MESSAGEID=?"); map.put("DEC_CHANNELCOUNT", "UPDATE JMS_MESSAGE SET CHANNELCOUNT = CHANNELCOUNT - 1 WHERE MESSAGEID=?"); map.put("DELETE_MESSAGE", "DELETE FROM JMS_MESSAGE WHERE MESSAGEID=? AND CHANNELCOUNT = 0"); | protected Map getDefaultDMLStatements() { Map map = new LinkedHashMap(); //Message reference map.put("INSERT_MESSAGE_REF", "INSERT INTO JMS_MESSAGE_REFERENCE (CHANNELID, MESSAGEID, TRANSACTIONID, STATE, ORD, PAGE_ORD, DELIVERYCOUNT, RELIABLE) " + "VALUES (?,... |
map.put("MESSAGE_EXISTS", "SELECT MESSAGEID FROM JMS_MESSAGE WHERE MESSAGEID = ?"); | protected Map getDefaultDMLStatements() { Map map = new LinkedHashMap(); //Message reference map.put("INSERT_MESSAGE_REF", "INSERT INTO JMS_MESSAGE_REFERENCE (CHANNELID, MESSAGEID, TRANSACTIONID, STATE, ORD, PAGE_ORD, DELIVERYCOUNT, RELIABLE) " + "VALUES (?,... | |
List extraRefs = new ArrayList(); | public InitialLoadInfo getInitialReferenceInfos(long channelID, int fullSize) throws Exception { if (trace) { log.trace("loading initial reference infos for channel " + channelID); } List refs = new ArrayList(); List extraRefs = new ArrayList(); Conne... | |
m = MessageFactory.createJBossMessage(messageId, reliable, expiration, timestamp, priority, coreHeaders, payload, persistentChannelCount, | m = MessageFactory.createMessage(messageId, reliable, expiration, timestamp, priority, coreHeaders, payload, | public List getMessages(List messageIds) throws Exception { if (trace) { log.trace("Getting batch of messages for " + messageIds); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ... |
m = MessageFactory.createJBossMessage(messageId, reliable, expiration, timestamp, priority, coreHeaders, payload, persistentChannelCount, type, | m = MessageFactory.createMessage(messageId, reliable, expiration, timestamp, priority, coreHeaders, payload, type, | public List getMessages(List messageIds) throws Exception { if (trace) { log.trace("Getting batch of messages for " + messageIds); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ... |
PreparedStatement psUpdateMessage = null; | PreparedStatement psIncMessage = null; PreparedStatement psDecMessage = null; | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... |
List addsToReverse = new ArrayList(); List removesToReverse = new ArrayList(); | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... | |
psUpdateMessage = conn.prepareStatement(getSQLStatement("UPDATE_MESSAGE_CHANNELCOUNT")); | psIncMessage = conn.prepareStatement(getSQLStatement("INC_CHANNELCOUNT")); | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... |
m.incPersistentChannelCount(); addsToReverse.add(ref); | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... | |
if (m.getPersistentChannelCount() == 1) { | if (!m.isPersisted()) { log.info("The message " + m.getMessageID() + " hasn't been persisted before so i'm gonna persist it"); | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... |
} else { | m.setPersisted(true); } else { log.info("The message " + m.getMessageID() + " has been peristed before so just updating it's channel count"); | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... |
updateMessageChannelCount(m, psUpdateMessage); | incrementChannelCount(m, psIncMessage); | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... |
{ psUpdateMessage.addBatch(); | { psIncMessage.addBatch(); | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... |
int rows = psUpdateMessage.executeUpdate(); | int rows = psIncMessage.executeUpdate(); | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... |
psUpdateMessage.close(); psUpdateMessage = null; | psIncMessage.close(); psIncMessage = null; | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... |
int[] rowsMessage = psUpdateMessage.executeBatch(); if (trace) { logBatchUpdate(getSQLStatement("UPDATE_MESSAGE_CHANNELCOUNT"), rowsMessage, "updated"); } | int[] rowsMessage = psIncMessage.executeBatch(); if (trace) { logBatchUpdate(getSQLStatement("INC_CHANNELCOUNT"), rowsMessage, "updated"); } | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... |
boolean messageDeletionsInBatch = false; messageUpdatesInBatch = false; | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... | |
psUpdateMessage = null; | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... | |
psUpdateMessage = conn.prepareStatement(getSQLStatement("UPDATE_MESSAGE_CHANNELCOUNT")); | psDecMessage = conn.prepareStatement(getSQLStatement("DEC_CHANNELCOUNT")); | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... |
m.decPersistentChannelCount(); removesToReverse.add(pair.ref); boolean removed; if (m.getPersistentChannelCount() == 0) { removeMessage(m, psDeleteMessage); removed = true; } else { updateMessageChannelCount(m, psUpdateMessage); removed = false; } | decrementChannelCount(m, psDecMessage); removeMessage(m, psDeleteMessage); | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... |
if (removed) { psDeleteMessage.addBatch(); messageDeletionsInBatch = true; } else { psUpdateMessage.addBatch(); messageUpdatesInBatch = true; } } else { if (removed) { int rows = psDeleteMessage.executeUpdate(); if (trace) { log.trace("Deleted " + rows + " rows"); } } else { int rows = psUpdateMessage.executeUpdate();... | psDecMessage.addBatch(); psDeleteMessage.addBatch(); } else { int rows = psDecMessage.executeUpdate(); if (trace) { log.trace("Updated " + rows + " rows"); } rows = psDeleteMessage.executeUpdate(); if (trace) { log.trace("Deleted " + rows + " rows"); } | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... |
psUpdateMessage.close(); psUpdateMessage = null; | psDecMessage.close(); psDecMessage = null; | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... |
int[] rowsReference = psReference.executeBatch(); if (trace) { logBatchUpdate(getSQLStatement("DELETE_MESSAGE_REF"), rowsReference, "deleted"); } if (messageDeletionsInBatch) { int[] rowsMessage = psDeleteMessage.executeBatch(); if (trace) { logBatchUpdate(getSQLStatement("DELETE_MESSAGE"), rowsMessage, "deleted"); ... | int[] rows = psReference.executeBatch(); if (trace) { logBatchUpdate(getSQLStatement("DELETE_MESSAGE_REF"), rows, "deleted"); } rows = psDecMessage.executeBatch(); if (trace) { logBatchUpdate(getSQLStatement("DEC_CHANNELCOUNT"), rows, "updated"); } rows = psDeleteMessage.executeBatch(); if (trace) { logBatchUpdate... | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... |
if (psUpdateMessage != null) { try { psUpdateMessage.close(); | if (psIncMessage != null) { try { psIncMessage.close(); } catch (Throwable t) { } } if (psDecMessage != null) { try { psDecMessage.close(); | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... |
{ if (wrap.isFailed()) { this.decPersistentCounts(addsToReverse); this.incPersistentCounts(removesToReverse); } | { | protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //TODO - A slight optimisation - it's possible we have refs referring to the same message //so we will end up acquiring the lock more than once which is unnecessary //If find unique set of... |
List removesToReverse = new ArrayList(); | protected void handleBeforeCommit2PC(List refsToRemove, Transaction tx) throws Exception { Connection conn = null; PreparedStatement psUpdateMessage = null; PreparedStatement psDeleteMessage = null; TransactionWrapper wrap = new TransactionWrapper(); List refs = new Ar... | |
boolean messageDeletionsInBatch = false; boolean messageUpdatesInBatch = false; | protected void handleBeforeCommit2PC(List refsToRemove, Transaction tx) throws Exception { Connection conn = null; PreparedStatement psUpdateMessage = null; PreparedStatement psDeleteMessage = null; TransactionWrapper wrap = new TransactionWrapper(); List refs = new Ar... | |
psUpdateMessage = conn.prepareStatement(getSQLStatement("UPDATE_MESSAGE_CHANNELCOUNT")); | psUpdateMessage = conn.prepareStatement(getSQLStatement("DEC_CHANNELCOUNT")); | protected void handleBeforeCommit2PC(List refsToRemove, Transaction tx) throws Exception { Connection conn = null; PreparedStatement psUpdateMessage = null; PreparedStatement psDeleteMessage = null; TransactionWrapper wrap = new TransactionWrapper(); List refs = new Ar... |
m.decPersistentChannelCount(); removesToReverse.add(ref); | protected void handleBeforeCommit2PC(List refsToRemove, Transaction tx) throws Exception { Connection conn = null; PreparedStatement psUpdateMessage = null; PreparedStatement psDeleteMessage = null; TransactionWrapper wrap = new TransactionWrapper(); List refs = new Ar... | |
boolean removed; if (m.getPersistentChannelCount() == 0) | decrementChannelCount(m, psUpdateMessage); removeMessage(m, psDeleteMessage); if (batch) | protected void handleBeforeCommit2PC(List refsToRemove, Transaction tx) throws Exception { Connection conn = null; PreparedStatement psUpdateMessage = null; PreparedStatement psDeleteMessage = null; TransactionWrapper wrap = new TransactionWrapper(); List refs = new Ar... |
removeMessage(m, psDeleteMessage); removed = true; | psUpdateMessage.addBatch(); psDeleteMessage.addBatch(); | protected void handleBeforeCommit2PC(List refsToRemove, Transaction tx) throws Exception { Connection conn = null; PreparedStatement psUpdateMessage = null; PreparedStatement psDeleteMessage = null; TransactionWrapper wrap = new TransactionWrapper(); List refs = new Ar... |
updateMessageChannelCount(m, psUpdateMessage); | int rows = psUpdateMessage.executeUpdate(); | protected void handleBeforeCommit2PC(List refsToRemove, Transaction tx) throws Exception { Connection conn = null; PreparedStatement psUpdateMessage = null; PreparedStatement psDeleteMessage = null; TransactionWrapper wrap = new TransactionWrapper(); List refs = new Ar... |
removed = false; } if (batch) { if (removed) { psDeleteMessage.addBatch(); messageDeletionsInBatch = true; } else { psUpdateMessage.addBatch(); messageUpdatesInBatch = true; } } else { if (removed) { int rows = psDeleteMessage.executeUpdate(); if (trace) { log.trace("Deleted " + rows + " rows"); } } else { int rows... | if (trace) { log.trace("Updated " + rows + " rows"); } rows = psDeleteMessage.executeUpdate(); if (trace) { log.trace("Deleted " + rows + " rows"); } | protected void handleBeforeCommit2PC(List refsToRemove, Transaction tx) throws Exception { Connection conn = null; PreparedStatement psUpdateMessage = null; PreparedStatement psDeleteMessage = null; TransactionWrapper wrap = new TransactionWrapper(); List refs = new Ar... |
if (messageDeletionsInBatch) { int[] rows = psDeleteMessage.executeBatch(); if (trace) { logBatchUpdate(getSQLStatement("DELETE_MESSAGE"), rows, "deleted"); } psDeleteMessage.close(); psDeleteMessage = null; } if (messageUpdatesInBatch) { int[] rows = psUpdateMessage.executeBatch(); if (trace) { logBatchUpdate(getSQ... | int[] rows = psUpdateMessage.executeBatch(); if (trace) { logBatchUpdate(getSQLStatement("DEC_CHANNELCOUNT"), rows, "updated"); } psUpdateMessage.close(); psUpdateMessage = null; rows = psDeleteMessage.executeBatch(); if (trace) { logBatchUpdate(getSQLStatement("DELETE_MESSAGE"), rows, "deleted"); } psDeleteMessag... | protected void handleBeforeCommit2PC(List refsToRemove, Transaction tx) throws Exception { Connection conn = null; PreparedStatement psUpdateMessage = null; PreparedStatement psDeleteMessage = null; TransactionWrapper wrap = new TransactionWrapper(); List refs = new Ar... |
if (wrap.isFailed()) { this.incPersistentCounts(removesToReverse); } | protected void handleBeforeCommit2PC(List refsToRemove, Transaction tx) throws Exception { Connection conn = null; PreparedStatement psUpdateMessage = null; PreparedStatement psDeleteMessage = null; TransactionWrapper wrap = new TransactionWrapper(); List refs = new Ar... | |
List addsToReverse = new ArrayList(); | protected void handleBeforePrepare(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //We only need to lock on the adds List refs = new ArrayList(refsToAdd.size()); Iterator iter = refsToAdd.iterator(); while (iter.hasNext()) { ChannelRefPair pair = (Chann... | |
psUpdateMessage = conn.prepareStatement(getSQLStatement("UPDATE_MESSAGE_CHANNELCOUNT")); | psUpdateMessage = conn.prepareStatement(getSQLStatement("INC_CHANNELCOUNT")); | protected void handleBeforePrepare(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //We only need to lock on the adds List refs = new ArrayList(refsToAdd.size()); Iterator iter = refsToAdd.iterator(); while (iter.hasNext()) { ChannelRefPair pair = (Chann... |
m.incPersistentChannelCount(); addsToReverse.add(pair.ref); boolean added; if (m.getPersistentChannelCount() == 1) | boolean added; if (!m.isPersisted()) | protected void handleBeforePrepare(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //We only need to lock on the adds List refs = new ArrayList(refsToAdd.size()); Iterator iter = refsToAdd.iterator(); while (iter.hasNext()) { ChannelRefPair pair = (Chann... |
updateMessageChannelCount(m, psUpdateMessage); | incrementChannelCount(m, psUpdateMessage); | protected void handleBeforePrepare(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //We only need to lock on the adds List refs = new ArrayList(refsToAdd.size()); Iterator iter = refsToAdd.iterator(); while (iter.hasNext()) { ChannelRefPair pair = (Chann... |
if (trace) { logBatchUpdate(getSQLStatement("UPDATE_MESSAGE_CHANNELCOUNT"), rowsMessage, "updated"); } | if (trace) { logBatchUpdate(getSQLStatement("INC_CHANNELCOUNT"), rowsMessage, "updated"); } | protected void handleBeforePrepare(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //We only need to lock on the adds List refs = new ArrayList(refsToAdd.size()); Iterator iter = refsToAdd.iterator(); while (iter.hasNext()) { ChannelRefPair pair = (Chann... |
if (wrap.isFailed()) { this.decPersistentCounts(addsToReverse); } | protected void handleBeforePrepare(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //We only need to lock on the adds List refs = new ArrayList(refsToAdd.size()); Iterator iter = refsToAdd.iterator(); while (iter.hasNext()) { ChannelRefPair pair = (Chann... | |
List removesToReverse = new ArrayList(); | 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 messageDeletionsInBatch = false; boolean messageUpdatesInBatch = false; | 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... | |
psUpdateMessage = conn.prepareStatement(getSQLStatement("UPDATE_MESSAGE_CHANNELCOUNT")); | psUpdateMessage = conn.prepareStatement(getSQLStatement("DEC_CHANNELCOUNT")); | 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(); removesToReverse.add(pair.ref); | 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) | decrementChannelCount(m, psUpdateMessage); removeMessage(m, psDeleteMessage); if (batch) | 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); | psUpdateMessage.addBatch(); | 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 = true; | psDeleteMessage.addBatch(); | 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); | int rows = psUpdateMessage.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) { psDeleteMessage.addBatch(); messageDeletionsInBatch = true; } else { psUpdateMessage.addBatch(); messageUpdatesInBatch = true; } } else { if (removed) { int rows = psDeleteMessage.executeUpdate(); if (trace) { log.trace("deleted " + rows + " rows"); } } else { int rows =... | if (trace) { log.trace("updated " + rows + " rows"); } rows = psDeleteMessage.executeUpdate(); if (trace) { 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 (messageDeletionsInBatch) { int[] rows = psDeleteMessage.executeBatch(); if (trace) { logBatchUpdate(getSQLStatement("DELETE_MESSAGE"), rows, "deleted"); } psDeleteMessage.close(); psDeleteMessage = null; } if (messageUpdatesInBatch) { int[] rows = psUpdateMessage.executeBatch(); if (trace) { logBatchUpdate(getSQ... | int[] rows = psUpdateMessage.executeBatch(); if (trace) { logBatchUpdate(getSQLStatement("DEC_CHANNELCOUNT"), rows, "updated"); } rows = psDeleteMessage.executeBatch(); if (trace) { logBatchUpdate(getSQLStatement("DELETE_MESSAGE"), rows, "deleted"); } psDeleteMessage.close(); psDeleteMessage = null; psUpdateMessag... | 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 (wrap.isFailed()) { this.incPersistentCounts(removesToReverse); } | 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 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); ... | |
m.decPersistentChannelCount(); decremented = true; if (m.getPersistentChannelCount() == 0) { psMessage = conn.prepareStatement(getSQLStatement("DELETE_MESSAGE")); removeMessage(m, psMessage); } else { psMessage = conn.prepareStatement(getSQLStatement("UPDATE_MESSAGE_CHANNELCOUNT")); updateMessageChannelCount(m, ps... | psUpdate = conn.prepareStatement(getSQLStatement("DEC_CHANNELCOUNT")); decrementChannelCount(m, psUpdate); rows = psUpdate.executeUpdate(); if (trace) { log.trace("Updated " + rows + " rows"); } psMessage = conn.prepareStatement(getSQLStatement("DELETE_MESSAGE")); removeMessage(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); ... |
if (rows != 1) { throw new IllegalStateException("Failed to update/delete message row for ref " + ref); } if (trace) { log.trace("Delete/updated " + rows + " rows"); } | if (trace) { log.trace("Delete " + rows + " rows"); } | 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); ... |
if (wrap.isFailed() && decremented) { m.incPersistentChannelCount(); } | 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); ... | |
d.getReference().incrementDeliveryCount(); | ref.incrementDeliveryCount(); | private Delivery getDelivery(Receiver receiver, MessageReference ref) { //NOTE There should never be more than one receiver //Eventually we wil enforce this in the design of the Channel //but for now we just check we only have one receiver if (receiver == null) { Iterator ite... |
cachedOrientation = toolBar.getOrientation(); cachedBounds = toolBar.getSize(); | protected void dragTo(Point position, Point origin) { int loc = areaOfClick(origParent, SwingUtilities.convertPoint(toolBar, position, origParent)); if (loc != -1) { dragWindow.setBorderColor(dockingBorderColor); dragWindow.setB... | |
cachedBounds = toolBar.getPreferredSize(); cachedOrientation = toolBar.getOrientation(); | protected void installComponents() { floatFrame = (Window) createFloatingWindow(toolBar); dragWindow = createDragWindow(toolBar); cachedBounds = toolBar.getPreferredSize(); cachedOrientation = toolBar.getOrientation(); nonRolloverBorder = createNonRolloverBorder(); rolloverBorder = createRolloverBo... | |
setSelectNewCells(true); setGridEnabled(true); setGridSize(6); setTolerance(2); setMarqueeHandler(new WorkflowMarqueeHandler()); | public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; if(descriptor != null) { this.descriptor = descriptor; addInitailAction(); addSteps()... | |
Map unmodifiableTransients = new HashMap(transientVars); | protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();... | |
verifyInputs(entry, action.getValidators(), unmodifiableTransients, ps); | verifyInputs(entry, action.getValidators(), Collections.unmodifiableMap(transientVars), ps); | protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();... |
if (passesConditions(null, conditionalResult.getConditions(), unmodifiableTransients, ps, (step != null) ? step.getStepId() : (-1))) { | if (passesConditions(null, conditionalResult.getConditions(), Collections.unmodifiableMap(transientVars), ps, (step != null) ? step.getStepId() : (-1))) { | protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();... |
verifyInputs(entry, conditionalResult.getValidators(), unmodifiableTransients, ps); | verifyInputs(entry, conditionalResult.getValidators(), Collections.unmodifiableMap(transientVars), ps); | protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();... |
verifyInputs(entry, theResults[0].getValidators(), unmodifiableTransients, ps); | verifyInputs(entry, theResults[0].getValidators(), Collections.unmodifiableMap(transientVars), ps); | protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();... |
verifyInputs(entry, resultDescriptor.getValidators(), unmodifiableTransients, ps); | verifyInputs(entry, resultDescriptor.getValidators(), Collections.unmodifiableMap(transientVars), ps); | protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();... |
if (passesConditions(null, joinDesc.getConditions(), unmodifiableTransients, ps, 0)) { | if (passesConditions(null, joinDesc.getConditions(), Collections.unmodifiableMap(transientVars), ps, 0)) { | protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();... |
verifyInputs(entry, joinresult.getValidators(), unmodifiableTransients, ps); | verifyInputs(entry, joinresult.getValidators(), Collections.unmodifiableMap(transientVars), ps); | protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();... |
if (!si.appliesToMedia(media)) return count; | boolean applies = si.appliesToMedia(media); | private int appendStylesheet(StylesheetInfo si, int count, java.util.TreeMap sorter, String media) { if (!si.appliesToMedia(media)) return count; Stylesheet ss = si.getStylesheet(); if (ss == null) { ss = _styleFactory.getStylesheet(si); si.setStylesheet(ss); } ... |
} else { | } else if (applies) { | private int appendStylesheet(StylesheetInfo si, int count, java.util.TreeMap sorter, String media) { if (!si.appliesToMedia(media)) return count; Stylesheet ss = si.getStylesheet(); if (ss == null) { ss = _styleFactory.getStylesheet(si); si.setStylesheet(ss); } ... |
public void setRemotingConnectionLeasePeriod(long remotingConnectionLeasePeriod) | public void setRemotingConnectionLeasePeriod(long remotingConnectionLeasePeriod) throws Exception | public void setRemotingConnectionLeasePeriod(long remotingConnectionLeasePeriod) { this.remotingConnectionLeasePeriod = remotingConnectionLeasePeriod; } |
if (oldValue != remotingConnectionLeasePeriod) { MBeanServer mbeanServer = getServer(); mbeanServer. setAttribute(connectorName, new Attribute("LeasePeriod", new Long(remotingConnectionLeasePeriod))); } | public void setRemotingConnectionLeasePeriod(long remotingConnectionLeasePeriod) { this.remotingConnectionLeasePeriod = remotingConnectionLeasePeriod; } | |
CoreDestination undeployCoreDestination(boolean isQueue, String destName); | CoreDestination undeployCoreDestination(boolean isQueue, String destName) throws JMSException; | CoreDestination undeployCoreDestination(boolean isQueue, String destName); |
{ | { if (log.isTraceEnabled()) log.trace("Caught RuntimeException:" + e); | public Object invoke(Invocation invocation) throws Throwable { try { return invocation.invokeNext(); } catch(NotYetImplementedException e) { // TODO get rid of this throw e; } catch(WrapperException e) { throw e.getPayload(); } catch... |
if (log.isTraceEnabled()) log.trace("Caught Exception:" + e); | public Object invoke(Invocation invocation) throws Throwable { try { return invocation.invokeNext(); } catch(NotYetImplementedException e) { // TODO get rid of this throw e; } catch(WrapperException e) { throw e.getPayload(); } catch... | |
new_inline = calculateInline(c, currentContent, remaining_width, bounds.width, prev_inline, prev_align_inline, isFirstLetter, block.firstLetterStyle, block.firstLineStyle); | prev_align_inline.break_after = true; continue; | public static void layoutContent(Context c, Box box, List contentList, BlockBox block) { Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; bounds.width -= box.margin.left + box.border.left + box.padding.left + box.padding.right + box.border.right + box.marg... |
public synchronized boolean cancel(Delivery d) | public synchronized void cancel(Delivery d) | public synchronized boolean cancel(Delivery d) { log.info("Delivery " + d + " was cancelled"); if (toBeCancelled == d) { toBeCancelled = null; notifyAll(); } return true; } |
return true; | return; | public synchronized boolean cancel(Delivery d) { log.info("Delivery " + d + " was cancelled"); if (toBeCancelled == d) { toBeCancelled = null; notifyAll(); } return true; } |
debug = (getProject().getProperty("jnode.debug") != null); final long lmJar = jarFile.lastModified(); final long lmKernel = kernelFile.lastModified(); final long lmDest = destFile.lastModified(); final long lmPIL = getPluginListFile().lastModified(); final PluginList piList; final long lmPI; try { log("plugin-list: "... | doExecute(); cleanup(); System.gc(); Runtime.getRuntime().runFinalization(); | public final void execute() throws BuildException { debug = (getProject().getProperty("jnode.debug") != null); final long lmJar = jarFile.lastModified(); final long lmKernel = kernelFile.lastModified(); final long lmDest = destFile.lastModified(); final long lmPIL = getPluginListF... |
BooleanClass = new VmPrimitiveClass("boolean", ObjectClass, clc, 1, | BooleanClass = new VmPrimitiveClass("boolean", ObjectClass, clc, JvmType.BOOLEAN, 1, | public final static VmType[] initializeForBootImage(VmSystemClassLoader clc) throws ClassNotFoundException { ObjectClass = (VmNormalClass) clc.loadClass("java.lang.Object", false); CloneableClass = (VmInterfaceClass) clc.loadClass( "java.lang.Cloneable", false); Serial... |
ByteClass = new VmPrimitiveClass("byte", ObjectClass, clc, 1, false, | ByteClass = new VmPrimitiveClass("byte", ObjectClass, clc, JvmType.BYTE, 1, false, | public final static VmType[] initializeForBootImage(VmSystemClassLoader clc) throws ClassNotFoundException { ObjectClass = (VmNormalClass) clc.loadClass("java.lang.Object", false); CloneableClass = (VmInterfaceClass) clc.loadClass( "java.lang.Cloneable", false); Serial... |
CharClass = new VmPrimitiveClass("char", ObjectClass, clc, 2, false, | CharClass = new VmPrimitiveClass("char", ObjectClass, clc, JvmType.CHAR, 2, false, | public final static VmType[] initializeForBootImage(VmSystemClassLoader clc) throws ClassNotFoundException { ObjectClass = (VmNormalClass) clc.loadClass("java.lang.Object", false); CloneableClass = (VmInterfaceClass) clc.loadClass( "java.lang.Cloneable", false); Serial... |
ShortClass = new VmPrimitiveClass("short", ObjectClass, clc, 2, false, | ShortClass = new VmPrimitiveClass("short", ObjectClass, clc, JvmType.SHORT, 2, false, | public final static VmType[] initializeForBootImage(VmSystemClassLoader clc) throws ClassNotFoundException { ObjectClass = (VmNormalClass) clc.loadClass("java.lang.Object", false); CloneableClass = (VmInterfaceClass) clc.loadClass( "java.lang.Cloneable", false); Serial... |
IntClass = new VmPrimitiveClass("int", ObjectClass, clc, 4, false, | IntClass = new VmPrimitiveClass("int", ObjectClass, clc, JvmType.INT, 4, false, | public final static VmType[] initializeForBootImage(VmSystemClassLoader clc) throws ClassNotFoundException { ObjectClass = (VmNormalClass) clc.loadClass("java.lang.Object", false); CloneableClass = (VmInterfaceClass) clc.loadClass( "java.lang.Cloneable", false); Serial... |
FloatClass = new VmPrimitiveClass("float", ObjectClass, clc, 4, true, | FloatClass = new VmPrimitiveClass("float", ObjectClass, clc, JvmType.FLOAT, 4, true, | public final static VmType[] initializeForBootImage(VmSystemClassLoader clc) throws ClassNotFoundException { ObjectClass = (VmNormalClass) clc.loadClass("java.lang.Object", false); CloneableClass = (VmInterfaceClass) clc.loadClass( "java.lang.Cloneable", false); Serial... |
LongClass = new VmPrimitiveClass("long", ObjectClass, clc, 8, false, | LongClass = new VmPrimitiveClass("long", ObjectClass, clc, JvmType.LONG, 8, false, | public final static VmType[] initializeForBootImage(VmSystemClassLoader clc) throws ClassNotFoundException { ObjectClass = (VmNormalClass) clc.loadClass("java.lang.Object", false); CloneableClass = (VmInterfaceClass) clc.loadClass( "java.lang.Cloneable", false); Serial... |
DoubleClass = new VmPrimitiveClass("double", ObjectClass, clc, 8, true, | DoubleClass = new VmPrimitiveClass("double", ObjectClass, clc, JvmType.DOUBLE, 8, true, | public final static VmType[] initializeForBootImage(VmSystemClassLoader clc) throws ClassNotFoundException { ObjectClass = (VmNormalClass) clc.loadClass("java.lang.Object", false); CloneableClass = (VmInterfaceClass) clc.loadClass( "java.lang.Cloneable", false); Serial... |
VoidClass = new VmPrimitiveClass("void", ObjectClass, clc, 0, false, | VoidClass = new VmPrimitiveClass("void", ObjectClass, clc, JvmType.VOID, 0, false, | public final static VmType[] initializeForBootImage(VmSystemClassLoader clc) throws ClassNotFoundException { ObjectClass = (VmNormalClass) clc.loadClass("java.lang.Object", false); CloneableClass = (VmInterfaceClass) clc.loadClass( "java.lang.Cloneable", false); Serial... |
queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); | queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor()); | public void recoverChannel() throws Exception { queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); } |
queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); | queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor()); | public void setUp() throws Exception { super.setUp(); queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); } |
floater.calcCanvasLocation(); floater.calcChildLocations(); | private void moveFloats(Dimension distance) { if (moveWithLayerFloats != null) { for (Iterator i = moveWithLayerFloats.keySet().iterator(); i.hasNext(); ) { FloatedBlockBox floater = (FloatedBlockBox)i.next(); floater.x += distance.width; floater.y += d... | |
private void moveIfGreater(Point result, Point test) { if (test.x > result.x) { result.x = test.x; | private void moveIfGreater(Dimension result, Dimension test) { if (test.width > result.width) { result.width = test.width; | private void moveIfGreater(Point result, Point test) { if (test.x > result.x) { result.x = test.x; } if (test.y > result.y) { result.y = test.y; } } |
if (test.y > result.y) { result.y = test.y; | if (test.height > result.height) { result.height = test.height; | private void moveIfGreater(Point result, Point test) { if (test.x > result.x) { result.x = test.x; } if (test.y > result.y) { result.y = test.y; } } |
public void remove(Layer layer) { | private void remove(Layer layer) { | public void remove(Layer layer) { boolean removed = false; if (children != null) { for (Iterator i = children.iterator(); i.hasNext(); ) { Layer child = (Layer)i.next(); if (child == layer) { removed = true; i.remov... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.