rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new TransactionalReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new TransactionalReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, true) };
public void test_Simple_XNP_LT() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons = sessReceive...
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, true) };
public void test_Simple_XNP_LX() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); XASession sessReceive = ((XAConnection)conn).createXASession(); MessageConsumer cons = sessReceive.createConsu...
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, false) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, false) };
public void test_Simple_XNP_NLA() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer cons = sessReceive...
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_XNP_NLCA() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons = sessRece...
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, false) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, false) };
public void test_Simple_XNP_NLD() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(false, Session.DUPS_OK_ACKNOWLEDGE); MessageConsumer cons = sessRece...
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new TransactionalReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new TransactionalReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_XNP_NLT() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons = sessReceiv...
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_XNP_NLX() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); XASession sessReceive = ((XAConnection)conn).createXASession(); MessageConsumer cons = sessReceive.createCons...
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, true) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, true) };
public void test_Simple_XP_LA() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer cons = sessReceive.c...
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, true) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) };
public void test_Simple_XP_LCA() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons = sessReceiv...
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, true) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, true) };
public void test_Simple_XP_LD() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(false, Session.DUPS_OK_ACKNOWLEDGE); MessageConsumer cons = sessReceiv...
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new TransactionalReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, true) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new TransactionalReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) };
public void test_Simple_XP_LT() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons = sessReceive....
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, true) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, true) };
public void test_Simple_XP_LX() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); XASession sessReceive = ((XAConnection)conn).createXASession(); MessageConsumer cons = sessReceive.createConsum...
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, false) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, false) };
public void test_Simple_XP_NLA() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer cons = sessReceive....
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new RecoveringReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_XP_NLCA() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons = sessRecei...
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, false) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Receiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, false) };
public void test_Simple_XP_NLD() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(false, Session.DUPS_OK_ACKNOWLEDGE); MessageConsumer cons = sessRecei...
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new TransactionalReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new TransactionalReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_XP_NLT() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); Session sessReceive = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons = sessReceive...
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new Transactional2PCSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
public void test_Simple_XP_NLX() throws Exception { Connection conn = cf.createConnection(); conn.start(); XASession sessSend = ((XAConnection)conn).createXASession(); XASession sessReceive = ((XAConnection)conn).createXASession(); MessageConsumer cons = sessReceive.createConsu...
if (consumer != null)
public void imageComplete(int status) { consumer.imageComplete(status); }
this.shadow = (shadow != null) ? shadow : Color.gray; this.darkShadow = (darkShadow != null) ? darkShadow : Color.black; this.highlight = (highlight != null) ? highlight : Color.lightGray; this.lightHighlight = (lightHighlight != null) ? lightHighlight : Color.white;
public FieldBorder(Color shadow, Color darkShadow, Color highlight, Color lightHighlight) { }
this.shadow = (shadow != null) ? shadow : Color.gray; this.highlight = (highlight != null) ? highlight : Color.white;
public MenuBarBorder(Color shadow, Color highlight) { }
this.shadow = (shadow != null) ? shadow : Color.black; this.highlight = (highlight != null) ? highlight : Color.white;
public SplitPaneBorder(Color highlight, Color shadow) { }
if (c.css.getStyle(box.getRealElement()).isIdentifier(CSSName.BACKGROUND_COLOR)) { String value = c.css.getStyle(box.getRealElement()).getStringProperty("background-color");
CalculatedStyle style = box.getContent().getStyle(); if (style.isIdentifier(CSSName.BACKGROUND_COLOR)) { String value = style.getStringProperty("background-color");
public static Color getBackgroundColor(Context c, Box box) { if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.background_color == null) { if (c.css.getStyle(box.getRealElement()).isIdentifier(CSSName.BACKGROUND_COLOR)) { String value = c.css.getStyle(bo...
box.background_color = c.css.getStyle(box.getRealElement()).getBackgroundColor();
box.background_color = style.getBackgroundColor();
public static Color getBackgroundColor(Context c, Box box) { if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.background_color == null) { if (c.css.getStyle(box.getRealElement()).isIdentifier(CSSName.BACKGROUND_COLOR)) { String value = c.css.getStyle(bo...
box.margin = c.css.getStyle(box.getRealElement()).getMarginWidth();
box.margin = box.getContent().getStyle().getMarginWidth();
public static Border getMargin(Context c, Box box) { if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.margin == null) { box.margin = c.css.getStyle(box.getRealElement()).getMarginWidth(); } } return box.margin; }
box.padding = c.css.getStyle(box.getRealElement()).getPaddingWidth();
box.padding = box.getContent().getStyle().getPaddingWidth();
public static Border getPadding(Context c, Box box) { if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.padding == null) { box.padding = c.css.getStyle(box.getRealElement()).getPaddingWidth(); } } return box.padding; }
if (!channel.isRecoverable()) { return; }
public void testReliableSynchronousDeliveryTwoReceivers() throws Exception { SimpleDeliveryObserver observer = new SimpleDeliveryObserver(); SimpleReceiver r1 = new SimpleReceiver("ONE", SimpleReceiver.ACKING); SimpleReceiver r2 = new SimpleReceiver("TWO", SimpleReceiver.ACKING); assertTrue(cha...
receiver = null;
public synchronized boolean remove(Receiver r) { boolean result = false; if (receiver == r) { result = true; } receiver = null; return result; }
if (c == '\'' && index + 2 < max && pat.charAt(index + 2) == '\'')
if (quoted)
private static int scanFormatElement(String pat, int index, StringBuffer buffer, char term) { int max = pat.length(); buffer.setLength(0); int brace_depth = 1; for (; index < max; ++index) { char c = pat.charAt(index); if (c == '\'' && index + 2 < max && pat.cha...
buffer.append(c); buffer.append(pat.charAt(index + 1)); buffer.append(c); index += 2;
if (c == '\'') quoted = false;
private static int scanFormatElement(String pat, int index, StringBuffer buffer, char term) { int max = pat.length(); buffer.setLength(0); int brace_depth = 1; for (; index < max; ++index) { char c = pat.charAt(index); if (c == '\'' && index + 2 < max && pat.cha...
{ buffer.append(c);
private static int scanFormatElement(String pat, int index, StringBuffer buffer, char term) { int max = pat.length(); buffer.setLength(0); int brace_depth = 1; for (; index < max; ++index) { char c = pat.charAt(index); if (c == '\'' && index + 2 < max && pat.cha...
}
private static int scanFormatElement(String pat, int index, StringBuffer buffer, char term) { int max = pat.length(); buffer.setLength(0); int brace_depth = 1; for (; index < max; ++index) { char c = pat.charAt(index); if (c == '\'' && index + 2 < max && pat.cha...
buffer.append(c);
private static int scanFormatElement(String pat, int index, StringBuffer buffer, char term) { int max = pat.length(); buffer.setLength(0); int brace_depth = 1; for (; index < max; ++index) { char c = pat.charAt(index); if (c == '\'' && index + 2 < max && pat.cha...
else
private static int scanFormatElement(String pat, int index, StringBuffer buffer, char term) { int max = pat.length(); buffer.setLength(0); int brace_depth = 1; for (; index < max; ++index) { char c = pat.charAt(index); if (c == '\'' && index + 2 < max && pat.cha...
if (c == '\'' && index + 2 < max && pat.charAt(index + 2) == '\'')
if (quoted)
private static int scanString(String pat, int index, StringBuffer buffer) { int max = pat.length(); buffer.setLength(0); for (; index < max; ++index) { char c = pat.charAt(index); if (c == '\'' && index + 2 < max && pat.charAt(index + 2) == '\'') { buffer.append(pat.charAt(index + 1)); index ...
buffer.append(pat.charAt(index + 1)); index += 2;
if (c == '\'') quoted = false; else buffer.append(c);
private static int scanString(String pat, int index, StringBuffer buffer) { int max = pat.length(); buffer.setLength(0); for (; index < max; ++index) { char c = pat.charAt(index); if (c == '\'' && index + 2 < max && pat.charAt(index + 2) == '\'') { buffer.append(pat.charAt(index + 1)); index ...
else if (c == '}') throw new IllegalArgumentException("Found '}' without '{'");
private static int scanString(String pat, int index, StringBuffer buffer) { int max = pat.length(); buffer.setLength(0); for (; index < max; ++index) { char c = pat.charAt(index); if (c == '\'' && index + 2 < max && pat.charAt(index + 2) == '\'') { buffer.append(pat.charAt(index + 1)); index ...
CertificateException lastException = null;
public static final CertificateFactory getInstance(String type) throws CertificateException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(type, p[i]); } catch (CertificateException e) { // ...
{
public static final CertificateFactory getInstance(String type) throws CertificateException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(type, p[i]); } catch (CertificateException e) { // ...
catch (CertificateException e)
catch (CertificateException x)
public static final CertificateFactory getInstance(String type) throws CertificateException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(type, p[i]); } catch (CertificateException e) { // ...
lastException = x;
public static final CertificateFactory getInstance(String type) throws CertificateException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(type, p[i]); } catch (CertificateException e) { // ...
}
if (lastException != null) throw lastException;
public static final CertificateFactory getInstance(String type) throws CertificateException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(type, p[i]); } catch (CertificateException e) { // ...
debugInlines(c, inline, lx, ly); return; } if (inline.content instanceof AbsoluteBlockContent) { paintAbsolute(c, inline, line);
private void paintInline(Context c, InlineBox inline, int lx, int ly, LineBox line) { if (inline.content instanceof InlineBlockContent) { paintReplaced(c, inline, line); debugInlines(c, inline, lx, ly); return; } if (inline.content instanceof FloatedBlockContent...
if (auto_width && childWidth > contentWidth) {
if (getStyle().isAutoWidth() && childWidth > contentWidth) {
public void adjustWidthForChild(int childWidth) { if (auto_width && childWidth > contentWidth) { contentWidth = childWidth; } if (getParent() != null) { getParent().adjustWidthForChild(getWidth()); } }
Border margin = getMarginWidth();
Border margin = getStyle().getMarginWidth();
public void render(Context c, Graphics2D g2) { //HACK: g2.translate(absX - x, absY - y); int width = getWidth(); int height = getHeight(); if (getState() != Box.DONE) { height += c.getCanvas().getHeight(); } Border margin = getMarginWidth(); Rectang...
if (this.fixed) {
if (getStyle().isFixed()) {
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("BlockBox:"); sb.append(super.toString()); if (this.fixed) { sb.append(" position: fixed"); } if (this.right_set) { sb.append(" right = " + this.right); } return s...
this.connectionID = new GUID().toString();
this.connectionID = serverPeer.getNextObjectID();
ServerConnectionEndpoint(ServerPeer serverPeer, String clientID, String username, String password, String clientConnectionId) { this.serverPeer = serverPeer; dm = serverPeer.getDestinationManager(); sm = serverPeer.getSecurityManager(); tr = serverPeer.getTxRepository...
void acknowledge(String messageID, String consumerID, Transaction tx) throws JMSException
void acknowledge(String messageID, int consumerID, Transaction tx) throws JMSException
void acknowledge(String messageID, String consumerID, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("acknowledging " + messageID + " from consumer " + consumerID + " transactionally on " + tx); } ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(consume...
if (log.isTraceEnabled()) { log.trace("acknowledging " + messageID + " from consumer " + consumerID + " transactionally on " + tx); }
if (trace) { log.trace("acknowledging " + messageID + " from consumer " + consumerID + " transactionally on " + tx); }
void acknowledge(String messageID, String consumerID, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("acknowledging " + messageID + " from consumer " + consumerID + " transactionally on " + tx); } ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(consume...
ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(consumerID);
ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(Integer.valueOf(consumerID));
void acknowledge(String messageID, String consumerID, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("acknowledging " + messageID + " from consumer " + consumerID + " transactionally on " + tx); } ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(consume...
void cancel(String messageID, String consumerID) throws JMSException
void cancel(String messageID, int consumerID) throws JMSException
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...
ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(consumerID);
ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(Integer.valueOf(consumerID));
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...
if (log.isTraceEnabled()) { log.trace("Cancelling deliveries for transaction"); }
if (trace) { log.trace("Cancelling deliveries for transaction"); }
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 ...
if (log.isTraceEnabled()) { log.trace("close()"); }
if (trace) { log.trace("close()"); }
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...
Dispatcher.singleton.unregisterTarget(this.connectionID);
JMSDispatcher.instance.unregisterTarget(Integer.valueOf(connectionID));
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...
if (log.isTraceEnabled()) { log.trace("creating session, transacted=" + transacted + " ackMode=" + ToString.acknowledgmentMode(acknowledgmentMode) + " XA=" + isXA); }
if (trace) { log.trace("creating session, transacted=" + transacted + " ackMode=" + ToString.acknowledgmentMode(acknowledgmentMode) + " XA=" + isXA); }
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedExcep...
String sessionID = generateSessionID();
int sessionID = serverPeer.getNextObjectID();
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedExcep...
Dispatcher.singleton.registerTarget(sessionID, sessionAdvised);
JMSDispatcher.instance.registerTarget(Integer.valueOf(sessionID), sessionAdvised);
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedExcep...
log.debug("created session delegate (sessionID=" + Util.guidToString(sessionID) + ")");
log.debug("created session delegate (sessionID=" + sessionID + ")");
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedExcep...
public ServerSessionEndpoint getSessionDelegate(String sessionID)
public ServerSessionEndpoint getSessionDelegate(int sessionID)
public ServerSessionEndpoint getSessionDelegate(String sessionID) { return (ServerSessionEndpoint)sessions.get(sessionID); }
return (ServerSessionEndpoint)sessions.get(sessionID);
return (ServerSessionEndpoint)sessions.get(Integer.valueOf(sessionID));
public ServerSessionEndpoint getSessionDelegate(String sessionID) { return (ServerSessionEndpoint)sessions.get(sessionID); }
if (log.isTraceEnabled()) { log.trace("processing commit, there are " + txState.getMessages().size() + " messages and " + txState.getAcks().size() + " acks "); }
if (trace) { log.trace("processing commit, there are " + txState.getMessages().size() + " messages and " + txState.getAcks().size() + " acks "); }
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...
if (log.isTraceEnabled()) { log.trace("sent " + m); }
if (trace) { log.trace("sent " + m); }
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...
if (log.isTraceEnabled()) { log.trace("Done the sends"); }
if (trace) { log.trace("Done the sends"); }
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...
if (log.isTraceEnabled()) { log.trace("acked " + ack.getMessageID()); }
if (trace) { log.trace("acked " + ack.getMessageID()); }
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...
if (log.isTraceEnabled()) { log.trace("Done the acks"); }
if (trace) { log.trace("Done the acks"); }
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...
public ServerSessionEndpoint putSessionDelegate(String sessionID, ServerSessionEndpoint d)
public ServerSessionEndpoint putSessionDelegate(int sessionID, ServerSessionEndpoint d)
public ServerSessionEndpoint putSessionDelegate(String sessionID, ServerSessionEndpoint d) { return (ServerSessionEndpoint)sessions.put(sessionID, d); }
return (ServerSessionEndpoint)sessions.put(sessionID, d);
return (ServerSessionEndpoint)sessions.put(Integer.valueOf(sessionID), d);
public ServerSessionEndpoint putSessionDelegate(String sessionID, ServerSessionEndpoint d) { return (ServerSessionEndpoint)sessions.put(sessionID, d); }
if (log.isTraceEnabled()) { log.trace("sending " + m + (tx == null ? " non-transactionally" : " transactionally on " + tx)); }
if (trace) { log.trace("sending " + m + (tx == null ? " non-transactionally" : " transactionally on " + tx)); }
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 = (...
if (log.isTraceEnabled()) { log.trace("sending " + r + " to the core destination " + jmsDestination.getName() + (tx == null ? "": ", tx " + tx)); }
if (trace) { log.trace("sending " + r + " to the core destination " + jmsDestination.getName() + (tx == null ? "": ", tx " + tx)); }
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 = (...
if (log.isTraceEnabled()) { log.trace("One phase commit request received"); }
if (trace) { log.trace("One phase commit request received"); }
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
if (log.isTraceEnabled()) { log.trace("One phase rollback request received"); }
if (trace) { log.trace("One phase rollback request received"); }
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
if (log.isTraceEnabled()) { log.trace("Two phase commit prepare request received"); }
if (trace) { log.trace("Two phase commit prepare request received"); }
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
if (log.isTraceEnabled()) { log.trace("Two phase commit commit request received"); }
if (trace) { log.trace("Two phase commit commit request received"); }
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
if (log.isTraceEnabled()) { log.trace("committing " + tx); }
if (trace) { log.trace("committing " + tx); }
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
if (log.isTraceEnabled()) { log.trace("Two phase commit rollback request received"); }
if (trace) { log.trace("Two phase commit rollback request received"); }
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
if (log.isTraceEnabled()) { log.trace("rolling back " + tx); }
if (trace) { log.trace("rolling back " + tx); }
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
if (log.isTraceEnabled()) { log.trace("Request processed ok"); }
if (trace) { log.trace("Request processed ok"); }
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
if (log.isTraceEnabled()) { log.trace("setClientID:" + clientID); }
if (trace) { log.trace("setClientID:" + clientID); }
public void setClientID(String clientID) throws IllegalStateException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is closed");...
log.debug("Connection " + Util.guidToString(connectionID) + " stopped");
log.debug("Connection " + connectionID + " stopped");
public synchronized void stop() throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is closed"); } ...
return "ConnectionEndpoint[" + Util.guidToString(connectionID) + "]";
return "ConnectionEndpoint[" + connectionID + "]";
public String toString() { return "ConnectionEndpoint[" + Util.guidToString(connectionID) + "]"; }
channelMapper.undeployTemporaryCoreDestination(dest.isQueue(), dest.getName());
channelMapper.undeployCoreDestination(dest.isQueue(), dest.getName());
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...
return super.paramString();
return super.paramString() + ",title=" + getTitle();
protected String paramString() { return super.paramString(); }
public void setLayer(Component c, int layer, int position)
public void setLayer(Component c, int layer)
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 ...
Integer layerObj = getObjectForLayer(layer); if (c instanceof JComponent) { JComponent jc = (JComponent) c; jc.putClientProperty(LAYER_PROPERTY, layerObj); } else componentToLayer.put (c, layerObj); if (getIndexOf(c) != -1) setPosition(c, position);
setLayer(c, layer, -1);
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 ...
Ivy ivy = getIvyInstance();
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"); ...
ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); if (_conf.equals("*")) { _conf = getProperty(ivy, "ivy.resolved.configurations"); } _organisation = getProperty(_organisation, ivy, "ivy.organisation"); _module = getProperty(_module, ivy, "ivy.module"); if (_cache == nul...
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"); ...
XmlReportParser parser = new XmlReportParser();
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"); ...
String[] confs = splitConfs(_conf); Collection all = new LinkedHashSet(); for (int i = 0; i < confs.length; i++) { Artifact[] artifacts = parser.getArtifacts(new ModuleId(_organisation, _module), confs[i], _cache); all.addAll(Arrays.asList(artifacts)); } for (Iterator iter = all.iterator(); iter.hasNext();) { Artifact ...
List paths = getPaths(); if (paths.isEmpty()) { NameEntry ne = fileset.createExclude(); ne.setName("**/*"); } else { for (Iterator iter = paths.iterator(); iter.hasNext();) { String p = (String)iter.next();
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"); ...
ne.setName(ivy.getArchivePathInCache(artifact));
ne.setName(p);
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"); ...
String url = (String)entities.get( publicID ); if ( url != null ) { InputStream is = GeneralUtil.openStreamFromClasspath( this, url ); if ( is == null ) { XRLog.xmlEntities( Level.WARNING,
String url = (String) entities.get(publicID); if (url != null) { URL realUrl = GeneralUtil.getURLFromClasspath(this, url); InputStream is = null; try { is = realUrl.openStream(); } catch (IOException e) { e.printStackTrace(); } if (is == null) { XRLog.xmlEntities(Level.WARNING,
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...
local = new InputSource( is );
local = new InputSource(is); local.setSystemId(realUrl.toExternalForm());
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...
URL url = getClass().getClassLoader().getResource("/samples/saved.xml");
URL url = getClass().getResource("/samples/saved.xml");
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...
int origLength = (int) new File(url.getFile()).length(); int savedLength = out.toString().length(); int diff = Math.abs(origLength - savedLength); assertEquals("Difference between saved and original is " + diff, diff < 4, true);
String inputString = getFileAsString(url.getFile()); String outputString = out.toString(); Diff diff = new Diff(inputString, outputString); diff.overrideElementQualifier(new ElementNameAndTextQualifier()); assertTrue(diff.similar()); assertXMLEqual("But they are equal when an ElementQualifier controls which test eleme...
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...
long id = workflow.initialize("file:auto4.xml", 1, new HashMap());
long id = workflow.initialize(getClass().getClassLoader().getResource("/auto4.xml").toString(), 1, new HashMap());
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...
long id = workflow.initialize("file:auto2.xml", 1, new HashMap());
long id = workflow.initialize(getClass().getClassLoader().getResource("/auto2.xml").toString(), 1, new HashMap());
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...
long id = workflow.initialize("file:auto3.xml", 1, new HashMap());
long id = workflow.initialize(getClass().getClassLoader().getResource("/auto3.xml").toString(), 1, new HashMap());
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....
long id = workflow.initialize("file:propertyset-create.xml", 1, inputs);
long id = workflow.initialize(getClass().getClassLoader().getResource("/propertyset-create.xml").toString(), 1, inputs);
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 ...
long id = workflow.initialize("file:auto1.xml", 1, new HashMap());
long id = workflow.initialize(getClass().getClassLoader().getResource("/auto1.xml").toString(), 1, new HashMap());
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...
u.p("TableLayout2.calculateBoxes(" + avail_width + " , " + box + " , " + c + " , " + table);
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 ...
{ del.getReference().decrementDeliveryCount();
{
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 ...