rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
protected void executeRenderThread(Context c) {
protected void executeRenderThread(Context c, Box root) {
protected void executeRenderThread(Context c) { //Uu.p("do render called"); //Uu.p("last render event = " + last_event); // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics) && expl...
if (bh != null && bh.box != null) { long start = System.currentTimeMillis(); BoxRendering.paint(c, bh.box, false, false); long after = System.currentTimeMillis(); if (Configuration.isTrue("xr.incremental.repaint.print-timing", false)) { Uu.p("repaint took ms: " + (after - start)); }
long start = System.currentTimeMillis(); if (!c.isPrint()) { BoxRendering.paint(c, root, false, false);
protected void executeRenderThread(Context c) { //Uu.p("do render called"); //Uu.p("last render event = " + last_event); // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics) && expl...
renderPagedView(c, root); } long after = System.currentTimeMillis(); if (Configuration.isTrue("xr.incremental.repaint.print-timing", false)) { Uu.p("repaint took ms: " + (after - start));
protected void executeRenderThread(Context c) { //Uu.p("do render called"); //Uu.p("last render event = " + last_event); // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics) && expl...
printTree(this.body_box, "");
printTree(getRootBox(), "");
public void printTree() { printTree(this.body_box, ""); }
protected Context newContext(Graphics2D g) {
protected Context newContext(PageInfo pageInfo, Graphics2D g) {
protected Context newContext(Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getContext().setCanvas(this); getContext().setGraphics(g); Rectangle extents; if (enclosingScrollPane != null) { Rectangle bnds = enclosingScrollPane.getViewportBorderBounds();...
if (enclosingScrollPane != null) {
if (pageInfo != null) { extents = new Rectangle(0, 0, (int) pageInfo.getContentWidth(), (int) pageInfo.getContentHeight()); } else if (enclosingScrollPane != null) {
protected Context newContext(Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getContext().setCanvas(this); getContext().setGraphics(g); Rectangle extents; if (enclosingScrollPane != null) { Rectangle bnds = enclosingScrollPane.getViewportBorderBounds();...
setRenderWidth((int) extents.getWidth()); return getContext().newContextInstance(extents);
Context result = getContext().newContextInstance(extents); result.setPrint(pageInfo != null); result.setInteractive(pageInfo == null); return result;
protected Context newContext(Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getContext().setCanvas(this); getContext().setGraphics(g); Rectangle extents; if (enclosingScrollPane != null) { Rectangle bnds = enclosingScrollPane.getViewportBorderBounds();...
bodyReadOnly = false; super.clearBody();
public void clearBody() throws JMSException { payload = new HashMap(); bodyReadOnly = false; super.clearBody(); }
bodyReadOnly = in.readBoolean();
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); bodyReadOnly = in.readBoolean(); payload = (Serializable)readMap(in); }
out.writeBoolean(bodyReadOnly);
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeBoolean(bodyReadOnly); writeMap(out, ((Map)payload)); }
Array getArray(int i) throws SQLException;
Array getArray(int columnIndex) throws SQLException;
Array getArray(int i) throws SQLException;
Blob getBlob(int i) throws SQLException;
Blob getBlob(int columnIndex) throws SQLException;
Blob getBlob(int i) throws SQLException;
boolean getBoolean(String columnName) throws SQLException;
boolean getBoolean(int columnIndex) throws SQLException;
boolean getBoolean(String columnName) throws SQLException;
Clob getClob(int i) throws SQLException;
Clob getClob(int columnIndex) throws SQLException;
Clob getClob(int i) throws SQLException;
Ref getRef(int i) throws SQLException;
Ref getRef(int columnIndex) throws SQLException;
Ref getRef(int i) throws SQLException;
void updateArray(int columnIndex, Array x) throws SQLException;
void updateArray(int columnIndex, Array value) throws SQLException;
void updateArray(int columnIndex, Array x) throws SQLException;
void updateAsciiStream(int columnIndex, InputStream x, int length)
void updateAsciiStream(int columnIndex, InputStream stream, int count)
void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException;
void updateBigDecimal(int columnIndex, BigDecimal x)
void updateBigDecimal(int columnIndex, BigDecimal value)
void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException;
void updateBinaryStream(int columnIndex, InputStream x, int length)
void updateBinaryStream(int columnIndex, InputStream stream, int count)
void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException;
void updateBlob(int columnIndex, Blob x) throws SQLException;
void updateBlob(int columnIndex, Blob value) throws SQLException;
void updateBlob(int columnIndex, Blob x) throws SQLException;
void updateBoolean(int columnIndex, boolean x) throws SQLException;
void updateBoolean(int columnIndex, boolean value) throws SQLException;
void updateBoolean(int columnIndex, boolean x) throws SQLException;
void updateByte(int columnIndex, byte x) throws SQLException;
void updateByte(int columnIndex, byte value) throws SQLException;
void updateByte(int columnIndex, byte x) throws SQLException;
void updateBytes(int columnIndex, byte[] x) throws SQLException;
void updateBytes(int columnIndex, byte[] value) throws SQLException;
void updateBytes(int columnIndex, byte[] x) throws SQLException;
void updateCharacterStream(int columnIndex, Reader x, int length)
void updateCharacterStream(int columnIndex, Reader reader, int count)
void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException;
void updateClob(int columnIndex, Clob x) throws SQLException;
void updateClob(int columnIndex, Clob value) throws SQLException;
void updateClob(int columnIndex, Clob x) throws SQLException;
void updateDate(int columnIndex, Date x) throws SQLException;
void updateDate(int columnIndex, Date value) throws SQLException;
void updateDate(int columnIndex, Date x) throws SQLException;
void updateDouble(int columnIndex, double x) throws SQLException;
void updateDouble(int columnIndex, double value) throws SQLException;
void updateDouble(int columnIndex, double x) throws SQLException;
void updateFloat(int columnIndex, float x) throws SQLException;
void updateFloat(int columnIndex, float value) throws SQLException;
void updateFloat(int columnIndex, float x) throws SQLException;
void updateInt(int columnIndex, int x) throws SQLException;
void updateInt(int columnIndex, int value) throws SQLException;
void updateInt(int columnIndex, int x) throws SQLException;
void updateLong(int columnIndex, long x) throws SQLException;
void updateLong(int columnIndex, long value) throws SQLException;
void updateLong(int columnIndex, long x) throws SQLException;
void updateObject(int columnIndex, Object x, int scale)
void updateObject(int columnIndex, Object value, int scale)
void updateObject(int columnIndex, Object x, int scale) throws SQLException;
void updateRef(int columnIndex, Ref x) throws SQLException;
void updateRef(int columnIndex, Ref value) throws SQLException;
void updateRef(int columnIndex, Ref x) throws SQLException;
void updateShort(int columnIndex, short x) throws SQLException;
void updateShort(int columnIndex, short value) throws SQLException;
void updateShort(int columnIndex, short x) throws SQLException;
void updateString(int columnIndex, String x) throws SQLException;
void updateString(int columnIndex, String value) throws SQLException;
void updateString(int columnIndex, String x) throws SQLException;
void updateTime(int columnIndex, Time x) throws SQLException;
void updateTime(int columnIndex, Time value) throws SQLException;
void updateTime(int columnIndex, Time x) throws SQLException;
void updateTimestamp(int columnIndex, Timestamp x)
void updateTimestamp(int columnIndex, Timestamp value)
void updateTimestamp(int columnIndex, Timestamp x) throws SQLException;
box.underline = false; box.strikethrough = false; box.overline = false;
public static void setupTextDecoration( Context c, Node node, InlineBox box ) { Element el = null; if ( node instanceof Element ) { el = (Element)node; } else { el = (Element)node.getParentNode(); } String text_decoration = c.css.getStringProperty( el, "text-...
MessageConsumer durable1 = sess1.createDurableSubscriber(topic, "mySubscription1"); MessageConsumer durable2 = sess1.createDurableSubscriber(topic, "mySubscription2");
sess1.createDurableSubscriber(topic, "mySubscription1"); sess1.createDurableSubscriber(topic, "mySubscription2");
public void testDurableSubscriptionMultipleSubscriptions() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = null; Connection conn2 = null; try { conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Sess...
public int getType()
public byte getType()
public int getType() { return JBossTextMessage.TYPE; }
{ this.clientPing = clientPing;
{ serverLocator = new InvokerLocator(serverLocatorURI); Map config = new HashMap();
public JMSRemotingConnection(String serverLocatorURI, boolean clientPing) throws Throwable { this.clientPing = clientPing; id = new GUID().toString(); callbackManager = new CallbackManager(); serverLocator = new InvokerLocator(serverLocatorURI); thisAddress = InetAddress.getLocalHost().get...
id = new GUID().toString();
config.put(Client.ENABLE_LEASE, String.valueOf(clientPing));
public JMSRemotingConnection(String serverLocatorURI, boolean clientPing) throws Throwable { this.clientPing = clientPing; id = new GUID().toString(); callbackManager = new CallbackManager(); serverLocator = new InvokerLocator(serverLocatorURI); thisAddress = InetAddress.getLocalHost().get...
callbackManager = new CallbackManager(); serverLocator = new InvokerLocator(serverLocatorURI); thisAddress = InetAddress.getLocalHost().getHostAddress(); isMultiplex = serverLocator.getProtocol().equals("multiplex"); isSSL = serverLocator.getProtocol().equals("sslsocket"); serializationType = (String)serverLocator.getP...
client = new Client(serverLocator, config); client.setSubsystem(ServerPeer.REMOTING_JMS_SUBSYSTEM);
public JMSRemotingConnection(String serverLocatorURI, boolean clientPing) throws Throwable { this.clientPing = clientPing; id = new GUID().toString(); callbackManager = new CallbackManager(); serverLocator = new InvokerLocator(serverLocatorURI); thisAddress = InetAddress.getLocalHost().get...
final int MAX_RETRIES = 50; boolean completed = false; int count = 0;
if (log.isTraceEnabled()) { log.trace("created client"); } callbackServer = CallbackServerFactory.instance.getCallbackServer(serverLocator); callbackManager = (CallbackManager)callbackServer.getInvocationHandlers()[0]; client.connect();
public JMSRemotingConnection(String serverLocatorURI, boolean clientPing) throws Throwable { this.clientPing = clientPing; id = new GUID().toString(); callbackManager = new CallbackManager(); serverLocator = new InvokerLocator(serverLocatorURI); thisAddress = InetAddress.getLocalHost().get...
while (!completed && count < MAX_RETRIES) { try { setUpConnection(); completed = true; } catch (Exception e) { log.warn("Failed to start connection", e); count++; if (client != null) { client.disconnect(); log.trace("disconnected client"); } if (callbackServer != null) { try { callbackServer.stop(); log.trace(...
client.setMarshaller(new JMSWireFormat()); client.setUnMarshaller(new JMSWireFormat()); client.addListener(new DummyCallbackHandler(), callbackServer.getLocator());
public JMSRemotingConnection(String serverLocatorURI, boolean clientPing) throws Throwable { this.clientPing = clientPing; id = new GUID().toString(); callbackManager = new CallbackManager(); serverLocator = new InvokerLocator(serverLocatorURI); thisAddress = InetAddress.getLocalHost().get...
callbackServer.stop(); callbackServer.destroy();
CallbackServerFactory.instance.returnCallbackServer(serverLocator.getProtocol());
public void close() throws Throwable { log.debug(this + " closing"); callbackServer.stop(); callbackServer.destroy(); client.disconnect(); log.debug(this + " closed"); }
log.error("!!!!!!!!!!!!!!Failed to receive messages!!!!");
log.error("Failed to receive messages");
public void run() { try { int count = 0; while (count < (numMessages)) { Message m = cons.receive(RECEIVE_TIMEOUT); if (m != null) { ...
int numSessions, boolean transacted, int transactionSize, int numMessages)
int numSessions, boolean transacted, int transactionSize, int numMessages, long timeToStart)
public BaseThroughputJob(String slaveURL, Properties jndiProperties, String destinationName, String connectionFactoryJndiName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages) { super(slaveURL, jndiProperties, destinationName, connectionFactoryJndi...
this.timeToStart = timeToStart;
public BaseThroughputJob(String slaveURL, Properties jndiProperties, String destinationName, String connectionFactoryJndiName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages) { super(slaveURL, jndiProperties, destinationName, connectionFactoryJndi...
generators = new HashMap();
holders = new HashMap();
private MessageIdGeneratorFactory() { generators = new HashMap(); }
generators.clear();
holders.clear();
public synchronized void clear() { generators.clear(); }
MessageIdGenerator gen = (MessageIdGenerator)generators.get(serverId); if (gen == null)
Holder h = (Holder)holders.get(serverId); if (h == null)
public synchronized MessageIdGenerator getGenerator(String serverId, ConnectionFactoryDelegate cf) throws JMSException { MessageIdGenerator gen = (MessageIdGenerator)generators.get(serverId); if (gen == null) { gen = new MessageIdGenerator(cf, BLOCK_SIZE); generators.put(serverId, ge...
gen = new MessageIdGenerator(cf, BLOCK_SIZE); generators.put(serverId, gen);
h = new Holder(new MessageIdGenerator(cf, BLOCK_SIZE)); holders.put(serverId, h);
public synchronized MessageIdGenerator getGenerator(String serverId, ConnectionFactoryDelegate cf) throws JMSException { MessageIdGenerator gen = (MessageIdGenerator)generators.get(serverId); if (gen == null) { gen = new MessageIdGenerator(cf, BLOCK_SIZE); generators.put(serverId, ge...
return gen;
else { h.refCount++; } return h.generator;
public synchronized MessageIdGenerator getGenerator(String serverId, ConnectionFactoryDelegate cf) throws JMSException { MessageIdGenerator gen = (MessageIdGenerator)generators.get(serverId); if (gen == null) { gen = new MessageIdGenerator(cf, BLOCK_SIZE); generators.put(serverId, ge...
public MessageIdGenerator(ConnectionDelegate cd, int blockSize)
public MessageIdGenerator(ConnectionFactoryDelegate cfd, int blockSize) throws JMSException
public MessageIdGenerator(ConnectionDelegate cd, int blockSize) { this.cd = cd; this.blockSize = blockSize; nextID = Long.MIN_VALUE; high = Long.MIN_VALUE; }
this.cd = cd;
this.cfd = cfd;
public MessageIdGenerator(ConnectionDelegate cd, int blockSize) { this.cd = cd; this.blockSize = blockSize; nextID = Long.MIN_VALUE; high = Long.MIN_VALUE; }
nextID = Long.MIN_VALUE; high = Long.MIN_VALUE;
getNextBlock();
public MessageIdGenerator(ConnectionDelegate cd, int blockSize) { this.cd = cd; this.blockSize = blockSize; nextID = Long.MIN_VALUE; high = Long.MIN_VALUE; }
String id = h.getId();
String id = h.getClientSessionId();
public void addListener(InvokerCallbackHandler callbackHandler) { log.debug("adding callback handler: " + callbackHandler); if (callbackHandler instanceof ServerInvokerCallbackHandler) { ServerInvokerCallbackHandler h = (ServerInvokerCallbackHandler)callbackHandler; String id = h.get...
JBossXAResource res = (JBossXAResource)sess.getXAResource();
MessagingXAResource res = (MessagingXAResource)sess.getXAResource();
public void test2PCReceiveCommit() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn2 = cf.createConnection(); conn2.start(); Session sessProducer = conn2.createSession(false, ...
JBossXAResource res = (JBossXAResource)sess.getXAResource();
MessagingXAResource res = (MessagingXAResource)sess.getXAResource();
public void test2PCReceiveRollback() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn2 = cf.createConnection(); Session sessProducer = conn2.createSession(false, Session.AUTO_ACKNOWLEDGE); ...
JBossXAResource res = (JBossXAResource)sess.getXAResource();
MessagingXAResource res = (MessagingXAResource)sess.getXAResource();
public void test2PCSendCommit() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn = cf.createXAConnection(); tm.begin(); XASession sess = conn.createXASession...
JBossXAResource res = (JBossXAResource)sess.getXAResource();
MessagingXAResource res = (MessagingXAResource)sess.getXAResource();
public void test2PCSendRollback() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn = cf.createXAConnection(); tm.begin(); XASession sess = conn.createXASession(); ...
JBossXAResource res1 = (JBossXAResource)sess1.getXAResource();
MessagingXAResource res1 = (MessagingXAResource)sess1.getXAResource();
public void testMultipleSessionsOneTxCommitAcknowledge() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { //First send 2 messages conn2 = cf.createConnection(); Session sessProducer = co...
JBossXAResource res2 = (JBossXAResource)sess2.getXAResource();
MessagingXAResource res2 = (MessagingXAResource)sess2.getXAResource();
public void testMultipleSessionsOneTxCommitAcknowledge() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { //First send 2 messages conn2 = cf.createConnection(); Session sessProducer = co...
JBossXAResource res1 = (JBossXAResource)sess1.getXAResource();
MessagingXAResource res1 = (MessagingXAResource)sess1.getXAResource();
public void testMultipleSessionsOneTxCommitSend() throws Exception { if (ServerManagement.isRemote()) return; //Since both resources have some RM, TM will probably use 1PC optimization XAConnection conn = null; Connection conn2 = null; try { co...
JBossXAResource res2 = (JBossXAResource)sess2.getXAResource();
MessagingXAResource res2 = (MessagingXAResource)sess2.getXAResource();
public void testMultipleSessionsOneTxCommitSend() throws Exception { if (ServerManagement.isRemote()) return; //Since both resources have some RM, TM will probably use 1PC optimization XAConnection conn = null; Connection conn2 = null; try { co...
JBossXAResource res1 = (JBossXAResource)sess1.getXAResource();
MessagingXAResource res1 = (MessagingXAResource)sess1.getXAResource();
public void testMultipleSessionsOneTxRollbackAcknowledge() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { //First send 2 messages conn2 = cf.createConnection(); Session sessProducer = conn2....
JBossXAResource res2 = (JBossXAResource)sess2.getXAResource();
MessagingXAResource res2 = (MessagingXAResource)sess2.getXAResource();
public void testMultipleSessionsOneTxRollbackAcknowledge() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { //First send 2 messages conn2 = cf.createConnection(); Session sessProducer = conn2....
JBossXAResource res1 = (JBossXAResource)sess1.getXAResource();
MessagingXAResource res1 = (MessagingXAResource)sess1.getXAResource();
public void testMultipleSessionsOneTxRollbackAcknowledge1PCOptimization() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; //Since both resources have some RM, TM will probably use 1PC optimization try { ...
JBossXAResource res2 = (JBossXAResource)sess2.getXAResource();
MessagingXAResource res2 = (MessagingXAResource)sess2.getXAResource();
public void testMultipleSessionsOneTxRollbackAcknowledge1PCOptimization() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; //Since both resources have some RM, TM will probably use 1PC optimization try { ...
JBossXAResource res1 = (JBossXAResource)sess1.getXAResource();
MessagingXAResource res1 = (MessagingXAResource)sess1.getXAResource();
public void testMultipleSessionsOneTxRollbackAcknowledgeForceFailureInCommit() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { //First send 2 messages conn2 = cf.createConnection(); Session s...
JBossXAResource res1 = (JBossXAResource)sess1.getXAResource();
MessagingXAResource res1 = (MessagingXAResource)sess1.getXAResource();
public void testMultipleSessionsOneTxRollbackSend() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn = cf.createXAConnection(); conn.start(); tm.begin(); ...
JBossXAResource res2 = (JBossXAResource)sess2.getXAResource();
MessagingXAResource res2 = (MessagingXAResource)sess2.getXAResource();
public void testMultipleSessionsOneTxRollbackSend() throws Exception { if (ServerManagement.isRemote()) return; XAConnection conn = null; Connection conn2 = null; try { conn = cf.createXAConnection(); conn.start(); tm.begin(); ...
if (box.clear_left || (box.x + box.getWidth() > c.getExtents().width &&
if (box.getStyle().isClearLeft() || (box.x + box.getWidth() > c.getExtents().width &&
private static void positionBoxLeft(Context c, Box box) { //Uu.p("positionBoxLeft()"); //Uu.dump_stack(); //Uu.p("calling the new float routine"); //Uu.p("starting box = " + box); BlockFormattingContext bfc = c.getBlockFormattingContext(); Box floater = bfc.newGetLeftFloatX...
if (box.clear_right || (box.x < 0 &&
if (box.getStyle().isClearRight() || (box.x < 0 &&
private static void positionBoxRight(Context c, Box box) { BlockFormattingContext bfc = c.getBlockFormattingContext(); Box floater = bfc.getRightFloatX(box); if (floater == null) { // Uu.p("floaters are null"); // Uu.p("extents = " + c.getExtents().width); box.x...
box.floated = true;
public static void setupFloat(Context c, Box box) { if (ContentUtil.isFloated(c.getCurrentStyle())) { //Uu.p("==== setup float ===="); //Uu.dump_stack(); IdentValue floatVal = c.getCurrentStyle().getIdent(CSSName.FLOAT); if (floatVal == IdentValue.NONE) { ...
public void alignToStaticEquivalent() {
private void alignToStaticEquivalent() {
public void alignToStaticEquivalent() { this.y = staticEquivalent.getAbsY() - getAbsY(); setAbsY(staticEquivalent.getAbsY()); }
if (isStyled() && getStyle().isAbsolute() && getStyle().isTopAuto() && getStyle().isBottomAuto()) { alignToStaticEquivalent(); }
public void calcCanvasLocation() { LineBox lineBox = getLineBox(); if (lineBox == null) { Box parent = getParent(); if (parent != null) { setAbsX(parent.getAbsX() + parent.tx + this.x); setAbsY(parent.getAbsY() + parent.ty + this.y); } els...
log.info("Received:" + numMessages);
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { while (count < numMessages) { Message m = getMessa...
idm.stop();
public void test1() throws Exception { IdManager idm = new IdManager("test_counter", 1000, pm); int blockSize = 37; long nextLow = Long.MIN_VALUE; for (int i = 0; i < 1000; i++) { IdBlock block = idm.getIdBlock(blockSize); assertTr...
public void stop() throws Exception
public synchronized void stop() throws Exception
public void stop() throws Exception { //NOOP }
started = false;
public void stop() throws Exception { //NOOP }
public void addFirst(Object obj, int priority)
public boolean addFirst(Object obj, int priority)
public void addFirst(Object obj, int priority) { Node node = deques[priority].addFirst(obj); lookUp.put(obj, node); }
Node node = deques[priority].addFirst(obj); lookUp.put(obj, node);
return deques[priority].addFirst(obj);
public void addFirst(Object obj, int priority) { Node node = deques[priority].addFirst(obj); lookUp.put(obj, node); }
public void addLast(Object obj, int priority)
public boolean addLast(Object obj, int priority)
public void addLast(Object obj, int priority) { Node node = deques[priority].addLast(obj); lookUp.put(obj, node); }
Node node = deques[priority].addLast(obj); lookUp.put(obj, node);
return deques[priority].addLast(obj);
public void addLast(Object obj, int priority) { Node node = deques[priority].addLast(obj); lookUp.put(obj, node); }
throws BadLocationException, NotImplementedException
throws BadLocationException
public int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) throws BadLocationException, NotImplementedException { return 0; // TODO: Implement me. }
return 0;
return rootView.getNextVisualPositionFrom(pos, b, getVisibleEditorRect(), direction, biasRet);
public int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) throws BadLocationException, NotImplementedException { return 0; // TODO: Implement me. }
throws NotImplementedException
protected void uninstallKeyboardActions() { // FIXME: Uninstall keyboard actions here. }
Point pt = c.modelToView(offs+1).getLocation();
Point pt = null; try { pt = c.modelToView(offs+1).getLocation(); } catch(BadLocationException ble) { return offset; }
public static final int getPositionBelow(JTextComponent c, int offset, int x) throws BadLocationException { int offs = getRowEnd(c, offset); if(offs == -1) return -1; // Effectively calculates the y value of the previous line. Point pt = c.modelToView(offs+1).getLocation(); pt.x = x; ...
consumer.cancelMessage(messageID);
consumer.cancelDelivery(messageID);
protected void cancel(long messageID, int consumerID) throws JMSException { if (trace) { log.trace(this + " processing cancel for message " + messageID + " from consumer " + consumerID); } ServerConsumerEndpoint consumer = getConsumerEndpoint(consumerID); if (consumer == null) { throw n...
throw new JBossJMSException("Failed to create internal transaction", e);
throw new MessagingJMSException("Failed to create internal transaction", e);
protected void sendMessage(JBossMessage jbm, Transaction tx) throws JMSException { // The JMSDestination header must already have been set for each message JBossDestination jbDest = (JBossDestination)jbm.getJMSDestination(); if (jbDest == null) { throw new IllegalStateException("JMSDest...
throw new JBossJMSException(msg);
throw new MessagingJMSException(msg);
protected void sendMessage(JBossMessage jbm, Transaction tx) throws JMSException { // The JMSDestination header must already have been set for each message JBossDestination jbDest = (JBossDestination)jbm.getJMSDestination(); if (jbDest == null) { throw new IllegalStateException("JMSDest...
throw new JBossJMSException("Failed to send message", t);
throw new MessagingJMSException("Failed to send message", t);
protected void sendMessage(JBossMessage jbm, Transaction tx) throws JMSException { // The JMSDestination header must already have been set for each message JBossDestination jbDest = (JBossDestination)jbm.getJMSDestination(); if (jbDest == null) { throw new IllegalStateException("JMSDest...
Transaction tx = null; try
if (request.getRequestType() == TransactionRequest.ONE_PHASE_COMMIT_REQUEST)
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 (request.getRequestType() == TransactionRequest.ONE_PHASE_COMMIT_REQUEST)
if (trace) { log.trace("One phase commit request received"); } Transaction tx = null; try { tx = tr.createTransaction(); processCommit(request.getState(), tx); tx.commit(); } catch (Throwable t)
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 (trace) { log.trace("one phase commit request received"); } tx = tr.createTransaction(); processCommit(request.getState(), tx); tx.commit();
log.error("Exception occured", t); if (tx != null) { try { tx.rollback(); } catch (Exception e) { log.error("Failed to rollback tx", e); } } throw new MessagingTransactionRolledBackException("Transaction was rolled back.", t);
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
else if (request.getRequestType() == TransactionRequest.ONE_PHASE_ROLLBACK_REQUEST)
} else if (request.getRequestType() == TransactionRequest.ONE_PHASE_ROLLBACK_REQUEST) { if (trace) { log.trace("One phase rollback request received"); } cancelDeliveriesForTransaction(request.getState()); } else if (request.getRequestType() == TransactionRequest.TWO_PHASE_PREPARE_REQUEST) { if (trace) { log.trace("Tw...
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 (trace) { log.trace("one phase rollback request received"); } cancelDeliveriesForTransaction(request.getState()); } else if (request.getRequestType() == TransactionRequest.TWO_PHASE_PREPARE_REQUEST) { 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...
else if (request.getRequestType() == TransactionRequest.TWO_PHASE_COMMIT_REQUEST) { if (trace) { log.trace("two phase commit commit request received"); } tx = tr.getPreparedTx(request.getXid()); if (trace) { log.trace("committing " + tx); }
catch (Throwable t) { log.error("Exception occured", t); if (tx != null) { try { tx.rollback(); } catch (Exception e) { log.error("Failed to rollback tx", e); } } throw new MessagingTransactionRolledBackException("Transaction was rolled back.", t); } } else if (request.getRequestType() == TransactionRequest.TWO_PHASE_C...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
else if (request.getRequestType() == TransactionRequest.TWO_PHASE_ROLLBACK_REQUEST)
catch (Throwable t)
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...