rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if ( haveBorders ) {
/*if ( haveBorders ) {
private void calcBorders( CalculatedStyle style ) { // HACK: may need to remove this check if sizes can change dynamically on resize (patrick) if ( haveBorders ) { return; } if ( style == null ) { throw new XRRuntimeException( "cant calc borders with no style" ); ...
} if ( style == null ) { throw new XRRuntimeException( "cant calc borders with no style" );
}*/ if (style == null) { throw new XRRuntimeException("cant calc borders with no style");
private void calcBorders( CalculatedStyle style ) { // HACK: may need to remove this check if sizes can change dynamically on resize (patrick) if ( haveBorders ) { return; } if ( style == null ) { throw new XRRuntimeException( "cant calc borders with no style" ); ...
if ((!block.auto_height && !parent.auto_height) || (!block.auto_width && !block.auto_width) || (block.absolute || block.fixed || block.floated || block.relative)) {
if ((!block.getStyle().isAutoHeight() && !parent.getStyle().isAutoHeight()) || (!block.getStyle().isAutoWidth() && !parent.getStyle().isAutoWidth()) || (block.getStyle().isPostionedOrFloated())) {
public static void checkExceeds(Box block) { Box parent = block.getParent(); if (parent != null) { // FIXME Not right, for example // <div style="height: 3in; width: 1in;"> // <div> // <div style="height 5in; width: 1in;"> // </div> ...
block.setMarginTopOverride(0f);
block.getStyle().setMarginTopOverride(0f);
private static void checkPageBreakBefore(Context c, Box block) { if (c.isPrint()) { if ((c.isPendingPageBreak() || c.getCurrentStyle().propertyByName(CSSName.PAGE_BREAK_BEFORE).isIdent(IdentValue.ALWAYS))) { block.moveToNextPage(c, false); block.set...
if (tx == null) { done = true; }
public void acknowledge(Transaction tx) throws Throwable { observer.acknowledge(this, tx); }
public void handleEvent(AWTEvent e) { Unsafe.debug("handleEvent(" + e + ")");
public void handleEvent(AWTEvent event) { Unsafe.debug("handleEvent(" + event + ")"); final int id = event.getID(); switch (id) { case PaintEvent.PAINT: case PaintEvent.UPDATE: { final Graphics g = getGraphics(); if (g != null) { if (id == PaintEvent.PAINT) { ((Component)component).paint(g); } else { ((Component)comp...
public void handleEvent(AWTEvent e) { Unsafe.debug("handleEvent(" + e + ")"); // log.debug("handleEvent(" + e + ")"); }
Unsafe.debug("setVisible(" + visible + ")");
public void setVisible(boolean visible) { if (visible) { paintAWTComponent(); } }
return getContext().newContextInstance(extents);
Context result = getContext().newContextInstance(extents); result.setInteractive(isInteractive()); return result;
private 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(); ...
{ synchronized (ref) { super.add(ref, tx); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " to database non-transactionally" : " in transaction: " + tx)); } pm.addReference(channelID, ref, tx); } if (tx != null) { addAddReferenceCallback(tx); if (log.isTraceEnabled()...
{ super.add(ref, tx); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " to database non-transactionally" : " in transaction: " + tx)); } pm.addReference(channelID, ref, tx);
public void add(MessageReference ref, Transaction tx) throws Throwable { //We synchronize on the ref to prevent a message being removed from memory //and failing on attempting to remove from db, because it tries after the message //is added to memory but before it's been added to db synchronize...
addAddReferenceCallback(tx); if (log.isTraceEnabled()) { log.trace("added an Add callback to transaction " + tx); }
public void add(MessageReference ref, Transaction tx) throws Throwable { //We synchronize on the ref to prevent a message being removed from memory //and failing on attempting to remove from db, because it tries after the message //is added to memory but before it's been added to db synchronize...
MessageReference ref = messageStore.getReference(messageID); ref.acquireReference(); Delivery del = new SimpleDelivery(channel, ref); deliveries.put(del.getReference().getMessageID(), del);
if (ids.add(messageID)) { MessageReference ref = messageStore.getReference(messageID); messageRefs.addFirst(ref, ref.getPriority()); ref.acquireReference(); }
public void load() throws Exception { List refs = pm.messageRefs(storeID, channelID); Iterator iter = refs.iterator(); while (iter.hasNext()) { String messageID = (String)iter.next(); MessageReference ref = messageStore.getReference(messageID); messageRefs.addLast(...
{ throw new NotYetImplementedException();
{ if (delegate != null) delegate.acknowledgeSession();
public void acknowledge() throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
public void clearBody() throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
properties.clear();
public void clearProperties() throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
Object value = properties.get(name); if (value == null) return Boolean.valueOf(null).booleanValue(); if (value instanceof Boolean) return ((Boolean) value).booleanValue(); else if (value instanceof String) return Boolean.valueOf((String) value).booleanValue(); else throw new MessageFormatException("Invalid conversion"...
public boolean getBooleanProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
Object value = properties.get(name); if (value == null) throw new NumberFormatException("Message property '" + name + "' not set."); if (value instanceof Byte) return ((Byte) value).byteValue(); else if (value instanceof String) return Byte.parseByte((String) value); else throw new MessageFormatException("Invalid conv...
public byte getByteProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
Object value = properties.get(name); if (value == null) return Double.valueOf(null).doubleValue(); if (value instanceof Float) return ((Float) value).doubleValue(); else if (value instanceof Double) return ((Double) value).doubleValue(); else if (value instanceof String) return Double.parseDouble((String) value); else...
public double getDoubleProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
Object value = properties.get(name); if (value == null) return Float.valueOf(null).floatValue(); if (value instanceof Float) return ((Float) value).floatValue(); else if (value instanceof String) return Float.parseFloat((String) value); else throw new MessageFormatException("Invalid conversion");
public float getFloatProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
Object value = properties.get(name); if (value == null) throw new NumberFormatException("Message property '" + name + "' not set."); if (value instanceof Byte) return ((Byte) value).intValue(); else if (value instanceof Short) return ((Short) value).intValue(); else if (value instanceof Integer) return ((Integer) valu...
public int getIntProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
Object value = properties.get(name); if (value == null) throw new NumberFormatException("Message property '" + name + "' not set."); if (value instanceof Byte) return ((Byte) value).longValue(); else if (value instanceof Short) return ((Short) value).longValue(); else if (value instanceof Integer) return ((Integer) va...
public long getLongProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
Object value = properties.get(name); return value;
public Object getObjectProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
Enumeration names = Collections.enumeration(properties.keySet()); return names;
public Enumeration getPropertyNames() throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
Object value = properties.get(name); if (value == null) throw new NumberFormatException("Message property '" + name + "' not set."); if (value instanceof Byte) return ((Byte) value).shortValue(); else if (value instanceof Short) return ((Short) value).shortValue(); else if (value instanceof String) return Short.parseS...
public short getShortProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
Object value = properties.get(name); if (value == null) return null; if (value instanceof Boolean) return ((Boolean) value).toString(); else if (value instanceof Byte) return ((Byte) value).toString(); else if (value instanceof Short) return ((Short) value).toString(); else if (value instanceof Integer) return ((Integ...
public String getStringProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
return properties.containsKey(name);
public boolean propertyExists(String name) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Boolean b = Primitives.valueOf(value); checkProperty(name, b); properties.put(name, b);
public void setBooleanProperty(String name, boolean value) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Byte b = new Byte(value); checkProperty(name, b); properties.put(name, b);
public void setByteProperty(String name, byte value) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Double d = new Double(value); checkProperty(name, d); properties.put(name, d);
public void setDoubleProperty(String name, double value) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Float f = new Float(value); checkProperty(name, f); properties.put(name, f);
public void setFloatProperty(String name, float value) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Integer i = new Integer(value); checkProperty(name, i); properties.put(name, i);
public void setIntProperty(String name, int value) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Long l = new Long(value); checkProperty(name, l); properties.put(name, l);
public void setLongProperty(String name, long value) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); checkProperty(name, value); if (value instanceof Boolean) properties.put(name, value); else if (value instanceof Byte) properties.put(name, value); else if (value instanceof Short) properties.put(name, value); else if (value inst...
public void setObjectProperty(String name, Object value) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Short s = new Short(value); checkProperty(name, s); properties.put(name, s);
public void setShortProperty(String name, short value) throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); checkProperty(name, value); this.properties.put(name, value);
public void setStringProperty(String name, String value) throws JMSException { throw new NotYetImplementedException(); }
JMSRemotingConnection remotingConnection, Version versionToUse,
JMSRemotingConnection remotingConnection, ConsolidatedRemotingConnectionListener remotingConnectionListener, Version versionToUse,
public ConnectionState(int serverID, ConnectionDelegate delegate, JMSRemotingConnection remotingConnection, Version versionToUse, MessageIdGenerator gen) throws Exception { super(null, (DelegateSupport)delegate); if (log.isTraceEnabled()) { log.trace...
this.remotingConnectionListener = remotingConnectionListener; remotingConnectionListener.setConnectionState(this);
public ConnectionState(int serverID, ConnectionDelegate delegate, JMSRemotingConnection remotingConnection, Version versionToUse, MessageIdGenerator gen) throws Exception { super(null, (DelegateSupport)delegate); if (log.isTraceEnabled()) { log.trace...
public void handleConnectionException(Throwable t, Client client)
public synchronized void handleConnectionException(Throwable t, Client client)
public void handleConnectionException(Throwable t, Client client) { String remotingSessionID = client.getSessionId(); if (t instanceof ClientDisconnectedException) { // This is OK if (log.isTraceEnabled()) { log.trace(this + " notified that client " + client + " has disconnected");...
ServerConnectionEndpoint ce = (ServerConnectionEndpoint)connections.remove(remotingSessionID); if (ce == null)
String jmsClientId = (String)sessions.get(remotingSessionID); if (jmsClientId != null)
public void handleConnectionException(Throwable t, Client client) { String remotingSessionID = client.getSessionId(); if (t instanceof ClientDisconnectedException) { // This is OK if (log.isTraceEnabled()) { log.trace(this + " notified that client " + client + " has disconnected");...
return; } log.warn(this + " handling client " + remotingSessionID + "'s remoting connection failure " + "(" + (t == null ? "null Throwable" : t.getClass().toString()) + ")", t); try { ce.close(); log.debug("cleared up state for connection " + ce); } catch (JMSException e) { log.error("Failed to close connection", e);...
log.warn(this + " handling client " + remotingSessionID + "'s remoting connection failure " + "(" + (t == null ? "null Throwable" : t.getClass().toString()) + ")", t); Map endpoints = (Map)jmsClients.get(jmsClientId); if (endpoints != null) { Iterator iter = endpoints.entrySet().iterator(); while (iter.hasNext()) ...
public void handleConnectionException(Throwable t, Client client) { String remotingSessionID = client.getSessionId(); if (t instanceof ClientDisconnectedException) { // This is OK if (log.isTraceEnabled()) { log.trace(this + " notified that client " + client + " has disconnected");...
public void registerConnection(String remotingClientSessionID, ServerConnectionEndpoint endpoint)
public synchronized void registerConnection(String jmsClientId, String remotingClientSessionID, ServerConnectionEndpoint endpoint)
public void registerConnection(String remotingClientSessionID, ServerConnectionEndpoint endpoint) { connections.put(remotingClientSessionID, endpoint); log.debug("registered connection " + endpoint + " as " + Util.guidToString(remotingClientSessionID)); }
connections.put(remotingClientSessionID, endpoint);
Map endpoints = (Map)jmsClients.get(jmsClientId); if (endpoints == null) { endpoints = new HashMap(); jmsClients.put(jmsClientId, endpoints); } endpoints.put(remotingClientSessionID, endpoint); sessions.put(remotingClientSessionID, jmsClientId);
public void registerConnection(String remotingClientSessionID, ServerConnectionEndpoint endpoint) { connections.put(remotingClientSessionID, endpoint); log.debug("registered connection " + endpoint + " as " + Util.guidToString(remotingClientSessionID)); }
public ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID)
public synchronized ServerConnectionEndpoint unregisterConnection(String jmsClientId, String remotingClientSessionID)
public ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID) { ServerConnectionEndpoint e = (ServerConnectionEndpoint)connections.remove(remotingClientSessionID); log.debug("unregistered connection " + e + " with remoting session ID " + Util.guidToString(rem...
ServerConnectionEndpoint e = (ServerConnectionEndpoint)connections.remove(remotingClientSessionID); log.debug("unregistered connection " + e + " with remoting session ID " + Util.guidToString(remotingClientSessionID)); return e;
Map endpoints = (Map)jmsClients.get(jmsClientId); if (endpoints != null) { ServerConnectionEndpoint e = (ServerConnectionEndpoint)endpoints.remove(remotingClientSessionID); log.debug("unregistered connection " + e + " with remoting session ID " + Util.guidToString(remotingClientSessionID)); if (endpoints.isEmpty()) ...
public ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID) { ServerConnectionEndpoint e = (ServerConnectionEndpoint)connections.remove(remotingClientSessionID); log.debug("unregistered connection " + e + " with remoting session ID " + Util.guidToString(rem...
setDocument(x.loadDocument(filename),new File(filename).toURL());
URL url = new File(filename).toURL(); setDocument(loadDocument(url),url);
public void setDocument(String filename) throws Exception { setDocument(x.loadDocument(filename),new File(filename).toURL()); }
public static void layoutContent(LayoutContext c, Box box, List contentList) {
public static void layoutContent(LayoutContext c, BlockBox box, List contentList) {
public static void layoutContent(LayoutContext c, Box box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); Lin...
FloatedBlockBox floater = LayoutUtil.generateFloated(
FloatLayoutResult layoutResult = LayoutUtil.generateFloated(
private static int processOutOfFlowContent(LayoutContext c, Content content, LineBox current, int available, List pendingFloats) { int result = 0; c.pushStyle(content.getStyle()); if (content instanceof AbsolutelyPositionedContent) { BlockBox abs = LayoutUtil.generateAbsolute(c, cont...
if (!floater.isPending()) { result = floater.getWidth();
if (layoutResult.isPending()) { pendingFloats.add(layoutResult); } else { result = layoutResult.getBlock().getWidth(); current.addNonFlowContent(layoutResult.getBlock());
private static int processOutOfFlowContent(LayoutContext c, Content content, LineBox current, int available, List pendingFloats) { int result = 0; c.pushStyle(content.getStyle()); if (content instanceof AbsolutelyPositionedContent) { BlockBox abs = LayoutUtil.generateAbsolute(c, cont...
current.addNonFlowContent(floater);
private static int processOutOfFlowContent(LayoutContext c, Content content, LineBox current, int available, List pendingFloats) { int result = 0; c.pushStyle(content.getStyle()); if (content instanceof AbsolutelyPositionedContent) { BlockBox abs = LayoutUtil.generateAbsolute(c, cont...
if (pendingFloats.size() > 0) { FloatedBlockBox pending0 = (FloatedBlockBox)pendingFloats.get(0); pending0.y += current.height; c.getBlockFormattingContext().floatPending(c, pendingFloats); }
private static void saveLine(final LineBox current, LineBox previous, final LayoutContext c, Box block, int minHeight, final int maxAvailableWidth, List elementStack, List pendingFloats, boolean hasFirstLinePCs, ...
if (pendingFloats.size() > 0) { for (Iterator i = pendingFloats.iterator(); i.hasNext(); ) { FloatLayoutResult layoutResult = (FloatLayoutResult)i.next(); FloatedBlockBox floater = LayoutUtil.generateFloated(c, layoutResult.getPendingContent(), maxAvailableWidth, current, null).getBlock(); current.addNonFlowContent(flo...
private static void saveLine(final LineBox current, LineBox previous, final LayoutContext c, Box block, int minHeight, final int maxAvailableWidth, List elementStack, List pendingFloats, boolean hasFirstLinePCs, ...
if (log.isTraceEnabled()) { log.trace("creating " + (tl != null ? "recoverable " : "non-recoverable ") + "channel[" + channelID + "]"); }
if (trace) { log.trace("creating " + (tl != null ? "recoverable " : "non-recoverable ") + "channel[" + channelID + "]"); }
protected ChannelSupport(Serializable channelID, MessageStore ms, TransactionLog tl, boolean acceptReliableMessages) { if (log.isTraceEnabled()) { log.trace("creating " + (tl != null ? "recoverable " : "non-recoverable ") + "chan...
if (ms == null) { throw new IllegalArgumentException("MessageStore is null"); }
protected ChannelSupport(Serializable channelID, MessageStore ms, TransactionLog tl, boolean acceptReliableMessages) { if (log.isTraceEnabled()) { log.trace("creating " + (tl != null ? "recoverable " : "non-recoverable ") + "chan...
if (log.isTraceEnabled()){ log.trace("acknowledge " + d + (tx == null ? " non-transactionally" : " transactionally in " + tx)); }
if (trace){ log.trace("acknowledge " + d + (tx == null ? " non-transactionally" : " transactionally in " + tx)); }
public void acknowledge(Delivery d, Transaction tx) { if (tx == null) { // acknowledge non transactionally acknowledgeNoTx(d); return; } if (log.isTraceEnabled()){ log.trace("acknowledge " + d + (tx == null ? " non-transactionally" : " transactionally in " + tx)); } ...
if (log.isTraceEnabled()){ log.trace(this + " acknowledging non transactionally " + d); }
if (trace){ log.trace(this + " acknowledging non transactionally " + d); }
private void acknowledgeNoTx(Delivery d) { checkClosed(); if (log.isTraceEnabled()){ log.trace(this + " acknowledging non transactionally " + d); } try { //We remove the delivery from the state state.acknowledge(d); if (log.isTraceEnabled()) { log.trace(this + "...
if (log.isTraceEnabled()) { log.trace(this + " delivery " + d + " completed and forgotten"); }
if (trace) { log.trace(this + " delivery " + d + " completed and forgotten"); }
private void acknowledgeNoTx(Delivery d) { checkClosed(); if (log.isTraceEnabled()){ log.trace(this + " acknowledging non transactionally " + d); } try { //We remove the delivery from the state state.acknowledge(d); if (log.isTraceEnabled()) { log.trace(this + "...
if (log.isTraceEnabled()) { log.trace(this + ": attempting to add receiver " + r); }
if (trace) { log.trace(this + ": attempting to add receiver " + r); }
public boolean add(Receiver r) { if (log.isTraceEnabled()) { log.trace(this + ": attempting to add receiver " + r); } boolean added = router.add(r); if (log.isTraceEnabled()) { log.trace("receiver " + r + (added ? "" : " NOT") + " added"); } return added; }
if (log.isTraceEnabled()) { log.trace("receiver " + r + (added ? "" : " NOT") + " added"); }
if (trace) { log.trace("receiver " + r + (added ? "" : " NOT") + " added"); }
public boolean add(Receiver r) { if (log.isTraceEnabled()) { log.trace(this + ": attempting to add receiver " + r); } boolean added = router.add(r); if (log.isTraceEnabled()) { log.trace("receiver " + r + (added ? "" : " NOT") + " added"); } return added; }
if (log.isTraceEnabled()) { log.trace("cancel " + d); }
if (trace) { log.trace("cancel " + d); }
public void cancel(Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("cancel " + d); } state.cancelDelivery(d); if (log.isTraceEnabled()) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } }
if (log.isTraceEnabled()) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); }
if (trace) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); }
public void cancel(Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("cancel " + d); } state.cancelDelivery(d); if (log.isTraceEnabled()) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } }
if (log.isTraceEnabled()){ log.trace(r != null ? r + " requested delivery on " + this : "generic delivery requested on " + this); }
if (trace){ log.trace(r != null ? r + " requested delivery on " + this : "generic delivery requested on " + this); }
public boolean deliver(Receiver r) { if (log.isTraceEnabled()){ log.trace(r != null ? r + " requested delivery on " + this : "generic delivery requested on " + this); } checkClosed(); try { return deliver(this, r); } catch (Throwable t) { log.error("Fa...
if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); }
if (trace){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); }
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { checkClosed(); if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } //...
if (log.isTraceEnabled()){ log.trace("adding " + ref + " to state " + (tx == null ? "non-transactionally" : "in transaction: " + tx) ); }
if (trace){ log.trace("adding " + ref + " to state " + (tx == null ? "non-transactionally" : "in transaction: " + tx) ); }
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { checkClosed(); if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } //...
if (log.isTraceEnabled()) { log.trace(this + (removed ? " removed ":" did NOT remove ") + r); }
if (trace) { log.trace(this + (removed ? " removed ":" did NOT remove ") + r); }
public boolean remove(Receiver r) { boolean removed = router.remove(r); if (log.isTraceEnabled()) { log.trace(this + (removed ? " removed ":" did NOT remove ") + r); } return removed; }
CalculatedStyle style = c.getCurrentStyle();
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc...
Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null);
Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor()); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor());
public void testChannelShareNP_Transactional() throws Throwable { Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); Message[] msgs = ne...
} try { sp.getPersistenceManager().removeAllMessageData(name);
void addCoreDestination(Destination jmsDestination) throws JMSException { JBossDestination d = (JBossDestination)jmsDestination; String name = d.getName(); boolean isQueue = d.isQueue(); Distributor c = getCoreDestination(isQueue, name); if (c != null) { throw new JMSException...
Set durableSubs = sp.getStateManager().loadDurableSubscriptionsForTopic(name); Iterator iter = durableSubs.iterator(); while (iter.hasNext()) { DurableSubscription sub = (DurableSubscription)iter.next(); try { sub.load(); } catch (Exception e) { JMSException e2 = new JMSException("Failed to load durable subscription s...
void addCoreDestination(Destination jmsDestination) throws JMSException { JBossDestination d = (JBossDestination)jmsDestination; String name = d.getName(); boolean isQueue = d.isQueue(); Distributor c = getCoreDestination(isQueue, name); if (c != null) { throw new JMSException...
catch (Exception e) { log.error("Failed to remove message data", e); }
void addCoreDestination(Destination jmsDestination) throws JMSException { JBossDestination d = (JBossDestination)jmsDestination; String name = d.getName(); boolean isQueue = d.isQueue(); Distributor c = getCoreDestination(isQueue, name); if (c != null) { throw new JMSException...
ServerPeer sp = destinationManager.getServerPeer(); try { sp.getPersistenceManager().removeAllMessageData(name); } catch (Exception e) { log.error("Failed to remove message data", e); }
Distributor removeCoreDestination(boolean isQueue, String name) { ServerPeer sp = destinationManager.getServerPeer(); try { sp.getPersistenceManager().removeAllMessageData(name); //FIXME - Also need to remove any message refs stored in memory for this destination ...
new Object[] {"JMS"}, new String[] {"java.lang.String"});
new Object[] { REMOTING_JMS_SUBSYSTEM }, new String[] { "java.lang.String" });
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j...
new Object[] {"JMS", handler}, new String[] {"java.lang.String", "org.jboss.remoting.ServerInvocationHandler"});
new Object[] { REMOTING_JMS_SUBSYSTEM, handler}, new String[] { "java.lang.String", "org.jboss.remoting.ServerInvocationHandler"});
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j...
new Object[] {"JMS"},
new Object[] { REMOTING_JMS_SUBSYSTEM },
public synchronized void stopService() throws Exception { if (!started) { return; } log.debug(this + " stopping"); started = false; removeRecoverable(); // remove the JMS subsystem invocation handler getServer().invoke(connectorName, "removeInvocationHandler", ...
protected boolean prepare(ImageObserver observer) {
public boolean prepare(ImageObserver observer) {
protected boolean prepare(ImageObserver observer) { if (!productionStarted) { loadInitImage(false, observer); } else if ((availableInfo & ImageObserver.ERROR) != 0) { if (observer != null) { observer.imageUpdate(this, availableInfo, -1, -1, -1, -1); } } else { new ForwardingProducer(observer).startProduc...
log.info("Message received");
public void testNonPersistentSend() throws Exception { prepareMessage(message); queueProd.setDeliveryMode(DeliveryMode.NON_PERSISTENT); queueProd.send(message); Message r = queueCons.receive(); assertEquals(DeliveryMode.NON_PERSISTENT, r.getJMSDeliveryMode()); assertEquivalent(r, Deli...
public ServerConnectionDelegate(ServerPeer serverPeer)
public ServerConnectionDelegate(ServerPeer serverPeer, String clientID)
public ServerConnectionDelegate(ServerPeer serverPeer) { this.serverPeer = serverPeer; sessionIDCounter = 0; sessions = new HashMap(); temporaryDestinations = new HashSet(); started = false; connectionID = new GUID().toString(); receivers = new ConcurrentReaderHashMap(); }
this.clientID = clientID;
public ServerConnectionDelegate(ServerPeer serverPeer) { this.serverPeer = serverPeer; sessionIDCounter = 0; sessions = new HashMap(); temporaryDestinations = new HashSet(); started = false; connectionID = new GUID().toString(); receivers = new ConcurrentReaderHashMap(); }
m.setJMSMessageID(generateMessageID());
void sendMessage(Message m) throws JMSException { //The JMSDestination header must already have been set for each message JBossDestination jmsDestination = (JBossDestination)m.getJMSDestination(); if (jmsDestination == null) { throw new IllegalStateException("JMSDestination header not s...
if (log.isTraceEnabled()) log.trace("Transacted so returning");
void sendMessage(Message m) throws JMSException { //The JMSDestination header must already have been set for each message JBossDestination jmsDestination = (JBossDestination)m.getJMSDestination(); if (jmsDestination == null) { throw new IllegalStateException("JMSDestination header not s...
if (log.isTraceEnabled()) { log.trace("setClientID:" + clientID); } if (this.clientID != null) { throw new IllegalStateException("Cannot set clientID, already set as:" + clientID); }
public void setClientID(String clientID) { this.clientID = clientID; }
throw new JMSException("Cannot find durable subscription with name " +
throw new InvalidDestinationException("Cannot find durable subscription with name " +
public void unsubscribe(String subscriptionName) throws JMSException { DurableSubscriptionHolder subscription = this.serverPeer.getClientManager(). removeDurableSubscription(this.clientID, subscriptionName); if (subscription == null) { throw new JMSException("Cannot find durable s...
return getCheckBoxIcon();
return new CheckBoxMenuItemIcon();
public static Icon getCheckBoxMenuItemIcon() { return getCheckBoxIcon(); }
public ClientBrowserDelegate(String objectID, InvokerLocator locator)
public ClientBrowserDelegate(String objectID)
public ClientBrowserDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); }
super(objectID, locator);
super(objectID);
public ClientBrowserDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); }
return (Serializable)in.readObject();
byte b = in.readByte(); if (b == NULL) { return null; } else { return (Serializable)in.readObject(); }
protected Serializable readPayloadExternal(ObjectInput in) throws IOException, ClassNotFoundException { return (Serializable)in.readObject(); }
out.writeObject(payload);
if (payload == null) { out.writeByte(NULL); } else { out.writeByte(OBJECT); out.writeObject(payload); }
protected void writePayloadExternal(ObjectOutput out) throws IOException { out.writeObject(payload); }
lineBounds.translate(direction == LEFT ? fr.width : -fr.width, 0); xoff += fr.width;
int extraWidth = 0; if (direction == LEFT) { extraWidth = fr.x + fr.width - xoff; } else { extraWidth = (bfc.getWidth() - fr.x) - xoff; } lineBounds.translate(direction == LEFT ? extraWidth : -extraWidth, 0); xoff += extraWidth;
private int getFloatDistance(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, List floatsList, int direction) { if (floatsList.size() == 0) { return 0; } int xoff = 0; Point offset = bfc.getOffset(); Rectangle lineBounds = line.getBounds(...
if (log.isTraceEnabled()) { log.trace("ConnectionInterceptor, methodName=" + methodName); }
if (log.isTraceEnabled()) { log.trace("handling " + methodName); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.i...
if (log.isTraceEnabled()) { log.trace("setting the resource manager, ending the invocation"); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.i...
String propName = (String) i.next();
PropertyDeclaration pd = (PropertyDeclaration)i.next(); String propName = pd.getPropertyName();
public java.util.Map getCascadedPropertiesMap(Element e) { CascadedStyle cs = _matcher.getCascadedStyle(e, false);//this is only for debug, I think java.util.LinkedHashMap props = new java.util.LinkedHashMap(); for (java.util.Iterator i = cs.getMatchedPropertyDeclarations(); i.hasNext();) { ...
JMSInvocationHandler handler = (JMSInvocationHandler)Proxy.getInvocationHandler(cons); MessageCallbackHandler messageHandler = (MessageCallbackHandler)handler.getMetaData().getMetaData(JMSAdvisor.JMS, JMSAdvisor.CALLBACK_HANDLER); messageHandler.close();
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; JMSInvocationHandler handler = (JMSInvocationHandler)Proxy.getInvocationHandler(cons); MessageCallbackHandler messageHandler = (MessageCallbackHandler)handler....
sess.close();
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; JMSInvocationHandler handler = (JMSInvocationHandler)Proxy.getInvocationHandler(cons); MessageCallbackHandler messageHandler = (MessageCallbackHandler)handler....
Message m = cons.receive(-1);
Message m = null; if (!closed) { m = cons.receive(-1); }
public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); outer: while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } b...
Message m = cons.receive(0);
Message m = null; if (!closed) { m = cons.receive(0); }
public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); outer: while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } b...
log.error("Caught Throwable in processing run()", t); try { close(); } catch (Throwable ignore) { if (trace) { log.trace("Ignoring error removing consumer from connection " + this, ignore); } }
log.error("Caught Throwable in processing run()", t);
public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); outer: while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } b...
return _childContent;
return Collections.unmodifiableList(_childContent);
public List getChildContent(Context c) { if (_childContent == null) { _childContent = makeChildContent(c); } return _childContent; }
Set destinations = (Set)sc.invoke(serverPeerObjectName, "getDestinations", new Object[0], new String[0]);
Set destinations = (Set)sc.getAttribute(serverPeerObjectName, "Destinations");
public void stopServerPeer() throws Exception { // if we don't find a ServerPeer instance registered under the serverPeerObjectName // ObjectName, we assume that the server was already stopped and we silently exit if (sc.query(serverPeerObjectName).isEmpty()) { log.warn("ServerPeer alre...
super("invalid flag " + f + " for conversion " + c);
super("Invalid flag " + f + " for conversion " + c); if (f == null) throw new NullPointerException("Null flag value passed to constructor.");
public FormatFlagsConversionMismatchException(String f, char c) { super("invalid flag " + f + " for conversion " + c); this.f = f; this.c = c; }
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); Color light = defaults.getColor("SplitPane.highlight"); Color dark = defaults.getColor("SplitPane.darkShadow");
Color light = UIManager.getColor("SplitPane.highlight"); Color dark = UIManager.getColor("SplitPane.darkShadow");
public BasicSplitPaneDivider createDefaultDivider() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); Color light = defaults.getColor("SplitPane.highlight"); Color dark = defaults.getColor("SplitPane.darkShadow"); return new MetalSplitPaneDivider(this, light, dark); }
setLayout(new MetalDividerLayout()); this.splitPane = super.splitPane; this.orientation = super.orientation;
public MetalSplitPaneDivider(MetalSplitPaneUI ui, Color light, Color dark) { super(ui); this.light = light; this.dark = dark; }
key.append(sel.getSelectorID()).append(":");
Mapper mapChild(Object e) { //Mapper childMapper = new Mapper(); java.util.List childAxes = new ArrayList(); java.util.HashMap pseudoSelectors = new java.util.HashMap(); java.util.List mappedSelectors = new java.util.LinkedList(); StringBuffer key = new Str...