bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
void cancel(String messageID, String consumerID) throws JMSException { ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(consumerID); if (consumer == null) { throw new IllegalStateException("Cannot find consumer:" + consumerID); } consumer.cancelMessage(messag...
void cancel(String messageID, int consumerID) throws JMSException { ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(consumerID); if (consumer == null) { throw new IllegalStateException("Cannot find consumer:" + consumerID); } consumer.cancelMessage(messageID...
56,513
void cancel(String messageID, String consumerID) throws JMSException { ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(consumerID); if (consumer == null) { throw new IllegalStateException("Cannot find consumer:" + consumerID); } consumer.cancelMessage(messag...
void cancel(String messageID, String consumerID) throws JMSException { ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(Integer.valueOf(consumerID)); if (consumer == null) { throw new IllegalStateException("Cannot find consumer:" + consumerID); } consumer.can...
56,514
private void cancelDeliveriesForTransaction(TxState txState) throws JMSException { if (log.isTraceEnabled()) { log.trace("Cancelling deliveries for transaction"); } //On a rollback of a transaction (1PC) we cancel deliveries of any messages //delivered in the tx //Need to cancel in ...
private void cancelDeliveriesForTransaction(TxState txState) throws JMSException { if (trace) { log.trace("Cancelling deliveries for transaction"); } //On a rollback of a transaction (1PC) we cancel deliveries of any messages //delivered in the tx //Need to cancel in reverse order i...
56,515
public void close() throws JMSException { try { closeLock.writeLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (log.isTraceEnabled()) { log.trace("close()"); } if (closed) { log.warn("Connec...
public void close() throws JMSException { try { closeLock.writeLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (trace) { log.trace("close()"); } if (closed) { log.warn("Connection is already...
56,516
public void close() throws JMSException { try { closeLock.writeLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (log.isTraceEnabled()) { log.trace("close()"); } if (closed) { log.warn("Connec...
public void close() throws JMSException { try { closeLock.writeLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (log.isTraceEnabled()) { log.trace("close()"); } if (closed) { log.warn("Connec...
56,517
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedExcep...
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedExcep...
56,518
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedExcep...
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedExcep...
56,519
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedExcep...
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedExcep...
56,520
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedExcep...
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedExcep...
56,521
public String getConnectionID() { return connectionID; }
public int getConnectionID() { return connectionID; }
56,522
public ServerSessionEndpoint getSessionDelegate(String sessionID) { return (ServerSessionEndpoint)sessions.get(sessionID); }
public ServerSessionEndpoint getSessionDelegate(int sessionID) { return (ServerSessionEndpoint)sessions.get(sessionID); }
56,523
public ServerSessionEndpoint getSessionDelegate(String sessionID) { return (ServerSessionEndpoint)sessions.get(sessionID); }
public ServerSessionEndpoint getSessionDelegate(String sessionID) { return (ServerSessionEndpoint)sessions.get(Integer.valueOf(sessionID)); }
56,524
private void processCommit(TxState txState, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("processing commit, there are " + txState.getMessages().size() + " messages and " + txState.getAcks().size() + " acks "); } for(Iterator i = txState.getMessages().iterator(); i.ha...
private void processCommit(TxState txState, Transaction tx) throws JMSException { if (trace) { log.trace("processing commit, there are " + txState.getMessages().size() + " messages and " + txState.getAcks().size() + " acks "); } for(Iterator i = txState.getMessages().iterator(); i.hasNext(); ) ...
56,525
private void processCommit(TxState txState, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("processing commit, there are " + txState.getMessages().size() + " messages and " + txState.getAcks().size() + " acks "); } for(Iterator i = txState.getMessages().iterator(); i.ha...
private void processCommit(TxState txState, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("processing commit, there are " + txState.getMessages().size() + " messages and " + txState.getAcks().size() + " acks "); } for(Iterator i = txState.getMessages().iterator(); i.ha...
56,526
private void processCommit(TxState txState, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("processing commit, there are " + txState.getMessages().size() + " messages and " + txState.getAcks().size() + " acks "); } for(Iterator i = txState.getMessages().iterator(); i.ha...
private void processCommit(TxState txState, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("processing commit, there are " + txState.getMessages().size() + " messages and " + txState.getAcks().size() + " acks "); } for(Iterator i = txState.getMessages().iterator(); i.ha...
56,527
private void processCommit(TxState txState, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("processing commit, there are " + txState.getMessages().size() + " messages and " + txState.getAcks().size() + " acks "); } for(Iterator i = txState.getMessages().iterator(); i.ha...
private void processCommit(TxState txState, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("processing commit, there are " + txState.getMessages().size() + " messages and " + txState.getAcks().size() + " acks "); } for(Iterator i = txState.getMessages().iterator(); i.ha...
56,528
private void processCommit(TxState txState, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("processing commit, there are " + txState.getMessages().size() + " messages and " + txState.getAcks().size() + " acks "); } for(Iterator i = txState.getMessages().iterator(); i.ha...
private void processCommit(TxState txState, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("processing commit, there are " + txState.getMessages().size() + " messages and " + txState.getAcks().size() + " acks "); } for(Iterator i = txState.getMessages().iterator(); i.ha...
56,529
public ServerSessionEndpoint putSessionDelegate(String sessionID, ServerSessionEndpoint d) { return (ServerSessionEndpoint)sessions.put(sessionID, d); }
public ServerSessionEndpoint putSessionDelegate(int sessionID, ServerSessionEndpoint d) { return (ServerSessionEndpoint)sessions.put(sessionID, d); }
56,530
public ServerSessionEndpoint putSessionDelegate(String sessionID, ServerSessionEndpoint d) { return (ServerSessionEndpoint)sessions.put(sessionID, d); }
public ServerSessionEndpoint putSessionDelegate(String sessionID, ServerSessionEndpoint d) { return (ServerSessionEndpoint)sessions.put(Integer.valueOf(sessionID), d); }
56,531
void sendMessage(Message m, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("sending " + m + (tx == null ? " non-transactionally" : " transactionally on " + tx)); } //The JMSDestination header must already have been set for each message JBossDestination jmsDestination = (...
void sendMessage(Message m, Transaction tx) throws JMSException { if (trace) { log.trace("sending " + m + (tx == null ? " non-transactionally" : " transactionally on " + tx)); } //The JMSDestination header must already have been set for each message JBossDestination jmsDestination = (JBossDestinatio...
56,532
void sendMessage(Message m, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("sending " + m + (tx == null ? " non-transactionally" : " transactionally on " + tx)); } //The JMSDestination header must already have been set for each message JBossDestination jmsDestination = (...
void sendMessage(Message m, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("sending " + m + (tx == null ? " non-transactionally" : " transactionally on " + tx)); } //The JMSDestination header must already have been set for each message JBossDestination jmsDestination = (...
56,533
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
56,534
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
56,535
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
56,536
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
56,537
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
56,538
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
56,539
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
56,540
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
56,541
public void setClientID(String clientID) throws IllegalStateException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is closed");...
public void setClientID(String clientID) throws IllegalStateException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is closed");...
56,542
public synchronized void stop() throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is closed"); } ...
public synchronized void stop() throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is closed"); } ...
56,543
public String toString() { return "ConnectionEndpoint[" + Util.guidToString(connectionID) + "]"; }
public String toString() { return "ConnectionEndpoint[" + connectionID + "]"; }
56,544
public void close() throws JMSException { try { closeLock.writeLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (trace) { log.trace("close()"); } if (closed) { log.warn("Connection is already...
public void close() throws JMSException { try { closeLock.writeLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (trace) { log.trace("close()"); } if (closed) { log.warn("Connection is already...
56,545
protected String paramString() { return super.paramString(); }
protected String paramString() { return super.paramString() + ",title=" + getTitle(); }
56,546
public void setLayer(Component c, int layer, int position) { Integer layerObj = getObjectForLayer(layer); if (c instanceof JComponent) { JComponent jc = (JComponent) c; jc.putClientProperty(LAYER_PROPERTY, layerObj); } else componentToLayer.put (c, layerObj); // Set position ...
public void setLayer(Component c, int layer) { Integer layerObj = getObjectForLayer(layer); if (c instanceof JComponent) { JComponent jc = (JComponent) c; jc.putClientProperty(LAYER_PROPERTY, layerObj); } else componentToLayer.put (c, layerObj); // Set position only of compon...
56,547
public void setLayer(Component c, int layer, int position) { Integer layerObj = getObjectForLayer(layer); if (c instanceof JComponent) { JComponent jc = (JComponent) c; jc.putClientProperty(LAYER_PROPERTY, layerObj); } else componentToLayer.put (c, layerObj); // Set position ...
public void setLayer(Component c, int layer, int position) { Integer layerObj = getObjectForLayer(layer); if (c instanceof JComponent) { JComponent jc = (JComponent) c; jc.putClientProperty(LAYER_PROPERTY, layerObj); } else componentToLayer.put (c, layerObj); // Set position ...
56,548
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); if (_setid == null) { throw new BuildException("setid is required in ivy cachefileset"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); ...
public void execute() throws BuildException { if (_setid == null) { throw new BuildException("setid is required in ivy cachefileset"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); if (_conf.equals("*")) { ...
56,549
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); if (_setid == null) { throw new BuildException("setid is required in ivy cachefileset"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); ...
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); if (_setid == null) { throw new BuildException("setid is required in ivy cachefileset"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); ...
56,550
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); if (_setid == null) { throw new BuildException("setid is required in ivy cachefileset"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); ...
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); if (_setid == null) { throw new BuildException("setid is required in ivy cachefileset"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); ...
56,551
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); if (_setid == null) { throw new BuildException("setid is required in ivy cachefileset"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); ...
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); if (_setid == null) { throw new BuildException("setid is required in ivy cachefileset"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); ...
56,552
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); if (_setid == null) { throw new BuildException("setid is required in ivy cachefileset"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); ...
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); if (_setid == null) { throw new BuildException("setid is required in ivy cachefileset"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); ...
56,553
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); if (_setid == null) { throw new BuildException("setid is required in ivy cachefileset"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); ...
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); if (_setid == null) { throw new BuildException("setid is required in ivy cachefileset"); } ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); ...
56,554
public void run() { try { if (log.isTraceEnabled()) { log.trace("handing the message " + this.getCallbackObject() + " over to the remoting layer"); } callbackHandler.handleCallback(this); //log.info("Handled callback"); } catch(Throwable t) { log.warn("Faile...
publicvoidrun(){try{if(log.isTraceEnabled()){log.trace("handingthemessage"+this.getCallbackObject()+"overtotheremotinglayer");}callbackHandler.handleCallback(this);//log.info("Handledcallback");}catch(Throwablet){log.warn("Failedtodeliverthemessagetotheclient,perhapstheclientconsumerhasclosed",t);}}
56,555
private void addMapping( String publicID, String URL ) { entities.put( publicID, URL ); }
private void addMapping( String publicID, String URL ) { entities.put( publicID, URL ); }
56,556
public InputSource resolveEntity( String publicID, String systemID ) throws SAXException { InputSource local = null; String url = (String)entities.get( publicID ); if ( url != null ) { InputStream is = GeneralUtil.openStreamFromClasspath( t...
public InputSource resolveEntity( String publicID, String systemID ) throws SAXException { InputSource local = null; String url = (String)entities.get( publicID ); if ( url != null ) { InputStream is = GeneralUtil.openStreamFromClasspath( t...
56,557
public InputSource resolveEntity( String publicID, String systemID ) throws SAXException { InputSource local = null; String url = (String)entities.get( publicID ); if ( url != null ) { InputStream is = GeneralUtil.openStreamFromClasspath( t...
public InputSource resolveEntity( String publicID, String systemID ) throws SAXException { InputSource local = null; String url = (String)entities.get( publicID ); if ( url != null ) { InputStream is = GeneralUtil.openStreamFromClasspath( t...
56,558
public InputSource resolveEntity( String publicID, String systemID ) throws SAXException { InputSource local = null; String url = (String)entities.get( publicID ); if ( url != null ) { InputStream is = GeneralUtil.openStreamFromClasspath( t...
public InputSource resolveEntity( String publicID, String systemID ) throws SAXException { InputSource local = null; String url = (String)entities.get( publicID ); if ( url != null ) { InputStream is = GeneralUtil.openStreamFromClasspath( t...
56,559
public InputSource resolveEntity( String publicID, String systemID ) throws SAXException { InputSource local = null; String url = (String)entities.get( publicID ); if ( url != null ) { InputStream is = GeneralUtil.openStreamFromClasspath( t...
public InputSource resolveEntity( String publicID, String systemID ) throws SAXException { InputSource local = null; String url = (String)entities.get( publicID ); if ( url != null ) { InputStream is = GeneralUtil.openStreamFromClasspath( t...
56,560
public InputSource resolveEntity( String publicID, String systemID ) throws SAXException { InputSource local = null; String url = (String)entities.get( publicID ); if ( url != null ) { InputStream is = GeneralUtil.openStreamFromClasspath( t...
public InputSource resolveEntity( String publicID, String systemID ) throws SAXException { InputSource local = null; String url = (String)entities.get( publicID ); if ( url != null ) { InputStream is = GeneralUtil.openStreamFromClasspath( t...
56,561
public void testSave() throws Exception { URL url = getClass().getClassLoader().getResource("/samples/saved.xml"); WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(url.toString()); StringWriter out = new StringWriter(); PrintWriter writer = new PrintWriter(out); writ...
public void testSave() throws Exception { URL url = getClass().getResource("/samples/saved.xml"); WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(url.toString()); StringWriter out = new StringWriter(); PrintWriter writer = new PrintWriter(out); writer.println("<?xml...
56,562
public void testSave() throws Exception { URL url = getClass().getClassLoader().getResource("/samples/saved.xml"); WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(url.toString()); StringWriter out = new StringWriter(); PrintWriter writer = new PrintWriter(out); writ...
public void testSave() throws Exception { URL url = getClass().getClassLoader().getResource("/samples/saved.xml"); WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(url.toString()); StringWriter out = new StringWriter(); PrintWriter writer = new PrintWriter(out); writ...
56,563
protected void setUp() throws Exception { TestWorkflow.configFile = "osworkflow.xml"; workflow = new TestWorkflow("testuser"); }
protected void setUp() throws Exception { TestWorkflow.configFile = "/osworkflow.xml"; workflow = new TestWorkflow("testuser"); }
56,564
public void testConditionCheck() throws Exception { long id = workflow.initialize("file:auto4.xml", 1, new HashMap()); List currentSteps = workflow.getCurrentSteps(id); assertEquals("Unexpected number of current steps", 1, currentSteps.size()); assertEquals("Unexpected current step", 3, ((Step)currentSt...
public void testConditionCheck() throws Exception { long id = workflow.initialize(getClass().getClassLoader().getResource("/auto4.xml").toString(), 1, new HashMap()); List currentSteps = workflow.getCurrentSteps(id); assertEquals("Unexpected number of current steps", 1, currentSteps.size()); assertEqual...
56,565
public void testExecOnlyOne() throws Exception { long id = workflow.initialize("file:auto2.xml", 1, new HashMap()); List currentSteps = workflow.getCurrentSteps(id); assertEquals("Unexpected number of current steps", 1, currentSteps.size()); assertEquals("Unexpected current step", 4, ((Step)currentSteps.get...
public void testExecOnlyOne() throws Exception { long id = workflow.initialize(getClass().getClassLoader().getResource("/auto2.xml").toString(), 1, new HashMap()); List currentSteps = workflow.getCurrentSteps(id); assertEquals("Unexpected number of current steps", 1, currentSteps.size()); assertEquals("Unex...
56,566
public void testExecTwoActions() throws Exception { long id = workflow.initialize("file:auto3.xml", 1, new HashMap()); List currentSteps = workflow.getCurrentSteps(id); assertEquals("Unexpected number of current steps", 1, currentSteps.size()); assertEquals("Unexpected current step", 3, ((Step)currentSteps....
public void testExecTwoActions() throws Exception { long id = workflow.initialize(getClass().getClassLoader().getResource("/auto3.xml").toString(), 1, new HashMap()); List currentSteps = workflow.getCurrentSteps(id); assertEquals("Unexpected number of current steps", 1, currentSteps.size()); assertEquals("U...
56,567
public void testPropertySetCreated() throws Exception { Map inputs = new HashMap(); List list = new ArrayList(); inputs.put("list", list); long id = workflow.initialize("file:propertyset-create.xml", 1, inputs); String value = (String)list.get(0); assertEquals("Unexpected property set value for key ...
public void testPropertySetCreated() throws Exception { Map inputs = new HashMap(); List list = new ArrayList(); inputs.put("list", list); long id = workflow.initialize(getClass().getClassLoader().getResource("/propertyset-create.xml").toString(), 1, inputs); String value = (String)list.get(0); asse...
56,568
public void testSimpleAuto() throws Exception { long id = workflow.initialize("file:auto1.xml", 1, new HashMap()); List currentSteps = workflow.getCurrentSteps(id); assertEquals("Unexpected number of current steps", 1, currentSteps.size()); assertEquals("Unexpected current step", 2, ((Step)current...
public void testSimpleAuto() throws Exception { long id = workflow.initialize(getClass().getClassLoader().getResource("/auto1.xml").toString(), 1, new HashMap()); List currentSteps = workflow.getCurrentSteps(id); assertEquals("Unexpected number of current steps", 1, currentSteps.size()); assertEqu...
56,569
public void calculateBoxes( int avail_width, TableBox box, Context c, Table table ) { u.p("TableLayout2.calculateBoxes(" + avail_width + " , " + box + " , " + c + " , " + table); box.width = avail_width; box.height = 100; box.x = 5; box.y = 5; // create a dummy ...
public void calculateBoxes( int avail_width, TableBox box, Context c, Table table ) { u.p("TableLayout2.calculateBoxes(" + avail_width + " , " + box + " , " + c + " , " + table); box.width = avail_width; box.height = 100; box.x = 5; box.y = 5; // create a dummy ...
56,570
private void startRemoting(boolean multiplex) throws Exception { RemotingJMXWrapper mbean; String locatorURI; if (multiplex) { locatorURI = "multiplex://" + ipAddressOrHostName + ":9111"; } else { locatorURI = "socket://" + ipAddressOrHostN...
private void startRemoting(boolean multiplex) throws Exception { RemotingJMXWrapper mbean; String locatorURI; if (multiplex) { locatorURI = "multiplex://" + ipAddressOrHostName + ":9111"; } else { locatorURI = "socket://" + ipAddressOrHostN...
56,571
private void startRemoting(boolean multiplex) throws Exception { RemotingJMXWrapper mbean; String locatorURI; if (multiplex) { locatorURI = "multiplex://" + ipAddressOrHostName + ":9111"; } else { locatorURI = "socket://" + ipAddressOrHostN...
private void startRemoting(boolean multiplex) throws Exception { RemotingJMXWrapper mbean; String locatorURI; if (multiplex) { locatorURI = "multiplex://" + ipAddressOrHostName + ":9111"; } else { locatorURI = "socket://" + ipAddressOrHostN...
56,572
protected void cancelDelivery(Long messageID) throws Throwable { Delivery del = (Delivery)deliveries.remove(messageID); if (del != null) { del.getReference().decrementDeliveryCount(); del.cancel(); } else { throw new IllegalStateException("Cannot find ...
protected void cancelDelivery(Long messageID) throws Throwable { Delivery del = (Delivery)deliveries.remove(messageID); if (del != null) { del.getReference().decrementDeliveryCount(); del.cancel(); } else { throw new IllegalStateException("Cannot find ...
56,573
public synchronized void startService() throws Exception { super.startService(); try { postOffice = serverPeer.getQueuePostOfficeInstance(); destination.setPostOffice(postOffice); //Binding must be added before destination is register...
public synchronized void startService() throws Exception { super.startService(); try { postOffice = serverPeer.getQueuePostOfficeInstance(); destination.setPostOffice(postOffice); //Binding must be added before destination is register...
56,574
public ServerSessionDelegate(String sessionID, ServerConnectionDelegate connectionEndpoint, int acknowledgmentMode) { this.sessionID = sessionID; this.acknowledgmentMode = acknowledgmentMode; this.connectionEndpoint = connectionEndpoint; producers = new HashMap(); consumers = ...
public ServerSessionDelegate(String sessionID, ServerConnectionDelegate connectionEndpoint, int acknowledgmentMode) { this.sessionID = sessionID; this.acknowledgmentMode = acknowledgmentMode; this.connectionEndpoint = connectionEndpoint; producers = new HashMap(); consumers = ...
56,575
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { // look-...
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { // look-...
56,576
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { // look-...
public boolean selectorChanged = (selector == null && subscription.getSelector() != null) || (subscription.getSelector() == null && selector != null) || (subscription.getSelector() != null && selector != null && !subscription.getSelector().equals(selector)); if (log.isTraceEnabled()) { log.trace("Selector has changed...
56,577
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { // look-...
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { // look-up destination DestinationManagerImpl dm = serverPeer.getDestinationManager(); AbstractDestination destination = dm.getCoreDestination(jms...
56,578
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { // look-...
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { // look-...
56,579
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { // look-...
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { // look-...
56,580
protected String generateConsumerID() { int id; synchronized(this) { id = consumerIDCounter++; } return "Consumer" + id; }
protected synchronized String generateConsumerID() { int id; synchronized(this) { id = consumerIDCounter++; } return "Consumer" + id; }
56,581
protected String generateConsumerID() { int id; synchronized(this) { id = consumerIDCounter++; } return "Consumer" + id; }
protected String generateConsumerID() { int id; synchronized(this) { id = consumerIDCounter++; } return "Consumer" + id; }
56,582
public Image getImage(String uri) { java.io.InputStream is = null; Image img = null; uri = resolveURI(uri); if (imageCache != null) { SoftReference ref = (SoftReference) imageCache.get(uri); if (ref != null) { img = (Image) ref.get(); } ...
public Image getImage(String uri) { java.io.InputStream is = null; Image img = null; uri = resolveURI(uri); if (imageCache != null) { SoftReference ref = (SoftReference) imageCache.get(uri); if (ref != null) { img = (Image) ref.get(); } ...
56,583
public Image getImage(String uri) { java.io.InputStream is = null; Image img = null; uri = resolveURI(uri); if (imageCache != null) { SoftReference ref = (SoftReference) imageCache.get(uri); if (ref != null) { img = (Image) ref.get(); } ...
public Image getImage(String uri) { java.io.InputStream is = null; Image img = null; uri = resolveURI(uri); if (imageCache != null) { SoftReference ref = (SoftReference) imageCache.get(uri); if (ref != null) { img = (Image) ref.get(); } ...
56,584
public float getPreferredSpan(int axis) { // TODO: Implement me. return 0F; }
public float getPreferredSpan(int axis) { // TODO: Implement me. Icon icon = StyleConstants.getIcon(getElement().getAttributes()); float span; if (axis == X_AXIS) span = icon.getIconWidth(); else if (axis == Y_AXIS) span = icon.getIconHeight(); else throw new IllegalArgumentException(); return span; }
56,585
public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException { // Implement me. return null; }
public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException { // Implement me. Element el = getElement(); if (pos < el.getStartOffset() || pos >= el.getEndOffset()) throw new BadLocationException("Illegal offset for this view", pos); Rectangle r = a.getBounds(); Icon icon = StyleC...
56,586
public void paint(Graphics g, Shape a) { // TODO: Implement me. }
Icon icon = StyleConstants.getIcon(getElement().getAttributes()); Rectangle b = a.getBounds(); icon.paintIcon(getContainer(), g, b.x, b.y); Icon icon = StyleConstants.getIcon(getElement().getAttributes()); Rectangle b = a.getBounds(); icon.paintIcon(getContainer(), g, b.x, b.y); publicIcon icon = StyleConstants.getIcon...
56,587
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { // FIXME: not implemented return 0; }
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { // FIXME: not implemented Element el = getElement(); return el.getStartOffset(); }
56,588
public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all"); sc.start(); }
public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all"); sc.start(); }
56,589
public void tearDown() throws Exception { sc.stop(); sc = null; super.tearDown(); }
public void tearDown() throws Exception { sc.stop(); sc = null; super.tearDown(); }
56,590
public void probeDevices(SMBus bus) { // this controler is a SMBus version 1.0, so there are no dynamic discovery. // use well known addresses and probe each address //byte res = 0; // probes for the DIM for (byte i = 0; i < 8; i++) { try { //res = readByte((byte) (0xa0 | (i << 1)), (byte) 2); //log.debug...
publicbyte res = 0; voidbyte res = 0; probeDevices(SMBusbyte res = 0; bus)byte res = 0; { //byte res = 0; thisbyte res = 0; controlerbyte res = 0; isbyte res = 0; abyte res = 0; SMBusbyte res = 0; versionbyte res = 0; 1.0,byte res = 0; sobyte res = 0; therebyte res = 0; arebyte res = 0; nobyte res = 0; dynamicbyte re...
56,618
public void probeDevices(SMBus bus) { // this controler is a SMBus version 1.0, so there are no dynamic discovery. // use well known addresses and probe each address //byte res = 0; // probes for the DIM for (byte i = 0; i < 8; i++) { try { //res = readByte((byte) (0xa0 | (i << 1)), (byte) 2); //log.debug...
public void probeDevices(SMBus bus) { // this controler is a SMBus version 1.0, so there are no dynamic discovery. // use well known addresses and probe each address //byte res = 0; // probes for the DIM for (byte i = 0; i < 8; i++) { try { //res = readByte((byte) (0xa0 | (i << 1)), (byte) 2); //log.debug...
56,619
public void probeDevices(SMBus bus) { // this controler is a SMBus version 1.0, so there are no dynamic discovery. // use well known addresses and probe each address //byte res = 0; // probes for the DIM for (byte i = 0; i < 8; i++) { try { //res = readByte((byte) (0xa0 | (i << 1)), (byte) 2); //log.debug...
publiclog.debug("DIMM " + i + " not present" ); voidlog.debug("DIMM " + i + " not present" ); probeDevices(SMBuslog.debug("DIMM " + i + " not present" ); bus)log.debug("DIMM " + i + " not present" ); { //log.debug("DIMM " + i + " not present" ); thislog.debug("DIMM " + i + " not present" ); controlerlog.debug("DIMM "...
56,620
protected BrowserJob createDefaultBrowserJob(String destName) { return new BrowserJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, 1, 1, numMessages, null); }
protected BrowserJob createDefaultBrowserJob(String destName) { return new BrowserJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, 1, 1, numMessages, System.currentTimeMillis() + 10000, null); }
56,621
protected FillJob createDefaultFillJob(String destName, int numMessages) { return new FillJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, numMessages, standardMessageSize, new BytesMessageMessageFactory(), DeliveryMode.NON_PERSISTENT); }
protected FillJob createDefaultFillJob(String destName, int numMessages) { return new FillJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, numMessages, standardMessageSize, new TextMessageMessageFactory(), DeliveryMode.NON_PERSISTENT); }
56,622
protected ReceiverJob createDefaultReceiverJob(String destName) { return new ReceiverJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, 1, 1, false, 0, numMessages, Session.AUTO_ACKNOWLEDGE, null, null, false, false, null); }
protected ReceiverJob createDefaultReceiverJob(String destName) { return new ReceiverJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, 1, 1, false, 0, numMessages, System.currentTimeMillis() + 10000, Session.AUTO_ACKNOWLEDGE, null, null, false, false, null); }
56,623
protected SenderJob createDefaultSenderJob(String destName) { return new SenderJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, 1, 1, false, 0, numMessages, false, standardMessageSize, new BytesMessageMessageFactory(), DeliveryMode.NON_PERSISTENT, 0); ...
protected SenderJob createDefaultSenderJob(String destName) { return new SenderJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, 1, 1, false, 0, numMessages, System.currentTimeMillis() + 20000, false, standardMessageSize, new BytesMessageMessageFactory(),...
56,624
protected SenderJob createDefaultSenderJob(String destName) { return new SenderJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, 1, 1, false, 0, numMessages, false, standardMessageSize, new BytesMessageMessageFactory(), DeliveryMode.NON_PERSISTENT, 0); ...
protected SenderJob createDefaultSenderJob(String destName) { return new SenderJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, 1, 1, false, 0, numMessages, false, standardMessageSize, new TextMessageMessageFactory(), DeliveryMode.NON_PERSISTENT, 0); ...
56,625
protected Properties loadProps(String filename) throws Exception { FileInputStream fis = null; try { fis = new FileInputStream(filename); Properties props = new Properties(); props.load(fis); return props; } finally { if (fis != null) f...
protected Properties loadProps(String filename) throws Exception { InputStream is = null; try { fis = new FileInputStream(filename); Properties props = new Properties(); props.load(fis); return props; } finally { if (fis != null) fis.cl...
56,626
protected Properties loadProps(String filename) throws Exception { FileInputStream fis = null; try { fis = new FileInputStream(filename); Properties props = new Properties(); props.load(fis); return props; } finally { if (fis != null) f...
protected Properties loadProps(String filename) throws Exception { FileInputStream fis = null; try { URL url = this.getClass().getClassLoader().getResource(filename); is = url.openStream(); Properties props = new Properties(); props.load(fis); return props; ...
56,627
protected Properties loadProps(String filename) throws Exception { FileInputStream fis = null; try { fis = new FileInputStream(filename); Properties props = new Properties(); props.load(fis); return props; } finally { if (fis != null) f...
protected Properties loadProps(String filename) throws Exception { FileInputStream fis = null; try { fis = new FileInputStream(filename); Properties props = new Properties(); props.load(is); return props; } finally { if (fis != null) fi...
56,628
protected Properties loadProps(String filename) throws Exception { FileInputStream fis = null; try { fis = new FileInputStream(filename); Properties props = new Properties(); props.load(fis); return props; } finally { if (fis != null) f...
protected Properties loadProps(String filename) throws Exception { FileInputStream fis = null; try { fis = new FileInputStream(filename); Properties props = new Properties(); props.load(fis); return props; } finally { if (is != null) is...
56,629
public void run() { setUp(); //Only need to do once - junit does for every test testQueue1(); testQueue2(); testQueue3(); testQueue4(); testQueue5(); testQueue6(); testQueue7(); testQueue8(); testQueue9(); testQueue10(); testQueue11(); testQueu...
public void run() { setUp(); //Only need to do once - junit does for every test testQueue1(); testQueue2(); testQueue3(); testQueue4(); testQueue5(); testQueue6(); testQueue7(); testQueue8(); testQueue9(); testQueue10(); testQueue11(); testQueu...
56,630
public void run() { setUp(); //Only need to do once - junit does for every test testQueue1(); testQueue2(); testQueue3(); testQueue4(); testQueue5(); testQueue6(); testQueue7(); testQueue8(); testQueue9(); testQueue10(); testQueue11(); testQueu...
public void run() { setUp(); //Only need to do once - junit does for every test testQueue1(); testQueue2(); testQueue3(); testQueue4(); testQueue5(); testQueue6(); testQueue7(); testQueue8(); testQueue9(); testQueue10(); testQueue11(); testQueu...
56,631
public void run() { setUp(); //Only need to do once - junit does for every test testQueue1(); testQueue2(); testQueue3(); testQueue4(); testQueue5(); testQueue6(); testQueue7(); testQueue8(); testQueue9(); testQueue10(); testQueue11(); testQueu...
public void run() { setUp(); //Only need to do once - junit does for every test testQueue1(); testQueue2(); testQueue3(); testQueue4(); testQueue5(); testQueue6(); testQueue7(); testQueue8(); testQueue9(); testQueue10(); testQueue11(); testQueu...
56,632
protected JobResult runJob(Job job) { return sendRequestToSlave(job.getSlaveURL(), new RunRequest(job)); }
protected JobResult runJob(Job job) { if (local) { job.run(); return job.getResult(); } else { return sendRequestToSlave(job.getSlaveURL(), new RunRequest(job)); } }
56,633
protected JobResult[] runJobs(Job[] jobs) { JobRunner[] runners = new JobRunner[jobs.length]; for (int i = 0; i < jobs.length; i++) { runners[i] = new JobRunner(jobs[i]); Thread t = new Thread(runners[i]); runners[i].thread = t; t.start(); } for ...
protected JobResult[] runJobs(Job[] jobs) { JobRunner[] runners = new JobRunner[jobs.length]; for (int i = 0; i < jobs.length; i++) { runners[i] = new JobRunner(jobs[i]); Thread t = new Thread(runners[i]); runners[i].thread = t; t.start(); } for ...
56,634
protected void runMessageTypeJob(Execution execution, MessageFactory mf, String messageType, int type) { SenderJob sender = createDefaultSenderJob(queueName); sender.setNumMessages(numMessages); sender.setMsgSize(4096); sender.setMf(mf); sender.setTransacted(false); sender.setDe...
protected void runMessageTypeJob(Execution execution, MessageFactory mf, String messageType, int type) { SenderJob sender = createDefaultSenderJob(queueName); sender.setNumMessages(numMessages); sender.setMsgSize(4096); sender.setMf(mf); sender.setTransacted(false); sender.setDe...
56,635
public void setUp() { try { log.trace("Setting up PerfRunner"); String jndiPropertiesFileName = System.getProperty("perf.jndiProperties", "jndi.properties"); this.jndiProperties = loadProps(jndiPropertiesFileName); String perfPropertiesFile...
public void setUp() { try { log.trace("Setting up PerfRunner"); String jndiPropertiesFileName; this.jndiProperties = loadProps(jndiPropertiesFileName); String perfPropertiesFileName = System.getProperty("perf.properties", "perf.properties")...
56,636
public void setUp() { try { log.trace("Setting up PerfRunner"); String jndiPropertiesFileName = System.getProperty("perf.jndiProperties", "jndi.properties"); this.jndiProperties = loadProps(jndiPropertiesFileName); String perfPropertiesFile...
public void setUp() { try { log.trace("Setting up PerfRunner"); String jndiPropertiesFileName = System.getProperty("perf.jndiProperties", "jndi.properties"); this.jndiProperties = loadProps(jndiPropertiesFileName); Propertie...
56,637
public void setUp() { try { log.trace("Setting up PerfRunner"); String jndiPropertiesFileName = System.getProperty("perf.jndiProperties", "jndi.properties"); this.jndiProperties = loadProps(jndiPropertiesFileName); String perfPropertiesFile...
public void setUp() { try { log.trace("Setting up PerfRunner"); String jndiPropertiesFileName = System.getProperty("perf.jndiProperties", "jndi.properties"); this.jndiProperties = loadProps(jndiPropertiesFileName); String perfPropertiesFile...
56,638
public void testMessageSizeThroughput() { log.info("Running test testMessageSizeThroughput"); Execution execution = createExecution("MessageSizeThroughput"); int[] msgsSize = new int[] {0, 8192, 16384, 32768, 65536}; for (int i = 0; i < msgsSize.length; i++) { ...
public void testMessageSizeThroughput() { log.info("Running test testMessageSizeThroughput"); Execution execution = createExecution("MessageSizeThroughput"); int[] msgsSize = new int[] {0, 8192, 16384, 32768, 65536}; for (int i = 0; i < msgsSize.length; i++) { ...
56,640