bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public HTMLTest( String[] args ) throws Exception { super( BASE_TITLE ); panel = new XHTMLPanel(); panel.setPreferredSize( new Dimension( text_width, text_width ) ); JScrollPane scroll = new JScrollPane( panel ); scroll.setVerticalScrollBarPolicy( scroll.VERTICAL_SCROLLBAR_...
public HTMLTest( String[] args ) throws Exception { super( BASE_TITLE ); panel = new XHTMLPanel(); panel.setPreferredSize( new Dimension( text_width, text_width ) ); JScrollPane scroll = new JScrollPane( panel ); scroll.setVerticalScrollBarPolicy( scroll.VERTICAL_SCROLLBAR_...
28,704
public static void main( String[] args ) throws Exception { final JFrame frame = new HTMLTest( args ); frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); frame.pack(); frame.setSize( text_width, 300 ); frame.show(); }
public static void main( String[] args ) throws Exception { final JFrame frame = new HTMLTest( args ); frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); frame.pack(); frame.show(); }
28,707
public void setUp() throws Exception { super.setUp(); ms = new PagingMessageStore("shared-in-memory-store"); jchannel = new JChannel(JGroupsUtil.generateProperties(50, 1)); jchannel2 = new JChannel(JGroupsUtil.generateProperties(900000, 1)); jchannel3 = new JChannel(JGroupsUtil.generatePro...
public void setUp() throws Exception { super.setUp(); ms = new SimpleMessageStore("shared-in-memory-store"); jchannel = new JChannel(JGroupsUtil.generateProperties(50, 1)); jchannel2 = new JChannel(JGroupsUtil.generateProperties(900000, 1)); jchannel3 = new JChannel(JGroupsUtil.generatePro...
28,708
public RpcServer(String name) { this.name = name; servers = new HashMap(); }
public RpcServer() { this.name = name; servers = new HashMap(); }
28,709
public RpcServer(String name) { this.name = name; servers = new HashMap(); }
public RpcServer(String name) { this.name = name; servers = new HashMap(); }
28,710
public void load() throws Exception { List refs = pm.messageRefs(storeID, channelID); Set ids = new HashSet(); Iterator iter = refs.iterator(); while (iter.hasNext()) { String messageID = (String)iter.next(); MessageReference ref = messageStore.getRefer...
public void load() throws Exception { List refs = pm.messageRefs(storeID, channelID); Set ids = new HashSet(); Iterator iter = refs.iterator(); while (iter.hasNext()) { String messageID = (String)iter.next(); MessageReference ref = messageStore.referenc...
28,711
public void load() throws Exception { List refs = pm.messageRefs(storeID, channelID); Set ids = new HashSet(); Iterator iter = refs.iterator(); while (iter.hasNext()) { String messageID = (String)iter.next(); MessageReference ref = messageStore.getRefer...
public void load() throws Exception { List refs = pm.messageRefs(storeID, channelID); Set ids = new HashSet(); Iterator iter = refs.iterator(); while (iter.hasNext()) { String messageID = (String)iter.next(); MessageReference ref = messageStore.getRefer...
28,712
public void load() throws Exception { List refs = pm.messageRefs(storeID, channelID); Set ids = new HashSet(); Iterator iter = refs.iterator(); while (iter.hasNext()) { String messageID = (String)iter.next(); MessageReference ref = messageStore.getRefer...
public void load() throws Exception { List refs = pm.messageRefs(storeID, channelID); Set ids = new HashSet(); Iterator iter = refs.iterator(); while (iter.hasNext()) { String messageID = (String)iter.next(); MessageReference ref = messageStore.getRefer...
28,713
public void add(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " non-transactionally" : " in transaction: " + tx)); } if (tx == null) { if (ref.isReliable() && !acceptReliableMessages) { throw ...
public void add(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " non-transactionally" : " in transaction: " + tx)); } if (tx == null) { if (ref.isReliable() && !acceptReliableMessages) { throw ...
28,714
public AbstractButton() { init("", null); updateUI(); }
public AbstractButton() { actionListener = createActionListener(); changeListener = createChangeListener(); itemListener = createItemListener(); horizontalAlignment = CENTER; horizontalTextPosition = TRAILING; verticalAlignment = CENTER; verticalTextPosition = CENTER; borderPainted = true; contentAreaFilled = tr...
28,715
public int getMnemonic() { return getModel().getMnemonic(); }
public int getMnemonic() { ButtonModel mod = getModel(); if (mod != null) return mod.getMnemonic(); return -1; }
28,716
protected void init(String text, Icon icon) { // If text is null, we fall back to the empty // string (which is set using AbstractButton's // constructor). // This way the behavior of the JDK is matched. if(text != null) this.text = text; if (icon != null) default_icon = icon; actionListene...
protected void init(String text, Icon icon) { // If text is null, we fall back to the empty // string (which is set using AbstractButton's // constructor). // This way the behavior of the JDK is matched. if(text != null) this.text = text; if (icon != null) default_icon = icon; actionListene...
28,717
public boolean isSelected() { return getModel().isSelected(); }
public boolean isSelected() { ButtonModel mod = getModel(); if (mod != null) return mod.isSelected(); return false; }
28,718
public void setEnabled(boolean b) { super.setEnabled(b); getModel().setEnabled(b); }
public void setEnabled(boolean b) { super.setEnabled(b); ButtonModel mod = getModel(); if (mod != null) mod.setEnabled(b); }
28,720
public void setSelected(boolean s) { getModel().setSelected(s); }
public void setSelected(boolean s) { ButtonModel mod = getModel(); if (mod != null) mod.setSelected(s); }
28,721
public Node addFirst(Object object) { DequeNode node = new DequeNode(object, null, head); if (head != null) { head.prev = node; } head = node; if (tail == null) { tail = node; } return node; }
public boolean addFirst(Object object) { DequeNode node = new DequeNode(object, null, head); if (head != null) { head.prev = node; } head = node; if (tail == null) { tail = node; } return node; }
28,722
public Node addFirst(Object object) { DequeNode node = new DequeNode(object, null, head); if (head != null) { head.prev = node; } head = node; if (tail == null) { tail = node; } return node; }
public Node addFirst(Object object) { DequeNode node = new DequeNode(object, null, head); if (head != null) { head.prev = node; } head = node; if (tail == null) { tail = node; } return tail == node; }
28,723
public Node addLast(Object object) { DequeNode node = new DequeNode(object, tail, null); if (tail != null) { tail.next = node; } tail = node; if (head == null) { head = node; } return node; }
public boolean addLast(Object object) { DequeNode node = new DequeNode(object, tail, null); if (tail != null) { tail.next = node; } tail = node; if (head == null) { head = node; } return node; }
28,724
public Node addLast(Object object) { DequeNode node = new DequeNode(object, tail, null); if (tail != null) { tail.next = node; } tail = node; if (head == null) { head = node; } return node; }
public Node addLast(Object object) { DequeNode node = new DequeNode(object, tail, null); if (tail != null) { tail.next = node; } tail = node; if (head == null) { head = node; } return head == node; }
28,725
public InMemoryMessageStore(Serializable storeID, boolean acceptReliableMessages) { this.storeID = storeID; this.acceptReliableMessages = acceptReliableMessages; messages = new ConcurrentHashMap(); log.debug(this + " initialized"); }
public InMemoryMessageStore(Serializable storeID) { this.storeID = storeID; this.acceptReliableMessages = acceptReliableMessages; messages = new ConcurrentHashMap(); log.debug(this + " initialized"); }
28,726
public InMemoryMessageStore(Serializable storeID, boolean acceptReliableMessages) { this.storeID = storeID; this.acceptReliableMessages = acceptReliableMessages; messages = new ConcurrentHashMap(); log.debug(this + " initialized"); }
public InMemoryMessageStore(Serializable storeID, boolean acceptReliableMessages) { this.storeID = storeID; this.acceptReliableMessages = acceptReliableMessages; messages = new ConcurrentHashMap(); log.debug(this + " initialized"); }
28,727
public MessageReference reference(Message m) { if (m.isReliable() && !acceptReliableMessages) { throw new IllegalStateException(this + " does not accept reliable messages (" + m + ")"); } if (log.isTraceEnabled()) { log.trace(this + " referencing " + m); } MessageHolder...
public MessageReference reference(Message m) { if (m.isReliable() && !acceptReliableMessages) { throw new IllegalStateException(this + " does not accept reliable messages (" + m + ")"); } if (trace) { log.trace(this + " referencing " + m); } MessageHolder holder = (Mess...
28,728
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { // Sanity check if (!(in instanceof ObjectInputStream)) { log.error("in is a " + in.getClass()); throw new IllegalStateException("InputStream must be an ObjectInputStream"); } ObjectInp...
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { // Sanity check if (!(in instanceof ObjectInputStream)) { log.error("in is a " + in.getClass()); throw new IllegalStateException("InputStream must be an ObjectInputStream"); } ObjectInp...
28,729
public Box layoutChildren(Context c, Box box) { /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.content.getChildContent(c); if (contentList.size() == 0) return box;//we can do this if there is no content, ri...
public Box layoutChildren(Context c, Box box) { /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.content.getChildContent(c); if (contentList.size() == 0) return box;//we can do this if there is no content, ri...
28,731
public static void layoutContent(Context c, Box box, List contentList, BlockBox block) { Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; bounds.width -= box.margin.left + box.border.left + box.padding.left + box.padding.right + box.border.right + box.marg...
public static void layoutContent(Context c, Box box, List contentList, Box block) { Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; bounds.width -= box.margin.left + box.border.left + box.padding.left + box.padding.right + box.border.right + box.margin.ri...
28,732
public static void layoutContent(Context c, Box box, List contentList, BlockBox block) { Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; bounds.width -= box.margin.left + box.border.left + box.padding.left + box.padding.right + box.border.right + box.marg...
public static void layoutContent(Context c, Box box, List contentList, BlockBox block) { Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; bounds.width -= box.margin.left + box.border.left + box.padding.left + box.padding.right + box.border.right + box.marg...
28,733
public static void layoutContent(Context c, Box box, List contentList, BlockBox block) { Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; bounds.width -= box.margin.left + box.border.left + box.padding.left + box.padding.right + box.border.right + box.marg...
public static void layoutContent(Context c, Box box, List contentList, BlockBox block) { Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; bounds.width -= box.margin.left + box.border.left + box.padding.left + box.padding.right + box.border.right + box.marg...
28,734
public static void layoutContent(Context c, Box box, List contentList, BlockBox block) { Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; bounds.width -= box.margin.left + box.border.left + box.padding.left + box.padding.right + box.border.right + box.marg...
public static void layoutContent(Context c, Box box, List contentList, BlockBox block) { Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; bounds.width -= box.margin.left + box.border.left + box.padding.left + box.padding.right + box.border.right + box.marg...
28,735
public ResultPosition(WorkflowGraph graph, ResultEdge edge) { id = edge.getDescriptor().getId(); labelPos = GraphConstants.getLabelPosition(edge.getAttributes()); lineWidth = GraphConstants.getLineWidth(edge.getAttributes()); color = GraphConstants.getForeground(edge.getAttributes()).getRGB(); CustomE...
public ResultPosition(WorkflowGraph graph, ResultEdge edge) { id = edge.getDescriptor().getId(); EdgeView view = (EdgeView)graph.getGraphLayoutCache().getMapping(edge, false); labelPos = view.getLabelPosition(); lineWidth = GraphConstants.getLineWidth(edge.getAttributes()); color = GraphConstants.getFore...
28,736
public ResultPosition(WorkflowGraph graph, ResultEdge edge) { id = edge.getDescriptor().getId(); labelPos = GraphConstants.getLabelPosition(edge.getAttributes()); lineWidth = GraphConstants.getLineWidth(edge.getAttributes()); color = GraphConstants.getForeground(edge.getAttributes()).getRGB(); CustomE...
public ResultPosition(WorkflowGraph graph, ResultEdge edge) { id = edge.getDescriptor().getId(); labelPos = GraphConstants.getLabelPosition(edge.getAttributes()); lineWidth = GraphConstants.getLineWidth(edge.getAttributes()); color = GraphConstants.getForeground(edge.getAttributes()).getRGB(); CustomE...
28,737
public ResultPosition(WorkflowGraph graph, ResultEdge edge) { id = edge.getDescriptor().getId(); labelPos = GraphConstants.getLabelPosition(edge.getAttributes()); lineWidth = GraphConstants.getLineWidth(edge.getAttributes()); color = GraphConstants.getForeground(edge.getAttributes()).getRGB(); CustomE...
public ResultPosition(WorkflowGraph graph, ResultEdge edge) { id = edge.getDescriptor().getId(); labelPos = GraphConstants.getLabelPosition(edge.getAttributes()); lineWidth = GraphConstants.getLineWidth(edge.getAttributes()); color = GraphConstants.getForeground(edge.getAttributes()).getRGB(); CustomE...
28,738
public Point getLabelPosition() { return labelPos; }
public Point2D getLabelPosition() { return labelPos; }
28,739
public void writeXML(PrintWriter writer, int indent) { XMLUtil.printIndent(writer, indent); StringBuffer buf = new StringBuffer(); buf.append("<connector "); buf.append("id=\"").append(id).append('\"'); buf.append(" linewidth=\"").append(lineWidth).append('\"'); buf.append(" color=\"").append(color...
public void writeXML(PrintWriter writer, int indent) { XMLUtil.printIndent(writer, indent); StringBuffer buf = new StringBuffer(); buf.append("<connector "); buf.append("id=\"").append(id).append('\"'); buf.append(" linewidth=\"").append(lineWidth).append('\"'); buf.append(" color=\"").append(color...
28,740
public void testNonRecoverableMessageStore_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non...
public void testNonRecoverableMessageStore_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non...
28,741
public void testNonRecoverableMessageStore_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non...
public void testNonRecoverableMessageStore_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non...
28,742
public void testNonRecoverableMessageStore_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non...
public void testNonRecoverableMessageStore_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non...
28,743
public void testNonRecoverableMessageStore_1_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, n...
public void testNonRecoverableMessageStore_1_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, n...
28,744
public void testNonRecoverableMessageStore_2() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(i...
public void testNonRecoverableMessageStore_2() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(i...
28,745
public void testNonRecoverableMessageStore_2() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(i...
public void testNonRecoverableMessageStore_2() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(i...
28,746
public void testNonRecoverableMessageStore_4() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
public void testNonRecoverableMessageStore_4() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
28,747
public void testNonRecoverableMessageStore_4() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
public void testNonRecoverableMessageStore_4() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
28,748
public void testNonRecoverableMessageStore_5() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
public void testNonRecoverableMessageStore_5() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
28,749
public void testNonRecoverableMessageStore_5() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
public void testNonRecoverableMessageStore_5() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
28,750
public void testNonRecoverableMessageStore_5() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
public void testNonRecoverableMessageStore_5() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
28,751
public void testRecoverableMessageStore_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable ...
public void testRecoverableMessageStore_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable ...
28,752
public void testRecoverableMessageStore_1_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliabl...
public void testRecoverableMessageStore_1_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliabl...
28,753
public void testRecoverableMessageStore_2() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =...
public void testRecoverableMessageStore_2() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =...
28,754
public void testRecoverableMessageStore_2() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =...
public void testRecoverableMessageStore_2() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =...
28,755
public void testRecoverableMessageStore_3() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable m...
public void testRecoverableMessageStore_3() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable m...
28,756
public void testRecoverableMessageStore_3() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable m...
public void testRecoverableMessageStore_3() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable m...
28,757
public void testRecoverableMessageStore_3_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable...
public void testRecoverableMessageStore_3_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable...
28,758
public void testRecoverableMessageStore_4() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =...
public void testRecoverableMessageStore_4() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =...
28,759
public void testRecoverableMessageStore_4() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =...
public void testRecoverableMessageStore_4() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =...
28,760
public void testPersistentSendToTopic() throws Exception { Connection pconn = cf.createConnection(); Connection cconn = cf.createConnection(); try { Session ps = pconn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session cs = cconn.createSession(false, Session.AUTO_ACKNOWLEDG...
public void testPersistentSendToTopic() throws Exception { Connection pconn = cf.createConnection(); Connection cconn = cf.createConnection(); try { Session ps = pconn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session cs = cconn.createSession(false, Session.AUTO_ACKNOWLEDG...
28,763
public void testPersistentSendToTopic() throws Exception { Connection pconn = cf.createConnection(); Connection cconn = cf.createConnection(); try { Session ps = pconn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session cs = cconn.createSession(false, Session.AUTO_ACKNOWLEDG...
public void testPersistentSendToTopic() throws Exception { Connection pconn = cf.createConnection(); Connection cconn = cf.createConnection(); try { Session ps = pconn.createSession(false, Session.AUTO_ACKNOWLEDGE); Session cs = cconn.createSession(false, Session.AUTO_ACKNOWLEDG...
28,764
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); p.send(m1); } catch(Exception e) { log.er...
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(3000); p.send(m1); } catch(Exception e) { log.er...
28,765
public boolean canInitialize(String workflowName, int initialAction) throws WorkflowException { return canInitialize(workflowName, initialAction, null); }
public boolean canInitialize(String workflowName, int initialAction) { return canInitialize(workflowName, initialAction, null); }
28,766
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); int currentState = entry.getState(); boolean result = false; switch (newState) { case WorkflowEntry.CREATE...
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); int currentState = entry.getState(); boolean result = false; switch (newState) { case WorkflowEntry.CREATE...
28,767
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); int currentState = entry.getState(); boolean result = false; switch (newState) { case WorkflowEntry.CREATE...
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); int currentState = entry.getState(); boolean result = false; switch (newState) { case WorkflowEntry.CREATE...
28,768
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); int currentState = entry.getState(); boolean result = false; switch (newState) { case WorkflowEntry.CREATE...
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); int currentState = entry.getState(); boolean result = false; switch (newState) { case WorkflowEntry.CREATE...
28,769
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); int currentState = entry.getState(); boolean result = false; switch (newState) { case WorkflowEntry.CREATE...
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); int currentState = entry.getState(); boolean result = false; switch (newState) { case WorkflowEntry.CREATE...
28,770
public int[] getAvailableActions(long id) throws WorkflowException { return getAvailableActions(id, new HashMap()); }
public int[] getAvailableActions(long id) { return getAvailableActions(id, new HashMap()); }
28,771
public List getCurrentSteps(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findCurrentSteps(id); }
public List getCurrentSteps(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findCurrentSteps(id); }
28,772
public List getCurrentSteps(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findCurrentSteps(id); }
public List getCurrentSteps(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findCurrentSteps(id); } catch (StoreException e) { log.error("Error checking current steps for instance #" + id, e); return Collections.EMPTY_LIST; } }
28,773
public int getEntryState(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findEntry(id).getState(); }
public int getEntryState(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findEntry(id).getState(); }
28,774
public int getEntryState(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findEntry(id).getState(); }
public int getEntryState(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findEntry(id).getState(); } catch (StoreException e) { log.error("Error checking instance state for instance #" + id, e); } return WorkflowEntry.UNKNOWN; }
28,775
public List getHistorySteps(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findHistorySteps(id); }
public List getHistorySteps(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findHistorySteps(id); }
28,776
public List getHistorySteps(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findHistorySteps(id); }
public List getHistorySteps(long id) throws StoreException { WorkflowStore store = getPersistence(); return store.findHistorySteps(id); } catch (StoreException e) { log.error("Error getting history steps for instance #" + id, e); } return Collections.EMPTY_LIST; }
28,777
public PropertySet getPropertySet(long id) throws StoreException { PropertySet ps = getPersistence().getPropertySet(id); return ps; }
public PropertySet getPropertySet(long id) throws StoreException { PropertySet ps = getPersistence().getPropertySet(id); return ps; }
28,778
public List getSecurityPermissions(long id) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getWorkflow(entry.getWorkflowName()); PropertySet ps = store.getPropertySet(id); Map transientVars = ne...
public List getSecurityPermissions(long id) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getWorkflow(entry.getWorkflowName()); PropertySet ps = store.getPropertySet(id); Map transientVars = ne...
28,779
public List getSecurityPermissions(long id) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getWorkflow(entry.getWorkflowName()); PropertySet ps = store.getPropertySet(id); Map transientVars = ne...
public List getSecurityPermissions(long id) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getWorkflow(entry.getWorkflowName()); PropertySet ps = store.getPropertySet(id); Map transientVars = ne...
28,780
public List getSecurityPermissions(long id) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getWorkflow(entry.getWorkflowName()); PropertySet ps = store.getPropertySet(id); Map transientVars = ne...
public List getSecurityPermissions(long id) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getWorkflow(entry.getWorkflowName()); PropertySet ps = store.getPropertySet(id); Map transientVars = ne...
28,781
protected synchronized WorkflowDescriptor getWorkflow(String name) throws FactoryException { return ConfigLoader.getWorkflow(name); }
protected synchronized WorkflowDescriptor getWorkflow(String name) throws FactoryException { return ConfigLoader.getWorkflow(name); }
28,782
public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws FactoryException { return getWorkflow(workflowName); }
public WorkflowDescriptor getWorkflowDescriptor(String workflowName) { return getWorkflow(workflowName); }
28,783
public String getWorkflowName(long id) throws StoreException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry != null) { return entry.getWorkflowName(); } else { return null; } }
public String getWorkflowName(long id) throws StoreException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry != null) { return entry.getWorkflowName(); } else { return null; } }
28,784
public String getWorkflowName(long id) throws StoreException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry != null) { return entry.getWorkflowName(); } else { return null; } }
public String getWorkflowName(long id) throws StoreException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry != null) { return entry.getWorkflowName(); } else { return null; } }
28,785
public String[] getWorkflowNames() throws FactoryException { return ConfigLoader.getWorkflowNames(); }
public String[] getWorkflowNames() throws FactoryException { return ConfigLoader.getWorkflowNames(); }
28,787
public Component getFocusOwner () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Window activeWindow = manager.getActiveWindow (); // The currently-focused Component belongs to the active Window. if (activeWindow == this) return manager.getFocusOwner (); ...
public Component getFocusOwner () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Window activeWindow = manager.getActiveWindow (); // The currently-focused Component belongs to the active Window. if (activeWindow == this) return manager.getFocusOwner (); ...
28,790
public void cancelDeliveries(String receiverID) throws JMSException { del.cancelDeliveries(receiverID); }
public void cancelDeliveries() throws JMSException { del.cancelDeliveries(receiverID); }
28,791
public void cancelDeliveries(String receiverID) throws JMSException { del.cancelDeliveries(receiverID); }
public void cancelDeliveries(String receiverID) throws JMSException { del.cancelDeliveries(); }
28,792
private static Box layoutBlock(LayoutContext c, BlockBox block, Content content, StyleSetListener listener) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } Rectangle o...
private static Box layoutBlock(LayoutContext c, BlockBox block, Content content, StyleSetListener listener) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } Rectangle o...
28,793
private static Box layoutBlock(LayoutContext c, BlockBox block, Content content, StyleSetListener listener) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } Rectangle o...
private static Box layoutBlock(LayoutContext c, BlockBox block, Content content, StyleSetListener listener) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } Rectangle o...
28,794
protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();...
protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();...
28,795
protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();...
protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();...
28,796
public void testStressReceiveOnTopic() throws Exception { if (log.isTraceEnabled()) log.trace("testStressReceiveOnTopic"); final int count = 100; consumerConnection.start(); new Thread(new Runnable() { public void run() { try { // this is...
public void testStressReceiveOnTopic() throws Exception { if (log.isTraceEnabled()) log.trace("testStressReceiveOnTopic"); final int count = 1000; consumerConnection.start(); new Thread(new Runnable() { public void run() { try { // this i...
28,798
public Object handleClosing(Invocation invocation) throws Throwable { ConsumerState state = getState(invocation); ConnectionState cState = (ConnectionState)state.getParent().getParent(); cState.getRemotingConnection().getCallbackManager().unregisterHandler(state.getConsumerID()); ...
public Object handleClosing(Invocation invocation) throws Throwable { ConsumerState state = getState(invocation); ConnectionState cState = (ConnectionState)state.getParent().getParent(); cState.getRemotingConnection().getCallbackManager().unregisterHandler(state.getConsumerID()); ...
28,799
public void addTemporaryDestination(JBossDestination dest) throws JMSException { try { if (closed) { throw new IllegalStateException("Session is closed"); } if (!dest.isTemporary()) { throw new InvalidDestinationException("Destination:" + dest...
public void addTemporaryDestination(JBossDestination dest) throws JMSException { try { if (closed) { throw new IllegalStateException("Session is closed"); } if (!dest.isTemporary()) { throw new InvalidDestinationException("Destination:" + dest...
28,800
public void addTemporaryDestination(JBossDestination dest) throws JMSException { try { if (closed) { throw new IllegalStateException("Session is closed"); } if (!dest.isTemporary()) { throw new InvalidDestinationException("Destination:" + dest...
public void addTemporaryDestination(JBossDestination dest) throws JMSException { try { if (closed) { throw new IllegalStateException("Session is closed"); } if (!dest.isTemporary()) { throw new InvalidDestinationException("Destination:" + dest...
28,801
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selectorString, boolean noLocal, String subscriptionName, ...
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selectorString, boolean noLocal, String subscriptionName, ...
28,802
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selectorString, boolean noLocal, String subscriptionName, ...
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selectorString, boolean noLocal, String subscriptionName, ...
28,803
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selectorString, boolean noLocal, String subscriptionName, ...
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selectorString, boolean noLocal, String subscriptionName, ...
28,804
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selectorString, boolean noLocal, String subscriptionName, ...
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selectorString, boolean noLocal, String subscriptionName, ...
28,805
public void setUp() throws Exception { super.setUp(); // Start the local server localServer = new LocalTestServer(); // Start all the services locally localServer.start("all"); // This crash test is relying on a precise value of LeaseInterval, so we don't rely on // t...
public void setUp() throws Exception { super.setUp(); // Start the local server localServer = new LocalTestServer(); // Start all the services locally localServer.start("all"); // This crash test is relying on a precise value of LeaseInterval, so we don't rely on // t...
28,806
public void testClientCrash() throws Exception { InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue"); CreateClientOnSer...
public void testClientCrash() throws Exception { InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue"); CreateClientOnSer...
28,807
public void testClientCrash() throws Exception { InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue"); CreateClientOnSer...
public void testClientCrash() throws Exception { InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue"); CreateClientOnSer...
28,808
public void testClientCrash() throws Exception { InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue"); CreateClientOnSer...
public void testClientCrash() throws Exception { InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue"); CreateClientOnSer...
28,809
private void paint(RenderingContext c, LineBox line, InlineBox inline, int start, int width, int sides, boolean doTextDecorations) { Style style; if (line.isFirstLine || endStyle == null) {//e...
private void paint(RenderingContext c, LineBox line, InlineBox inline, int start, int width, int sides, boolean doTextDecorations) { Style style; if (line.isFirstLine || endStyle == null) {//e...
28,810
protected Message getMessage(long timeout) throws InterruptedException, JMSException { Message m = null; //If it's receiveNoWait then get the message directly if (timeout == -1) { waiting = false; m = getMessageNow(); } else { //ot...
protected Message getMessage(long timeout) throws InterruptedException, JMSException { Message m = null; //If it's receiveNoWait then get the message directly if (timeout == -1) { waiting = false; m = getMessageNow(); } else { //ot...
28,812
protected Message getMessageNow() throws JMSException { return consumerDelegate.getMessageNow(); }
protected Message getMessageNow() throws JMSException { MessageDelegate del = (MessageDelegate)consumerDelegate.getMessageNow(); if (del != null) { return processMessage(del); } else { return null; } }
28,813
public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); //Note - ...
public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); //Note - ...
28,814