rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
if (psMessage != null) { try { psMessage.close(); | if (psInsertMessage != null) { try { psInsertMessage.close(); } catch (Throwable t) { } } if (psUpdateMessage != null) { try { psUpdateMessage.close(); | 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 psMessage = null; Co... |
protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception | protected void handleBeforeRollback(List refsToAdd, Transaction tx) throws Exception | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
if (onePhase) | PreparedStatement psDeleteMessage = null; PreparedStatement psUpdateMessage = null; Connection conn = null; TransactionWrapper wrap = new TransactionWrapper(); try | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
} else { PreparedStatement psMessage = null; Connection conn = null; TransactionWrapper wrap = new TransactionWrapper(); try | conn = ds.getConnection(); rollbackPreparedTransaction(tx, conn); Iterator iter = refsToAdd.iterator(); boolean batch = usingBatchUpdates && refsToAdd.size() > 1; boolean messageDeletionsInBatch = false; boolean messageUpdatesInBatch = false; if (batch) | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
conn = ds.getConnection(); rollbackPreparedTransaction(tx, conn); Iterator iter = refsToAdd.iterator(); boolean batch = usingBatchUpdates && refsToAdd.size() > 1; boolean messagesInBatch = false; if (batch) | psDeleteMessage = conn.prepareStatement(deleteMessage); psUpdateMessage = conn.prepareStatement(updateMessageChannelCount); } while (iter.hasNext()) { ChannelRefPair pair = (ChannelRefPair) iter.next(); if (!batch) | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
psMessage = conn.prepareStatement(deleteMessage); | psDeleteMessage = conn.prepareStatement(deleteMessage); psUpdateMessage = conn.prepareStatement(updateMessageChannelCount); | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
while (iter.hasNext()) { ChannelRefPair pair = (ChannelRefPair) iter.next(); if (!batch) | Message m = pair.ref.getMessage(); synchronized (m) { m.decPersistentChannelCount(); boolean removed; if (m.getPersistentChannelCount() == 0) | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
psMessage = conn.prepareStatement(deleteMessage); | removeMessage(m, psDeleteMessage); removed = true; | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
boolean removed = checkRemoveMessage(pair.ref, psMessage); | else { updateMessageChannelCount(m, psUpdateMessage); removed = false; } | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
psMessage.addBatch(); messagesInBatch = true; | psDeleteMessage.addBatch(); messageDeletionsInBatch = true; } else { psUpdateMessage.addBatch(); messageUpdatesInBatch = true; | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
int rows = psMessage.executeUpdate(); | int rows = psDeleteMessage.executeUpdate(); | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
psMessage.close(); psMessage = null; } } if (batch) { if (messagesInBatch) { int[] rows = psMessage.executeBatch(); if (trace) | else | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
logBatchUpdate(deleteMessage, rows, "deleted"); | int rows = psUpdateMessage.executeUpdate(); if (trace) { log.trace("updated " + rows + " rows"); } | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
psMessage.close(); psMessage = null; | psDeleteMessage.close(); psDeleteMessage = null; psUpdateMessage.close(); psUpdateMessage = null; | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
catch (Exception e) | if (batch) | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
wrap.exceptionOccurred(); throw e; } finally { if (psMessage != null) | if (messageDeletionsInBatch) | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
try | int[] rows = psDeleteMessage.executeBatch(); if (trace) | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
psMessage.close(); | logBatchUpdate(deleteMessage, rows, "deleted"); | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
catch (Throwable t) | psDeleteMessage.close(); psDeleteMessage = null; } if (messageUpdatesInBatch) { int[] rows = psUpdateMessage.executeBatch(); if (trace) | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... |
if (conn != null) { try { conn.close(); } catch (Throwable e) { } } wrap.end(); | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... | |
catch (Exception e) { wrap.exceptionOccurred(); throw e; } finally { if (psDeleteMessage != null) { try { psDeleteMessage.close(); } catch (Throwable t) { } } if (psUpdateMessage != null) { try { psUpdateMessage.close(); } catch (Throwable t) { } } if (conn != null) { try { conn.close(); } catch (Throwable e) { } } wra... | protected void handleBeforeRollback(boolean onePhase, List refsToAdd, Transaction tx) throws Exception { //if one phase then do nothing (there is nothing in the db) //if two phase then remove refs marked with + //and update rows marked with - to C if (onePhase) { //NOOP } ... | |
removeNonPersistentMessages = sqlProperties.getProperty("REMOVE_REFERENCES", removeNonPersistentMessages); | updateReliableRefs = sqlProperties.getProperty("UPDATE_RELIABLE_REFERENCES", updateReliableRefs); removeAllNonReliableRefs = sqlProperties.getProperty("REMOVE_ALL_NONRELIABLE_REFS", removeAllNonReliableRefs); removeAllNonReliableMessages = sqlProperties.getProperty("REMOVE_ALL_NONRELIABLE_MSGS", removeAllNonReliableMes... | protected void initSqlProperties() { insertMessageRef = sqlProperties.getProperty("INSERT_MESSAGE_REF", insertMessageRef); deleteMessageRef = sqlProperties.getProperty("DELETE_MESSAGE_REF", deleteMessageRef); updateMessageRef = sqlProperties.getProperty("UPDATE_MESSAGE_REF", updateMessageRef); ... |
updateMessageChannelCount = sqlProperties.getProperty("UPDATE_MESSAGE_CHANNEL_COUNT", updateMessageChannelCount); | protected void initSqlProperties() { insertMessageRef = sqlProperties.getProperty("INSERT_MESSAGE_REF", insertMessageRef); deleteMessageRef = sqlProperties.getProperty("DELETE_MESSAGE_REF", deleteMessageRef); updateMessageRef = sqlProperties.getProperty("UPDATE_MESSAGE_REF", updateMessageRef); ... | |
ps.setInt(6, ref.getDeliveryCount()); ps.setString(7, ref.isReliable() ? "Y" : "N"); ps.setString(8, "Y"); | protected void prepareToAddReference(long channelID, MessageReference ref, Transaction tx, PreparedStatement ps) throws Exception { if (trace) { log.trace("adding " + ref + " to channel " + channelID + (tx == null ? " non-transactionally" : " on transaction: " + tx)); }... | |
psMessage = conn.prepareStatement(deleteMessage); boolean removed = checkRemoveMessage(ref, psMessage); if (removed) { | synchronized (m) { m.decPersistentChannelCount(); if (m.getPersistentChannelCount() == 0) { psMessage = conn.prepareStatement(deleteMessage); removeMessage(m, psMessage); } else { psMessage = conn.prepareStatement(updateMessageChannelCount); 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); }... |
log.trace("Delete " + rows + " rows"); } | log.trace("Delete/updated " + 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); }... |
resetMessageData(); | protected void startService() throws Exception { if (ds == null) { InitialContext ic = new InitialContext(); ds = (DataSource) ic.lookup(dataSourceJNDIName); ic.close(); } if (ds == null) { throw new Exception("No DataSource found. This service dependencies ... | |
this.usingBatchUpdates = false; | protected void startService() throws Exception { if (ds == null) { InitialContext ic = new InitialContext(); ds = (DataSource) ic.lookup(dataSourceJNDIName); ic.close(); } if (ds == null) { throw new Exception("No DataSource found. This service dependencies ... | |
ps.setInt(8, m.getPersistentChannelCount()); | 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 = c... | |
ps.setByte(8, jbm.getType()); ps.setString(9, jbm.getJMSType()); ps.setString(10, jbm.getJMSCorrelationID()); ps.setBytes(11, jbm.getJMSCorrelationIDAsBytes()); | ps.setByte(9, jbm.getType()); ps.setString(10, jbm.getJMSType()); ps.setString(11, jbm.getJMSCorrelationID()); ps.setBytes(12, jbm.getJMSCorrelationIDAsBytes()); | 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 = c... |
ps.setLong(12, destId); | ps.setLong(13, destId); | 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 = c... |
ps.setNull(13, Types.BIGINT); | ps.setNull(14, Types.BIGINT); | 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 = c... |
ps.setLong(13, replyToId); | ps.setLong(14, replyToId); | 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 = c... |
setLongVarBinary(ps, 14, bytes); | setLongVarBinary(ps, 15, bytes); | 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 = c... |
ps.setNull(14, Types.LONGVARBINARY); | 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 = c... |
ps.setInt(15, 1); | ps.setInt(16, 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 = c... |
public void close() | public void close() throws JMSException | public void close() { throw new NotYetImplementedException(); } |
throw new NotYetImplementedException(); | log.trace("In ServerConnectionDelegate.close()"); System.out.println("In ServerConnectionDelegate.close()"); | public void close() { throw new NotYetImplementedException(); } |
for(int i = 0; i < graphTabs.getComponentCount(); i++) | int count = graphTabs.getComponentCount(); for(int i = count-1; i >= 0; i--) | public void closeWorkspace() { for(int i = 0; i < graphTabs.getComponentCount(); i++) { graphTabs.remove(i); } manager.setCurrentWorkspace(null); navigator.setWorkspace(null); Prefs.INSTANCE.remove(Prefs.LAST_WORKSPACE); mlayout.clear(); graphs.clear(); } |
ref.add(new WeakReference(renewIt)); | public LeaseRenewingTask(UnicastRef renewIt) { ref.add(new WeakReference(renewIt)); lease = notifyDGC(renewIt); schedule(lease); } | |
ref.add(new WeakReference(renewIt)); } | public LeaseRenewingTask(UnicastRef renewIt) { ref.add(new WeakReference(renewIt)); lease = notifyDGC(renewIt); schedule(lease); } | |
ex.printStackTrace(); | InternalError ierr = new InternalError("Lease for "+renewIt); ierr.initCause(ex); throw ierr; | public static void scheduleLeases(UnicastRef renewIt) { try { synchronized (existingTasks) { // Check maybe the task for refreshing this remote object already // exists. LeaseRenewingTask task = (LeaseRenewingTask) existingTasks.get(renewIt); if (task != null) { ... |
request.execute(DefaultClusteredPostOffice.this); | Object result = request.execute(DefaultClusteredPostOffice.this); return result; | public Object handle(Message message) { try { byte[] bytes = message.getBuffer(); ClusterRequest request = readRequest(bytes); request.execute(DefaultClusteredPostOffice.this); } catch (Throwable e) ... |
} return null; | } | public Object handle(Message message) { try { byte[] bytes = message.getBuffer(); ClusterRequest request = readRequest(bytes); request.execute(DefaultClusteredPostOffice.this); } catch (Throwable e) ... |
statsSender.stop(); | public void stop() throws Exception { super.stop(); syncChannel.close(); asyncChannel.close(); } | |
PullMessagesRequest(String nodeId, long txId, long checkChannelID, String queueName, int numMessages) { super(nodeId, txId, true, checkChannelID); this.queueName = queueName; this.numMessages = numMessages; | PullMessagesRequest() { | PullMessagesRequest(String nodeId, long txId, long checkChannelID, String queueName, int numMessages) { super(nodeId, txId, true, checkChannelID); this.queueName = queueName; this.numMessages = numMessages; } |
PullMessagesResponse(int size) | PullMessagesResponse() | PullMessagesResponse(int size) { messages = new ArrayList(size); } |
messages = new ArrayList(size); | PullMessagesResponse(int size) { messages = new ArrayList(size); } | |
setSelectionMode(DISCONTIGUOUS_TREE_SELECTION); | setSelectionMode(SINGLE_TREE_SELECTION); | public DefaultTreeSelectionModel() { setSelectionMode(DISCONTIGUOUS_TREE_SELECTION); listenerList = new EventListenerList(); } |
public TreeSelectionEvent(Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, | public TreeSelectionEvent(Object source, TreePath[] paths, boolean[] areNew, TreePath oldLeadSelectionPath, | public TreeSelectionEvent(Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath) { super(source);//TODO this.paths = new TreePath[1]{path};//TODO this.areNew = new boolean[1]{isNew}; this.oldLeadSelectionPath = oldLeadSelectionPath; this.newLeadSel... |
boxes.remove(child); | if (boxes != null) { boxes.remove(child); } | public void removeChild(Box child) { boxes.remove(child); } |
PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | protected void route(boolean persistentMessage) throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null);... |
PagingFilteredQueue queue2 = new PagingFilteredQueue("queue2", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue2 = new PagingFilteredQueue("queue2", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | protected void route(boolean persistentMessage) throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null);... |
PagingFilteredQueue queue3 = new PagingFilteredQueue("queue3", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue3 = new PagingFilteredQueue("queue3", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | protected void route(boolean persistentMessage) throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null);... |
PagingFilteredQueue queue4 = new PagingFilteredQueue("queue4", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue4 = new PagingFilteredQueue("queue4", channelIdManager.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null); | protected void route(boolean persistentMessage) throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null);... |
PagingFilteredQueue queue5 = new PagingFilteredQueue("queue5", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue5 = new PagingFilteredQueue("queue5", channelIdManager.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null); | protected void route(boolean persistentMessage) throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null);... |
PagingFilteredQueue queue6 = new PagingFilteredQueue("queue6", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue6 = new PagingFilteredQueue("queue6", channelIdManager.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null); | protected void route(boolean persistentMessage) throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null);... |
PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | protected void routeTransactional(boolean persistentMessage) throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.... |
PagingFilteredQueue queue2 = new PagingFilteredQueue("queue2", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue2 = new PagingFilteredQueue("queue2", channelIdManager.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null); | protected void routeTransactional(boolean persistentMessage) throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.... |
PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), filter); | PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), filter); | protected void routeWithFilter(boolean persistentMessage) throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); SimpleFilter filter = new SimpleFilter(2); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1... |
PagingFilteredQueue queue2 = new PagingFilteredQueue("queue2", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue2 = new PagingFilteredQueue("queue2", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | protected void routeWithFilter(boolean persistentMessage) throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); SimpleFilter filter = new SimpleFilter(2); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1... |
PagingFilteredQueue queue3 = new PagingFilteredQueue("queue3", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue3 = new PagingFilteredQueue("queue3", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | protected void routeWithFilter(boolean persistentMessage) throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); SimpleFilter filter = new SimpleFilter(2); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1... |
PagingFilteredQueue queue1 = new PagingFilteredQueue("durableQueue", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue1 = new PagingFilteredQueue("durableQueue", channelIdManager.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null); | public final void testBind() throws Throwable { PostOffice office1 = null; PostOffice office2 = null; PostOffice office3 = null; try { office1 = createPostOffice(); //Bind one durable Filter filter1 = new Selector("x ... |
PagingFilteredQueue queue2 = new PagingFilteredQueue("nonDurableQueue", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue2 = new PagingFilteredQueue("nonDurableQueue", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public final void testBind() throws Throwable { PostOffice office1 = null; PostOffice office2 = null; PostOffice office3 = null; try { office1 = createPostOffice(); //Bind one durable Filter filter1 = new Selector("x ... |
PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... |
PagingFilteredQueue queue2 = new PagingFilteredQueue("queue2", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue2 = new PagingFilteredQueue("queue2", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... |
PagingFilteredQueue queue3 = new PagingFilteredQueue("queue3", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue3 = new PagingFilteredQueue("queue3", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... |
PagingFilteredQueue queue4 = new PagingFilteredQueue("queue4", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue4 = new PagingFilteredQueue("queue4", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... |
PagingFilteredQueue queue5 = new PagingFilteredQueue("queue5", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue5 = new PagingFilteredQueue("queue5", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... |
PagingFilteredQueue queue6 = new PagingFilteredQueue("queue6", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue6 = new PagingFilteredQueue("queue6", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... |
PagingFilteredQueue queue7 = new PagingFilteredQueue("queue7", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue7 = new PagingFilteredQueue("queue7", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... |
PagingFilteredQueue queue8 = new PagingFilteredQueue("queue8", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue8 = new PagingFilteredQueue("queue8", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... |
PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... |
PagingFilteredQueue queue2 = new PagingFilteredQueue("queue2", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue2 = new PagingFilteredQueue("queue2", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... |
PagingFilteredQueue queue3 = new PagingFilteredQueue("queue3", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue3 = new PagingFilteredQueue("queue3", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... |
PagingFilteredQueue queue4 = new PagingFilteredQueue("queue4", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue4 = new PagingFilteredQueue("queue4", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... |
PagingFilteredQueue queue5 = new PagingFilteredQueue("queue5", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue5 = new PagingFilteredQueue("queue5", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... |
PagingFilteredQueue queue6 = new PagingFilteredQueue("queue6", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue6 = new PagingFilteredQueue("queue6", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... |
PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public final void testRouteNoBinding() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... |
tabsOpaque = UIManager.getBoolean("TabbedPane.tabsOpaque"); | protected void installDefaults() { super.installDefaults(); selectColor = UIManager.getColor("TabbedPane.selected"); selectHighlight = UIManager.getColor("TabbedPane.selectHighlight"); tabAreaBackground = UIManager.getColor("TabbedPane.tabAreaBackground"); minTabWidth = 0; } | |
if (tabIndex != firstIndex) | if (tabIndex != firstIndex && tabIndex > 0 && tabsOpaque) | protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex... |
c = UIManager.getColor("TabbedPane.unselectedBackground"); | c = getUnselectedBackground(tabIndex - 1); | protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex... |
if (tabIndex != firstIndex) | if (tabIndex != firstIndex && tabIndex > 0 && tabsOpaque) | protected void paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = ... |
c = UIManager.getColor("TabbedPane.unselectedBackground"); | c = getUnselectedBackground(tabIndex - 1); | protected void paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = ... |
int n = 0; int possibleWrap; boolean lastLenCheck = false; while (true) { possibleWrap = n; n = currentString.indexOf(WhitespaceStripper.SPACE, n + 1); if (n == -1) { break; | int left = 0; int right = currentString.indexOf(WhitespaceStripper.SPACE, left+1); int lastWrap = 0; int graphicsLength = 0; while(right > 0 && graphicsLength <= avail) { graphicsLength += FontUtil.len(c, currentString.substring(left, right), font); lastWrap = left; left = right; right = currentString.indexOf(Whitespa... | public static void breakText(Context c, InlineTextBox inline, InlineBox prev_align, int avail, Font font) { boolean db = false; if (db) { Uu.p("========================="); Uu.p("breaking: " + inline); //Uu.p("breaking : '" + inline.getSubstring() + "'"); //... |
lastLenCheck = FontUtil.len(c, currentString.substring(0, n), font) > avail; if (lastLenCheck) { break; } } if (n == -1 && FontUtil.len(c, currentString, font) <= avail) { return; } if (possibleWrap == 0) { if (lastLenCheck) { n = 0; } else { possibleWrap = currentString.length(); } } if (n <= 0) { inline.setSubstr... | } | public static void breakText(Context c, InlineTextBox inline, InlineBox prev_align, int avail, Font font) { boolean db = false; if (db) { Uu.p("========================="); Uu.p("breaking: " + inline); //Uu.p("breaking : '" + inline.getSubstring() + "'"); //... |
if (trace) { log.trace("read acknowledge()"); } return request; } case ACKNOWLEDGE_BATCH: | if (trace) { log.trace("read acknowledgeDelivery()"); } return request; } case ACKNOWLEDGE_LIST: | public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { DataInputStream dis; if (in instanceof DataInputStream) { dis = (DataInputStream)in; } else { //Further sanity check if (in instanceof Ob... |
if (trace) { log.trace("read acknowledge()"); } return request; } case CANCEL_DELIVERIES: | if (trace) { log.trace("read acknowledgeDeliveries()"); } return request; } case CANCEL: { MethodInvocation mi = readHeader(dis); long deliveryId = dis.readLong(); int deliveryCount = dis.readInt(); Object[] args = new Object[] {new DefaultCancel(deliveryId, deliveryCount)}; mi.setArguments(args); InvocationReque... | public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { DataInputStream dis; if (in instanceof DataInputStream) { dis = (DataInputStream)in; } else { //Further sanity check if (in instanceof Ob... |
{ Cancel cancel = new Cancel(); cancel.read(dis); | { long deliveryId = dis.readLong(); int deliveryCount = dis.readInt(); DefaultCancel cancel = new DefaultCancel(deliveryId, deliveryCount); | public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { DataInputStream dis; if (in instanceof DataInputStream) { dis = (DataInputStream)in; } else { //Further sanity check if (in instanceof Ob... |
else if ("acknowledge".equals(methodName)) | else if ("acknowledgeDelivery".equals(methodName)) | public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... |
if (trace) { log.trace("wrote acknowledge()"); } } else if ("acknowledgeBatch".equals(methodName)) { dos.writeByte(ACKNOWLEDGE_BATCH); | if (trace) { log.trace("wrote acknowledgeDelivery()"); } } else if ("acknowledgeDeliveries".equals(methodName)) { dos.writeByte(ACKNOWLEDGE_LIST); | public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... |
if (trace) { log.trace("wrote acknowledge()"); } } else if ("sendTransaction".equals(methodName)) { dos.writeByte(SEND_TRANSACTION); writeHeader(mi, dos); TransactionRequest request = (TransactionRequest)mi.getArguments()[0]; request.write(dos); dos.flush(); if (trace) { log.trace("wrote getMessageNow()"); } } els... | if (trace) { log.trace("wrote acknowledgeDeliveries()"); } } else if ("cancelDelivery".equals(methodName)) { dos.writeByte(CANCEL); writeHeader(mi, dos); Cancel cancel = (Cancel)mi.getArguments()[0]; dos.writeLong(cancel.getDeliveryId()); dos.writeInt(cancel.getDeliveryCount()); dos.flush(); if (trace) { log.trac... | public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... |
dos.writeByte(CANCEL_DELIVERIES); | dos.writeByte(CANCEL_LIST); | public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... |
cancel.write(dos); | dos.writeLong(cancel.getDeliveryId()); dos.writeInt(cancel.getDeliveryCount()); | public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... |
else if ("sendTransaction".equals(methodName)) { dos.writeByte(SEND_TRANSACTION); writeHeader(mi, dos); TransactionRequest request = (TransactionRequest)mi.getArguments()[0]; request.write(dos); dos.flush(); if (trace) { log.trace("wrote getMessageNow()"); } } else if ("getIdBlock".equals(methodName)) { dos.writeB... | public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | |
public DimensionUIResource(int w, int h) | public DimensionUIResource(int width, int height) | public DimensionUIResource(int w, int h) { super(w, h); } |
super(w, h); | super(width, height); | public DimensionUIResource(int w, int h) { super(w, h); } |
BasicTextUI.this); | rootView.getViewFactory()); | public void changedUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.changedUpdate(ev, new Rectangle(0, 0, size.width, size.height), BasicTextUI.this); } |
BasicTextUI.this); | rootView.getViewFactory()); | public void insertUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.insertUpdate(ev, new Rectangle(0, 0, size.width, size.height), BasicTextUI.this); int caretPos = textComponent.getCaretPosition(); if (caretPos >= ev.getOffset()) ... |
BasicTextUI.this); | rootView.getViewFactory()); | public void removeUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.removeUpdate(ev, new Rectangle(0, 0, size.width, size.height), BasicTextUI.this); int caretPos = textComponent.getCaretPosition(); if (caretPos >= ev.getOffset()) ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.