rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public void menuCanceled(MenuEvent event); | void menuCanceled(MenuEvent event); | public void menuCanceled(MenuEvent event); |
public void menuDeselected(MenuEvent event); | void menuDeselected(MenuEvent event); | public void menuDeselected(MenuEvent event); |
public void menuSelected(MenuEvent event); | void menuSelected(MenuEvent event); | public void menuSelected(MenuEvent event); |
throws NotImplementedException | public void processKeyEvent(KeyEvent e) throws NotImplementedException { throw new UnsupportedOperationException("not implemented"); } | |
throw new UnsupportedOperationException("not implemented"); | MenuElement[] selection = (MenuElement[]) selectedPath.toArray(new MenuElement[selectedPath.size()]); MenuElement[] path; for (int index = selection.length - 1; index >= 0; index--) { MenuElement el = selection[index]; MenuElement[] subEls = el.getSubElements(); path = null; for (int subIndex = 0; subIndex < subEl... | public void processKeyEvent(KeyEvent e) throws NotImplementedException { throw new UnsupportedOperationException("not implemented"); } |
if (Relative.isRelative(c)) { | if (box.relative) { | public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... |
consumerState.getMessageCallbackHandler().cancelBuffer(); | public Object handleClosing(Invocation invocation) throws Throwable { ConsumerState consumerState = getState(invocation); // First we call close on the messagecallbackhandler which waits for onMessage invocations // to complete and then cancels anything in the client buffer. /... | |
tree = (JTree) c; configureLayoutCache(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background")); tree.setOpaque(true); tree.setScrollsOnExpand(defaults.get... | super.installUI(c); | public void installUI(JComponent c) { tree = (JTree) c; configureLayoutCache(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background"... |
tree.setFont(null); tree.setForeground(null); tree.setBackground(null); uninstallKeyboardActions(); tree.removePropertyChangeListener(propertyChangeListener); tree.removeFocusListener(focusListener); tree.removeTreeSelectionListener(treeSelectionListener); tree.removeMouseListener(mouseListener); tree.removeKeyListen... | super.uninstallUI(c); | public void uninstallUI(JComponent c) { tree.setFont(null); tree.setForeground(null); tree.setBackground(null); uninstallKeyboardActions(); tree.removePropertyChangeListener(propertyChangeListener); tree.removeFocusListener(focusListener); tree.removeTreeSelectionListener(treeSelectionLi... |
case (POSTGRESQL) : { mcf.setConnectionURL("jdbc:postgresql: mcf.setDriverClass("org.postgresql.Driver"); mcf.setUserName("jboss"); mcf.setPassword("jboss"); mcf.setTransactionIsolation("TRANSACTION_READ_COMMITTED"); break; } | private void startManagedConnectionFactory(ObjectName on) throws Exception { LocalManagedConnectionFactory mcf = new LocalManagedConnectionFactory(); switch (DB) { case (HSQL) : { mcf.setConnectionURL("jdbc:hsqldb:mem:test"); mcf.setDriverClass("org.hsq... | |
public void bind(String name, Object obj) throws NamingException { getURLOrDefaultInitCtx(name).bind(name, obj); } | public void bind (Name name, Object obj) throws NamingException { getURLOrDefaultInitCtx (name).bind (name, obj); } | public void bind(String name, Object obj) throws NamingException { getURLOrDefaultInitCtx(name).bind(name, obj); } |
public static Connection getConnection(String url, String user, String password) throws SQLException | public static Connection getConnection(String url, Properties properties) throws SQLException | public static Connection getConnection(String url, String user, String password) throws SQLException { Properties p = new Properties(); if (user != null) p.setProperty("user", user); if (password != null) p.setProperty("password", password); return getConnection(url, p); } |
Properties p = new Properties(); | Driver d = getDriver(url); if (d == null) throw new SQLException("Driver not found for URL: " + url); | public static Connection getConnection(String url, String user, String password) throws SQLException { Properties p = new Properties(); if (user != null) p.setProperty("user", user); if (password != null) p.setProperty("password", password); return getConnection(url, p); } |
if (user != null) p.setProperty("user", user); if (password != null) p.setProperty("password", password); return getConnection(url, p); | return d.connect(url, properties); | public static Connection getConnection(String url, String user, String password) throws SQLException { Properties p = new Properties(); if (user != null) p.setProperty("user", user); if (password != null) p.setProperty("password", password); return getConnection(url, p); } |
setCaretPosition(start + contentLength); | public void replaceSelection(String content) { Caret caret = getCaret(); StyledDocument doc = getStyledDocument(); int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { int start = g... | |
return new DefaultEditorKit(); | return new PlainEditorKit(); | protected EditorKit createDefaultEditorKit() { return new DefaultEditorKit(); } |
Rectangle2D box_rect = new Rectangle(box.x, box.y, box.width, box.height + 1); if (oldclip.intersects(box_rect)) { | Rectangle2D box_rect = new Rectangle(box.x, box.y, box.width, box.height); if (oldclip.intersects(box_rect) || (box instanceof AnonymousBlockBox)) { | public void paintChild(Context c, Box box, Renderer layout) { if (box.isChildrenExceedBounds()) { layout.paint(c, box); return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", false)) { if (c.getGraphics().getClip() != null) { Rectangle... |
{ | { ((JBossMessage)m).setPropertiesReadWrite(false); | protected void configure(Message m, int deliveryMode, int priority, long timeToLive, Destination dest) throws JMSException { m.setJMSDeliveryMode(deliveryMode); if (isTimestampDisabled) { m.setJMSTimestamp(0l); } else { m.setJMSTimest... |
NodeList validators = v.getElementsByTagName("validator"); | List validators = XMLUtil.getChildElements(v, "validator"); | protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... |
for (int k = 0; k < validators.getLength(); k++) { Element validator = (Element) validators.item(k); | for (int k = 0; k < validators.size(); k++) { Element validator = (Element) validators.get(k); | protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... |
NodeList preFunctions = pre.getElementsByTagName("function"); | List preFunctions = XMLUtil.getChildElements(pre, "function"); | protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... |
for (int k = 0; k < preFunctions.getLength(); k++) { Element preFunction = (Element) preFunctions.item(k); | for (int k = 0; k < preFunctions.size(); k++) { Element preFunction = (Element) preFunctions.get(k); | protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... |
NodeList postFunctions = post.getElementsByTagName("function"); | List postFunctions = XMLUtil.getChildElements(post, "function"); | protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... |
for (int k = 0; k < postFunctions.getLength(); k++) { Element postFunction = (Element) postFunctions.item(k); | for (int k = 0; k < postFunctions.size(); k++) { Element postFunction = (Element) postFunctions.get(k); | protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... |
queueMap = new HashMap(); topicMap = new HashMap(); | queueMap = new ConcurrentReaderHashMap(); topicMap = new ConcurrentReaderHashMap(); | CoreDestinationManager(DestinationManagerImpl destinationManager) throws Exception { queueMap = new HashMap(); topicMap = new HashMap(); this.destinationManager = destinationManager; } |
public Topic(String name, MessageStore ms, PersistenceManager pm, TransactionManager tm) | public Topic(String name, MessageStore ms) | public Topic(String name, MessageStore ms, PersistenceManager pm, TransactionManager tm) { super(name, ms, pm, tm); router = new PointToMultipointRouter(); } |
super(name, ms, pm, tm); router = new PointToMultipointRouter(); | this(name, ms, null, null); | public Topic(String name, MessageStore ms, PersistenceManager pm, TransactionManager tm) { super(name, ms, pm, tm); router = new PointToMultipointRouter(); } |
if ( localName.equals("public")) { entityMap.put(atts.getValue("publicId"), atts.getValue("uri")); } } | if (localName.equals("public") || (localName.equals("") && qName.equals("public"))) { entityMap.put(atts.getValue("publicId"), atts.getValue("uri")); } } | public void startElement(String namespaceURI, String localName, String qName, Attributes atts) { if ( localName.equals("public")) { entityMap.put(atts.getValue("publicId"), atts.getValue("uri")); } } |
URL url = null; Map map = null; try { url = FSCatalog.class.getClassLoader().getResource(catalogURI); map = parseCatalog(new InputSource(new BufferedInputStream(url.openStream()))); } catch ( Exception ex ) { XRLog.xmlEntities( Level.WARNING, "Could not open XML catalog from URI '" + catalogURI + "'", ex); map = new Ha... | URL url = null; Map map = null; try { url = FSCatalog.class.getClassLoader().getResource(catalogURI); map = parseCatalog(new InputSource(new BufferedInputStream(url.openStream()))); } catch (Exception ex) { XRLog.xmlEntities(Level.WARNING, "Could not open XML catalog from URI '" + catalogURI + "'", ex); map = new HashM... | public Map parseCatalog(String catalogURI) { URL url = null; Map map = null; try { url = FSCatalog.class.getClassLoader().getResource(catalogURI); map = parseCatalog(new InputSource(new BufferedInputStream(url.openStream()))); } catch ( Exception ex ) { XRLog.xmlEntities( Level.WARNING, "Co... |
return map; } | public Map parseCatalog(String catalogURI) { URL url = null; Map map = null; try { url = FSCatalog.class.getClassLoader().getResource(catalogURI); map = parseCatalog(new InputSource(new BufferedInputStream(url.openStream()))); } catch ( Exception ex ) { XRLog.xmlEntities( Level.WARNING, "Co... | |
public static void xmlEntities( Level level, String msg ) { log( XML_ENTITIES, level, msg ); } | public static void xmlEntities(String msg) { xmlEntities(Level.INFO, msg); } | public static void xmlEntities( Level level, String msg ) { log( XML_ENTITIES, level, msg ); } |
public static WorkflowDescriptor load(final InputStream is, boolean validate) throws SAXException, IOException, InvalidWorkflowDescriptorException { return load(is, null, validate); | public static WorkflowDescriptor load(final InputStream is) throws SAXException, IOException, InvalidWorkflowDescriptorException { return load(is, null, true); | public static WorkflowDescriptor load(final InputStream is, boolean validate) throws SAXException, IOException, InvalidWorkflowDescriptorException { return load(is, null, validate); } |
this.connFactoryDelegates = new HashMap(); | public ServerPeer(String serverPeerID) { this.serverPeerID = serverPeerID; } | |
private ConnectionFactory createConnectionFactory() throws Exception | private ConnectionFactory createConnectionFactory(String connFactoryID) throws Exception | private ConnectionFactory createConnectionFactory() throws Exception { ConnectionFactoryDelegate proxy = (ConnectionFactoryDelegate)createProxy(); return new JBossConnectionFactory(proxy); } |
ConnectionFactoryDelegate proxy = (ConnectionFactoryDelegate)createProxy(); | ConnectionFactoryDelegate proxy = (ConnectionFactoryDelegate)createProxy(connFactoryID); | private ConnectionFactory createConnectionFactory() throws Exception { ConnectionFactoryDelegate proxy = (ConnectionFactoryDelegate)createProxy(); return new JBossConnectionFactory(proxy); } |
private Object createProxy() throws Exception | private Object createProxy(String connFactoryID) throws Exception | private Object createProxy() throws Exception { Serializable oid = connFactoryAdvisor.getName(); String stackName = "ConnectionFactoryStack"; AdviceStack stack = AspectManager.instance().getAdviceStack(stackName); // TODO why do I need an advisor to create an interceptor stack? Interceptor... |
metadata.addMetaData(JMSAdvisor.JMS, JMSAdvisor.CONNECTION_FACTORY_ID, connFactoryID, PayloadKey.AS_IS); | private Object createProxy() throws Exception { Serializable oid = connFactoryAdvisor.getName(); String stackName = "ConnectionFactoryStack"; AdviceStack stack = AspectManager.instance().getAdviceStack(stackName); // TODO why do I need an advisor to create an interceptor stack? Interceptor... | |
System.setProperty("jmx.invoke.getters", "true"); | private MBeanServer findMBeanServer() { MBeanServer result = null; ArrayList l = MBeanServerFactory.findMBeanServer(null); for(Iterator i = l.iterator(); i.hasNext(); ) { MBeanServer s = (MBeanServer)l.iterator().next(); if ("jboss".equals(s.getDefaultDomain())) { ... | |
public ConnectionFactoryDelegate getConnectionFactoryDelegate() | public ConnectionFactoryDelegate getConnectionFactoryDelegate(String connectionFactoryID) | public ConnectionFactoryDelegate getConnectionFactoryDelegate() { return connFactoryDelegate; } |
return connFactoryDelegate; | return (ConnectionFactoryDelegate)connFactoryDelegates.get(connectionFactoryID); | public ConnectionFactoryDelegate getConnectionFactoryDelegate() { return connFactoryDelegate; } |
connFactoryDelegate = new ServerConnectionFactoryDelegate(this); | public synchronized void start() throws Exception { if (started) { return; } log.debug(this + " starting"); initialContext = new InitialContext(jndiEnvironment); mbeanServer = findMBeanServer(); transactionManager = findTransactionManager(); clientManager = new Clien... | |
ConnectionFactory connectionFactory = createConnectionFactory(); bindConnectionFactory(connectionFactory); | setupConnectionFactories(); | public synchronized void start() throws Exception { if (started) { return; } log.debug(this + " starting"); initialContext = new InitialContext(jndiEnvironment); mbeanServer = findMBeanServer(); transactionManager = findTransactionManager(); clientManager = new Clien... |
unbindConnectionFactory(); | tearDownConnectionFactories(); | public synchronized void stop() throws Exception { if (!started) { return; } log.debug(this + " stopping"); unbindConnectionFactory(); mbeanServer.unregisterMBean(DESTINATION_MANAGER_OBJECT_NAME); tearDownAdvisors(); started = false; log.debug(this + " stopped")... |
public String createQueue(String name, String jndiName) throws Exception | public String createQueue(String name) throws Exception | public String createQueue(String name, String jndiName) throws Exception { return createDestination(true, name, jndiName); } |
return createDestination(true, name, jndiName); | return createDestination(true, name, null); | public String createQueue(String name, String jndiName) throws Exception { return createDestination(true, name, jndiName); } |
public String createTopic(String name, String jndiName) throws Exception | public String createTopic(String name) throws Exception | public String createTopic(String name, String jndiName) throws Exception { return createDestination(false, name, jndiName); } |
return createDestination(false, name, jndiName); | return createDestination(false, name, null); | public String createTopic(String name, String jndiName) throws Exception { return createDestination(false, name, jndiName); } |
if ( InlineUtil.isBreak( node ) ) { | if ( LayoutFactory.isBreak( node ) ) { | private InlineBox calculateInline( Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align ) { //u.p("line calc with avail = " + avail); // calculate the starting index int start = 0; if ( prev != null && pre... |
if ( InlineUtil.isBreak( current_node ) ) { | if ( LayoutFactory.isBreak( current_node ) ) { | public Box layoutChildren( Context c, Box box ) { if ( isHiddenNode( box.getElement(), c ) ) { return box; } //u.p("InlineLayout.layoutChildren(: " + box); //u.dump_stack(); //u.p("parent box = " + c.parent_box); //u.p("placement point = " + c.placement_point); ... |
return new Dimension(xTotal.maximum + i.left + i.right, yTotal.maximum + i.top + i.bottom); | int xDim = xTotal.maximum + i.left + i.right; int yDim = yTotal.maximum + i.top + i.bottom; if (xDim < xTotal.maximum) xDim = Integer.MAX_VALUE; if (yDim < yTotal.maximum) yDim = Integer.MAX_VALUE; return new Dimension(xDim, yDim); | public Dimension maximumLayoutSize(Container parent) { synchronized (container.getTreeLock()) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkTotalRequirements(); Insets i = container.getInsets(); return new Dimension(xTotal.maximum + i.left + i.right... |
void addLayoutComponent(Component component, Object contraints); | void addLayoutComponent(Component component, Object constraints); | void addLayoutComponent(Component component, Object contraints); |
0, | protected Message createMessage(byte i, boolean reliable) throws Exception { HashMap coreHeaders = generateFilledMap(true); HashMap jmsProperties = generateFilledMap(false); JBossMapMessage m = new JBossMapMessage(i, reliable, System... | |
public JBossMapMessage(long messageID, boolean reliable, long expiration, long timestamp, byte priority, Map coreHeaders, byte[] payloadAsByteArray, String jmsType, String correlationID, byte[] correlationIDBytes, JBossDestination destination, JBossDestination replyTo, HashMap jmsProperties) { super(messageID, reliable... | public JBossMapMessage() { | public JBossMapMessage(long messageID, boolean reliable, long expiration, long timestamp, byte priority, Map coreHeaders, byte[] payloadAsByteArray, String jmsType, String correlationID, byte[] correlationIDBytes, JBossDestination destin... |
c.getGraphics().setRenderingHint(RenderingHints.KEY_ANTIALIASING, aa_key); | public static void paint(Context c, Box box) { String type = c.css.getStyle(box.getNode()).getStringProperty("list-style-type"); if (type.equals("none")) { return; } if (type.equals("lower-greek")) { type = "decimal"; } if (type.equals("decimal-leading... | |
host.repaint(); | host.repaint(repaintRec.x, repaintRec.y, repaintRec.width, repaintRec.height); | protected void damageLineRange (int line0, int line1, Shape a, Component host) { if (a == null) return; Rectangle rec0 = lineToRect(a, line0); Rectangle rec1 = lineToRect(a, line1); if (rec0 == null || rec1 == null) // something went wrong, repaint the entire host to be safe host.repaint()... |
g.setFont(textComponent.getFont()); | public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getForeground... | |
public DelegateSupport(int objectID) | public DelegateSupport(int id) | public DelegateSupport(int objectID) { this.id = objectID; } |
this.id = objectID; | this.id = id; this.state = null; | public DelegateSupport(int objectID) { this.id = objectID; } |
XidImpl xid = null; xid = new XidImpl("bq1".getBytes(), 1, new GUID().toString().getBytes()); xaResource.start(xid, XAResource.TMNOFLAGS); | public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; ... | |
XidImpl xid = null; if (commitSize > 0) { xid = new XidImpl("bq1".getBytes(), 1, new GUID().toString().getBytes()); xaResource.start(xid, XAResource.TMNOFLAGS); } | public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; ... | |
failed = true; return; | public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; ... | |
if (rollbackSize > 0 && outerCount != iterations - 1) { xid = new XidImpl("bq1".getBytes(), 1, new GUID().toString().getBytes()); xaResource.start(xid, XAResource.TMNOFLAGS); } | xid = new XidImpl("bq1".getBytes(), 1, new GUID().toString().getBytes()); xaResource.start(xid, XAResource.TMNOFLAGS); | public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; ... |
xaResource.end(xid, XAResource.TMSUCCESS); xaResource.prepare(xid); xaResource.commit(xid, false); | public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; ... | |
String url_text = root.panel.url.getText(); root.panel.loadPage(url_text); | root.panel.view.setPageInfo(root.panel.view.getPageInfo() == null ? PageInfo.LETTER : null); print_preview.putValue(Action.NAME, root.panel.view.getPageInfo() == null ? "Print Preview" : "Normal View"); root.panel.reloadPage(); | public void actionPerformed(ActionEvent evt) { try { String url_text = root.panel.url.getText(); root.panel.loadPage(url_text); root.panel.view.repaint(); } catch (Exception ex) { Uu.p(ex); ... |
if (index == 0 || name.lastIndexOf(':') != index) | if (index == 0 || index == (len - 1) || name.lastIndexOf(':') != index) | static void checkNCName(String name, boolean xml11) { checkName(name, xml11); int len = name.length(); int index = name.indexOf(':'); if (index != -1) { if (index == 0 || name.lastIndexOf(':') != index) { throw new DomDOMException(DOMException.NAMESPACE_ERR, ... |
if (doctype != null) { DTDElementTypeInfo info = doctype.getElementTypeInfo(current.getNodeName()); if (info != null && id.equals(element.getAttribute(info.idAttrName))) { return element; } else if (element.userIdAttrs != null) | if (element.userIdAttrs != null) | public Element getElementById(String id) { if (id == null || id.length() == 0) { return null; } DomDoctype doctype = (DomDoctype) getDoctype(); if (doctype != null && !doctype.hasIds()) { doctype = null; } // yes, this is linear in size of document. // it'd be eas... |
if (doctype != null) { DTDElementTypeInfo info = doctype.getElementTypeInfo(current.getNodeName()); if (info != null && id.equals(element.getAttribute(info.idAttrName))) { return element; } | public Element getElementById(String id) { if (id == null || id.length() == 0) { return null; } DomDoctype doctype = (DomDoctype) getDoctype(); if (doctype != null && !doctype.hasIds()) { doctype = null; } // yes, this is linear in size of document. // it'd be eas... | |
log.info("Closing connection 333"); | public void testMessageOrderPersistence2() throws Exception { if (ServerManagement.isRemote()) return; Connection conn = cf.createConnection(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sessSend.createProducer(queue); TextMes... | |
log.info("Got message " + tm.getText() + " count=" + count); | log.trace("Got message " + tm.getText() + " count=" + count); | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... |
log.info("Expected a but was " + tm.getText()); | log.trace("Expected a but was " + tm.getText()); | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... |
log.info("Expected b but was " + tm.getText()); | log.trace("Expected b but was " + tm.getText()); | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... |
log.info("Expected c but was " + tm.getText()); | log.trace("Expected c but was " + tm.getText()); | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... |
log.info("Rolling back"); | log.trace("Rolling back"); | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... |
log.info("Redelivered flag not set"); | log.trace("Redelivered flag not set"); | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... |
log.info("Committing"); | log.trace("Committing"); | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... |
public void close() throws javax.jms.JMSException | public void close() throws JMSException | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... |
closed = true; | doClose(); | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... |
if (trace) { log.trace("Closed message handler"); } | if (trace) { log.trace(this + " Waiting for internal thread to complete"); } | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... |
internalThread.interrupt(); | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | |
internalThread.join(3000); | internalThread.join(TIMEOUT); | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... |
{ internalThread.interrupt(); internalThread.join(); } | { throw new JMSException(this + " Waited " + TIMEOUT + " ms for internal thread to complete, but it didn't"); } | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... |
if (trace) log.trace("Ignoring interrupting while joining thread " + this); | if (trace) { log.trace(this + " Thread interrupted while waiting for internal thread to complete"); } | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... |
sess.close(); if (trace) { log.trace("Closed: " + this); } | if (trace) { log.trace("Closed: " + this); } | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... |
if (is == null) { throw new FactoryException("Cannot find osworkflow.xml configuration file in classpath or in META-INF"); } | public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db; try { db = dbf.newDocumentBuild... | |
public BaseThroughputJob(String serverURL, String destinationName, int numConnections, | public BaseThroughputJob(String slaveURL, String serverURL, String destinationName, int numConnections, | public BaseThroughputJob(String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages) { super(serverURL, destinationName); this.numConnections = numConnections; this.numSessions = numSessions; this.transacted = ... |
super(serverURL, destinationName); | super(slaveURL, serverURL, destinationName); | public BaseThroughputJob(String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages) { super(serverURL, destinationName); this.numConnections = numConnections; this.numSessions = numSessions; this.transacted = ... |
log.info("Number of connections: " + numConnections); log.info("Numbe of concurrent sessions: " + numSessions); log.info("Transacted?: " + transacted); log.info("Transaction size: " + transactionSize); log.info("Num messages:" + numMessages); | log.trace("Number of connections: " + numConnections); log.trace("Numbe of concurrent sessions: " + numSessions); log.trace("Transacted?: " + transacted); log.trace("Transaction size: " + transactionSize); log.trace("Num messages:" + numMessages); | protected void logInfo() { super.logInfo(); log.info("Number of connections: " + numConnections); log.info("Numbe of concurrent sessions: " + numSessions); log.info("Transacted?: " + transacted); log.info("Transaction size: " + transactionSize); log.info("Num messages:" + numMes... |
log.info("==============Running job:"); | log.info("==============Running job:" + this); | public void run() { try { startTime = System.currentTimeMillis(); log.info("==============Running job:"); setup(); logInfo(); runTest(); tearDown(); log.info("================Finished running job"); } catch (Exception e) ... |
if (testTime == 0) { failed = true; log.error("!!!!!!!!!!!!!! testTime is zero"); } | protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi... | |
if (selectionStart > getSelectionEnd()) | if (selectionStart > selectionEnd) | select(int selectionStart, int selectionEnd){ if (selectionStart < 0) selectionStart = 0; if (selectionStart > getText().length()) selectionStart = text.length(); if (selectionEnd > text.length()) selectionEnd = text.length(); if (selectionStart > getSelectionEnd()) selectionStart = selectionEnd; this.sele... |
(MBeanConfigurationElement)pdd.query("service", "QueuePostOffice").iterator().next(); | (MBeanConfigurationElement)pdd.query("service", "PostOffice").iterator().next(); | public Properties getClusteredPostOfficeSQLProperties() throws Exception { String databaseType = getDatabaseType(); String persistenceConfigFile; if (databaseType.equals("hsqldb")) { persistenceConfigFile = "server/default/deploy/" + databaseType + "-persistence-service.xml";... |
(MBeanConfigurationElement)pdd.query("service", "QueuePostOffice").iterator().next(); | (MBeanConfigurationElement)pdd.query("service", "PostOffice").iterator().next(); | public Properties getPostOfficeSQLProperties() throws Exception { String databaseType = getDatabaseType(); String persistenceConfigFile = "server/default/deploy/" + databaseType + "-persistence-service.xml"; log.info("********* Using config file: " + persistenceConfigFile); URL persiste... |
if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } | if (trace) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } | public void afterCommit() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } boolean first = messageRefs.addLa... |
if (log.isTraceEnabled()) { log.trace(this + " releasing reference for " + ref + " after rollback"); } | if (trace) { log.trace(this + " releasing reference for " + ref + " after rollback"); } | public void afterRollback() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + " releasing reference for " + ref + " after rollback"); } ref.release(); } ... |
if (log.isTraceEnabled()) { log.trace(this + " removing " + d + " after commit"); } | if (trace) { log.trace(this + " removing " + d + " after commit"); } | public void afterCommit() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " removing " + d + " after commit"); } deliveries.remove(d); d.getReference().release(); ... |
if (log.isTraceEnabled()) { log.trace(this + " releasing reference for " + d.getReference()); } | if (trace) { log.trace(this + " releasing reference for " + d.getReference()); } | public void afterCommit() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " removing " + d + " after commit"); } deliveries.remove(d); d.getReference().release(); ... |
if (log.isTraceEnabled()) { log.trace(this + " added " + d + " to memory on transaction " + tx); } | if (trace) { log.trace(this + " added " + d + " to memory on transaction " + tx); } | public void acknowledge(Delivery d, Transaction tx) throws Throwable { // Transactional so add a post commit callback to remove after tx commit RemoveDeliveryCallback callback = addRemoveDeliveryCallback(tx); callback.addDelivery(d); if (log.isTraceEnabled()) { log.trace(this + " ad... |
if (log.isTraceEnabled()) { log.trace(this + " added " + d + " to memory"); } | if (trace) { log.trace(this + " added " + d + " to memory"); } | public void addDelivery(Delivery d) throws Throwable { deliveries.add(d); if (log.isTraceEnabled()) { log.trace(this + " added " + d + " to memory"); } } |
if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } | if (trace) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } | public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since... |
if (log.isTraceEnabled()) { log.trace(this + " cannot handle reliable messages, dooming the transaction"); } | if (trace) { log.trace(this + " cannot handle reliable messages, dooming the transaction"); } | public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.