rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
executor, null);
executor);
public void addTemporaryDestination(JBossDestination dest) throws JMSException { try { if (closed) { throw new IllegalStateException("Session is closed"); } if (!dest.isTemporary()) { throw new InvalidDestinationException("Destination:" + dest...
queuePostOffice.bindQueue(dest.getName(), dest.getName(), q);
queuePostOffice.bindQueue(dest.getName(), dest.getName(), null, q);
public void addTemporaryDestination(JBossDestination dest) throws JMSException { try { if (closed) { throw new IllegalStateException("Session is closed"); } if (!dest.isTemporary()) { throw new InvalidDestinationException("Destination:" + dest...
executor, selector);
executor);
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selectorString, boolean noLocal, String subscriptionName, ...
binding = topicPostOffice.bindQueue(new GUID().toString(), jmsDestination.getName(), q);
binding = topicPostOffice.bindQueue(new GUID().toString(), jmsDestination.getName(), selector, q);
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selectorString, boolean noLocal, String subscriptionName, ...
binding = topicPostOffice.bindQueue(name, jmsDestination.getName(), q);
binding = topicPostOffice.bindQueue(name, jmsDestination.getName(), selector, q);
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selectorString, boolean noLocal, String subscriptionName, ...
(selectorString == null && binding.getSelector() != null) || (binding.getSelector() == null && selectorString != null) || (binding.getSelector() != null && selectorString != null && !binding.getSelector().equals(selectorString));
(selectorString == null && filterString != null) || (filterString == null && selectorString != null) || (filterString != null && selectorString != null && !filterString.equals(selectorString));
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selectorString, boolean noLocal, String subscriptionName, ...
localServer.getServerPeer().setRemotingConnectionLeasePeriod(20000);
localServer.getServerPeer().setRemotingConnectionLeasePeriod(3000);
public void setUp() throws Exception { super.setUp(); // Start the local server localServer = new LocalTestServer(); // Start all the services locally localServer.start("all"); // This crash test is relying on a precise value of LeaseInterval, so we don't rely on // t...
assertNotNull(cm.getConnection(remotingSessionId));
assertTrue(cm.containsSession(remotingSessionId));
public void testClientCrash() throws Exception { InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue"); CreateClientOnSer...
Thread.sleep(60000);
Thread.sleep(15000);
public void testClientCrash() throws Exception { InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue"); CreateClientOnSer...
assertNull(cm.getConnection(remotingSessionId));
assertFalse(cm.containsSession(remotingSessionId));
public void testClientCrash() throws Exception { InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue"); CreateClientOnSer...
if (doTextDecorations) paintTextDecoration(style, c, line, start, width);
private void paint(RenderingContext c, LineBox line, InlineBox inline, int start, int width, int sides, boolean doTextDecorations) { Style style; if (line.isFirstLine || endStyle == null) {//e...
if (doTextDecorations) paintTextDecoration(style, c, line, start, width);
private void paint(RenderingContext c, LineBox line, InlineBox inline, int start, int width, int sides, boolean doTextDecorations) { Style style; if (line.isFirstLine || endStyle == null) {//e...
if (m != null) { m = processMessage(m); }
protected Message getMessage(long timeout) throws InterruptedException, JMSException { Message m = null; //If it's receiveNoWait then get the message directly if (timeout == -1) { waiting = false; m = getMessageNow(); } else { //ot...
return consumerDelegate.getMessageNow();
MessageDelegate del = (MessageDelegate)consumerDelegate.getMessageNow(); if (del != null) { return processMessage(del); } else { return null; }
protected Message getMessageNow() throws JMSException { return consumerDelegate.getMessageNow(); }
Message m = (Message)callback.getParameter();
MessageDelegate md = (MessageDelegate)callback.getParameter();
public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); //Note - ...
ClientDeliveryRunnable cdr = new ClientDeliveryRunnable(this, processMessage(m));
ClientDeliveryRunnable cdr = new ClientDeliveryRunnable(this, processMessage(md));
public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); //Note - ...
cancelMessage(m);
cancelMessage(md);
public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); //Note - ...
handled = buffer.offer(m, 0);
handled = buffer.offer(processMessage(md), 0);
public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); //Note - ...
log.info("Not handled!");
public synchronized void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } if (closed) { log.warn("Consumer is closed - ignoring message"); //Note - ...
protected Message processMessage(Message m)
protected Message processMessage(MessageDelegate del)
protected Message processMessage(Message m) { //We create a thin delegate to the message - which prevents it having to be //unnecessarily copied MessageDelegate del = JBossMessage.createThinDelegate((JBossMessage)m); //if this is the handler for a connection consumer we don't want to set ...
MessageDelegate del = JBossMessage.createThinDelegate((JBossMessage)m);
protected Message processMessage(Message m) { //We create a thin delegate to the message - which prevents it having to be //unnecessarily copied MessageDelegate del = JBossMessage.createThinDelegate((JBossMessage)m); //if this is the handler for a connection consumer we don't want to set ...
consumerID = in.readInt();
serverId = in.readInt(); consumerId = in.readInt();
public void read(DataInputStream in) throws Exception { consumerID = in.readInt(); int numMessages = in.readInt(); msgs = new ArrayList(numMessages); for (int i = 0; i < numMessages; i++) { byte type = in.readByte(); int deliveryCount = in.readInt...
out.writeInt(consumerID);
out.writeInt(serverId); out.writeInt(consumerId);
public void write(DataOutputStream out) throws Exception { out.writeInt(consumerID); out.writeInt(msgs.size()); Iterator iter = msgs.iterator(); while (iter.hasNext()) { MessageProxy mp = (MessageProxy)iter.next(); out.writeByte(mp.getMessage().ge...
paintRightPadding(c, line, ib, padX, margin, border, padding);
paintRightPadding(c, line, ib, padX, border, padding);
private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) { Tex...
Color background_color = BoxRendering.getBackgroundColor(c);
Color background_color = c.getCurrentStyle().getBackgroundColor();
public static void paintLeftPadding(Context c, LineBox line, InlineBox inline, int padX, Border margin, Border border, Border padding) { LineMetrics lm = FontUtil.getLineMetrics(c, inline); for (Iterator i = c.getInlineBorders().iterator(); i.hasNext();) { ((InlineBorder) i.next()).paint(c,...
public static void paintRightPadding(Context c, LineBox line, InlineBox inline, int padX, Border margin, Border border, Border padding) {
public static void paintRightPadding(Context c, LineBox line, InlineBox inline, int padX, Border border, Border padding) {
public static void paintRightPadding(Context c, LineBox line, InlineBox inline, int padX, Border margin, Border border, Border padding) { InlineBorder ib = (InlineBorder) c.getInlineBorders().removeLast(); for (Iterator i = c.getInlineBorders().iterator(); i.hasNext();) { ((InlineBorder) i....
final File tmp = File.createTempFile("jnode", "jartmp"); final FileOutputStream fos = new FileOutputStream(tmp);
pluginTmpFile = File.createTempFile("jnode", "jartmp"); final FileOutputStream fos = new FileOutputStream(pluginTmpFile);
private JarFile getJar(URL pluginUrl, byte[] pluginJarData) throws IOException { if (pluginJar == null) { final String protocol = (pluginUrl != null) ? pluginUrl.getProtocol() : ""; if (protocol.equals("file")) { pluginJar = new JarFile(pluginUrl.getFile()); } else if (OsUtils.isJNode()) { pluginJar = new...
pluginJar = new JarFile(tmp); tmp.deleteOnExit();
pluginJar = new JarFile(pluginTmpFile); pluginTmpFile.deleteOnExit();
private JarFile getJar(URL pluginUrl, byte[] pluginJarData) throws IOException { if (pluginJar == null) { final String protocol = (pluginUrl != null) ? pluginUrl.getProtocol() : ""; if (protocol.equals("file")) { pluginJar = new JarFile(pluginUrl.getFile()); } else if (OsUtils.isJNode()) { pluginJar = new...
currentLine.maybeTrimTrailingSpace(c);
public static void layoutContent(LayoutContext c, BlockBox box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); ...
int x = (bounds.width - size) / 2; int y = (bounds.height - size) / 2;
int x = bounds.x + (bounds.width - size) / 2; int y = (bounds.height - size) / 4;
public void paint(Graphics g) { super.paint(g); Rectangle bounds = getBounds(); int size = bounds.height / 4; int x = (bounds.width - size) / 2; int y = (bounds.height - size) / 2; ButtonModel m = getModel(); if (m.isArmed()) { x++; y++; } paintTriangle(g, x, y, size, ...
con.close();
if (con != null) { con.close(); }
private void closeConnection(Connection con) throws JMSException { try { con.close(); }catch(JMSException jmse) { log("Could not close connection " + con +" exception was " +jmse); throw jmse; } }
NodeList preFunctions = pre.getElementsByTagName("function");
List preFunctions = XMLUtil.getChildElements(pre, "function");
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ...
for (int k = 0; k < preFunctions.getLength(); k++) { Element preFunction = (Element) preFunctions.item(k);
for (int k = 0; k < preFunctions.size(); k++) { Element preFunction = (Element) preFunctions.get(k);
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ...
NodeList permissions = p.getElementsByTagName("permission");
List permissions = XMLUtil.getChildElements(p, "permission");
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ...
for (int i = 0; i < permissions.getLength(); i++) { Element permission = (Element) permissions.item(i);
for (int i = 0; i < permissions.size(); i++) { Element permission = (Element) permissions.get(i);
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ...
NodeList actions = a.getElementsByTagName("action");
List actions = XMLUtil.getChildElements(a, "action");
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ...
for (int i = 0; i < actions.getLength(); i++) { Element action = (Element) actions.item(i);
for (int i = 0; i < actions.size(); i++) { Element action = (Element) actions.get(i);
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ...
NodeList commonActions = a.getElementsByTagName("common-action");
List commonActions = XMLUtil.getChildElements(a, "common-action");
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ...
for (int i = 0; i < commonActions.getLength(); i++) { Element commonAction = (Element) commonActions.item(i);
for (int i = 0; i < commonActions.size(); i++) { Element commonAction = (Element) commonActions.get(i);
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ...
NodeList postFunctions = post.getElementsByTagName("function");
List postFunctions = XMLUtil.getChildElements(post, "function");
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ...
for (int k = 0; k < postFunctions.getLength(); k++) { Element postFunction = (Element) postFunctions.item(k);
for (int k = 0; k < postFunctions.size(); k++) { Element postFunction = (Element) postFunctions.get(k);
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList children ...
public PermissionDescriptor(Element permission) { init(permission);
public PermissionDescriptor() {
public PermissionDescriptor(Element permission) { init(permission); }
Font font = box.getStyle().getCalculatedStyle().getAWTFont(c);
Font font = box.getStyle().getFont(c);
private static void drawText(RenderingContext c, BlockBox box, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(box.list_count).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LATI...
JMSDispatcher.instance.registerTarget(new Integer(sessionID), sessionAdvised);
Integer iSessionID = new Integer(sessionID); serverPeer.addSession(iSessionID, ep); JMSDispatcher.instance.registerTarget(iSessionID, sessionAdvised);
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { log.debug("creating session " + (transacted ? "transacted" :"non tr...
ServerSessionEndpoint session = (ServerSessionEndpoint)sessions.get(new Integer(sessionState.getSessionId()));
ServerSessionEndpoint session = serverPeer.getSession(new Integer(sessionState.getSessionId()));
private void processTransaction(ClientTransaction txState, Transaction tx) throws Throwable { if (trace) { log.trace("processing transaction"); } synchronized (sessions) { for (Iterator i = txState.getSessionStates().iterator(); i.hasNext(); ) { SessionTxSta...
case FieldExpression.DUE_DATE: return stepDueDate;
private String fieldName(int field) { switch (field) { case FieldExpression.ACTION: // actionId return stepActionId; case FieldExpression.CALLER: return stepCaller; case FieldExpression.FINISH_DATE: return stepFinishDate; case FieldExpression.OWNER...
String left;
String left = fieldName(field);
private String queryComparison(WorkflowQuery query) { Object value = query.getValue(); int operator = query.getOperator(); int field = query.getField(); //int type = query.getType(); String oper; switch (operator) { case WorkflowQuery.EQUALS: oper = " = ";...
switch (field) { case WorkflowQuery.ACTION: left = stepActionId; break; case WorkflowQuery.CALLER: left = stepCaller; break; case WorkflowQuery.FINISH_DATE: left = stepFinishDate; break; case WorkflowQuery.OWNER: left = stepOwner; break; case WorkflowQuery.START_DATE: left = stepStartDate; break; case Workflo...
private String queryComparison(WorkflowQuery query) { Object value = query.getValue(); int operator = query.getOperator(); int field = query.getField(); //int type = query.getType(); String oper; switch (operator) { case WorkflowQuery.EQUALS: oper = " = ";...
public boolean cancel(Delivery d) throws Throwable
public void cancel(Delivery d) throws Throwable
public boolean cancel(Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("cancel " + d); } state.cancel(d); if (log.isTraceEnabled()) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } return true; }
state.cancel(d);
state.cancelDelivery(d);
public boolean cancel(Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("cancel " + d); } state.cancel(d); if (log.isTraceEnabled()) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } return true; }
return true;
public boolean cancel(Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("cancel " + d); } state.cancel(d); if (log.isTraceEnabled()) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } return true; }
return deliver(this, r);
checkClosed(); try { return deliver(this, r); } catch (Throwable t) { log.error("Failed to deliver message", t); return false; }
public boolean deliver(Receiver r) { if (log.isTraceEnabled()){ log.trace(r != null ? r + " requested delivery on " + this : "generic delivery requested on " + this); } return deliver(this, r); }
d = receiver.handle(this, ref, null); if (d != null && d.isCancelled()) { d = null; }
d = receiver.handle(this, ref, null);
private Delivery getDelivery(Receiver receiver, MessageReference ref) { Delivery d = null; if (receiver == null) { Set deliveries = router.handle(this, ref, null); if (deliveries.isEmpty()) { return null; } //Sani...
} if (d != null) { ref.incrementDeliveryCount(); }
}
private Delivery getDelivery(Receiver receiver, MessageReference ref) { Delivery d = null; if (receiver == null) { Set deliveries = router.handle(this, ref, null); if (deliveries.isEmpty()) { return null; } //Sani...
{
{ checkClosed();
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); if (...
if (tx == null) { Delivery del = push(null, ref); if (del == null) { ref.release(); } return del; } if (log.isTraceEnabled()){ log.trace("adding " + ref + " to state " + (tx == null ? "non-transactionally" : "in transaction: " + tx) ); }
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); if (...
state.add(ref, tx);
if (tx == null) { if (r.isReliable() && !state.acceptReliableMessages()) { log.error("Cannot handle reliable message " + r + " because the channel has a non-recoverable state!"); return null; } boolean first = state.addReference(ref); if (first) { deliver(this, null); } } else { if (log.isTraceEnabled())...
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); if (...
log.error("Failed to add message reference " + ref + " to state", t);
log.error("Failed to handle message", t); ref.release();
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); if (...
void addAsfMessage(MessageProxy m, int consumerID, long channelID, int maxDeliveries)
void addAsfMessage(MessageProxy m, int consumerID, long channelID, int maxDeliveries, SessionDelegate connectionConsumerSession)
void addAsfMessage(MessageProxy m, int consumerID, long channelID, int maxDeliveries) { delegate.addAsfMessage(m, consumerID, channelID, maxDeliveries); }
delegate.addAsfMessage(m, consumerID, channelID, maxDeliveries);
delegate.addAsfMessage(m, consumerID, channelID, maxDeliveries, connectionConsumerSession);
void addAsfMessage(MessageProxy m, int consumerID, long channelID, int maxDeliveries) { delegate.addAsfMessage(m, consumerID, channelID, maxDeliveries); }
Iterator mProps = matched.getMatchedPropertyDeclarations();
Iterator mProps = matched.getCascadedPropertyDeclarations();
private void derive(CascadedStyle matched) { if (matched == null) { return; }//nothing to derive Iterator mProps = matched.getMatchedPropertyDeclarations(); int i = 0; while (mProps.hasNext()) { PropertyDeclaration pd = (PropertyDeclaration) mProps.next(); ...
box.y = (int) c.getFloatingY();
public void floatBox(LayoutContext c, Layer layer, BlockFormattingContext bfc, FloatedBlockBox box) { box.y = (int) c.getFloatingY(); if (box.getStyle().isFloatedLeft()) { position(c, bfc, box, LEFT); save(box, layer, bfc, LEFT); } else if (box.getStyle().isFloatedRight())...
if (i != 0) { c.setFloatingY(0d); }
public void floatPending(LayoutContext c, Layer layer, BlockFormattingContext bfc, List pendingFloats) { if (pendingFloats.size() > 0) { for (int i = 0; i < pendingFloats.size(); i++) { if (i != 0) { c.setFloatingY(0d); } FloatedBlock...
for (Iterator i = leftFloats.iterator(); i.hasNext();) { BoxOffset boxOffset = (BoxOffset) i.next(); if (boxOffset.getBox().equals(floater)) { i.remove(); } } for (Iterator i = rightFloats.iterator(); i.hasNext();) { BoxOffset boxOffset = (BoxOffset) i.next(); if (boxOffset.getBox().equals(floater)) { i.remove(); } }
removeFloat(floater, getFloats(LEFT)); removeFloat(floater, getFloats(RIGHT));
public void removeFloat(FloatedBlockBox floater) { for (Iterator i = leftFloats.iterator(); i.hasNext();) { BoxOffset boxOffset = (BoxOffset) i.next(); if (boxOffset.getBox().equals(floater)) { i.remove(); } } for (Iterator i = rightFloats.iterato...
current.setManager(this); current.calcCanvasLocation(); current.calcChildLocations();
private void save(FloatedBlockBox current, Layer layer, BlockFormattingContext bfc, int direction) { Point p = bfc.getOffset(); getFloats(direction).add(new BoxOffset(current, p.x, p.y)); layer.addFloat(current, bfc); }
floater.setDrawingLayer(this);
public void addFloat(FloatedBlockBox floater, BlockFormattingContext bfc) { if (floats == null) { floats = new ArrayList(); } floats.add(floater); maybeAddMoveWithLayerFloat(floater, bfc); }
aa_key);
aa_key == null ? RenderingHints.VALUE_ANTIALIAS_DEFAULT : aa_key);
private static void drawGlyph(RenderingContext c, BlockBox box, CalculatedStyle style, IdentValue listStyle) { // save the old AntiAliasing setting, then force it on Object aa_key = c.getGraphics().getRenderingHint(RenderingHints.KEY_ANTIALIASING); c.getGraphics().setRenderingHint(R...
_data.getIvy().saveResolver(_data.getCache(), _module.getDescriptor(), resolver.getName());
_data.getIvy().saveResolver(_data.getCache(), _module.getDescriptor(), _module.getResolver().getName()); _data.getIvy().saveArtResolver(_data.getCache(), _module.getDescriptor(), _module.getArtifactResolver().getName());
public boolean loadData(String conf, boolean shouldBePublic) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver ...
if (child.isFixedDescendant()) { setFixedDescendant(true); }
public void propagateChildProperties(Box child) { if (child.isChildrenExceedBounds()) { setChildrenExceedBounds(true); } if (child.isFixedDescendant()) { setFixedDescendant(true); } }
if (log.isTraceEnabled()) { log.trace("In ServerConnectionDelegate.close()"); }
if (log.isTraceEnabled()) { log.trace("close()"); }
public void close() throws JMSException { if (log.isTraceEnabled()) { log.trace("In ServerConnectionDelegate.close()"); } DestinationManagerImpl dm = serverPeer.getDestinationManager(); Iterator iter = this.temporaryDestinations.iterator(); while (iter.hasNext()) { dm.removeT...
log.trace("In ServerConnectionDelegate.closing()");
log.trace("closing (noop)");
public void closing() throws JMSException { log.trace("In ServerConnectionDelegate.closing()"); //This currently does nothing }
if (log.isTraceEnabled()) { log.trace("creating session, transacted: " + transacted + " ackMode: " + acknowledgmentMode + " Xa:" + isXA); }
if (log.isTraceEnabled()) { log.trace("creating session, transacted=" + transacted + " ackMode=" + ToString.acknowledgmentMode(acknowledgmentMode) + " XA=" + isXA); }
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) { if (log.isTraceEnabled()) { log.trace("creating session, transacted: " + transacted + " ackMode: " + acknowledgmentMode + " Xa:" + isXA); } // create the dynami...
protected Message createMessage(int i) throws Exception
protected Message createMessage(byte i) throws Exception
protected Message createMessage(int i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossMapMessage m = new JBossMapMessage(new GUID().toString(), true, System.currentTimeMilli...
new GUID().toString(),
randInt().intValue(),
protected Message createMessage(int i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossMapMessage m = new JBossMapMessage(new GUID().toString(), true, System.currentTimeMilli...
t.getCaret().setDot(Math.min(t.getCaret().getDot() + 1, t.getDocument().getEndPosition() .getOffset()));
public void actionPerformed(ActionEvent event) { // first we filter the following events: // - control characters // - key events with the ALT modifier (FIXME: filter that too!) char c = event.getActionCommand().charAt(0); if (Character.isISOControl(c)) return; JTextComponent...
public ConditionDescriptor(Element function) { init(function);
public ConditionDescriptor() {
public ConditionDescriptor(Element function) { init(function); }
lock = new WriterPreferenceReadWriteLock();
public PointToMultipointRouter() { receivers = new ArrayList(); }
synchronized(receivers)
boolean acquired; try { lock.writeLock().acquire(); acquired = true; } catch (InterruptedException e) { throw new RuntimeException("Failed to obtain lock", e); } try
public boolean add(Receiver r) { synchronized(receivers) { if (receivers.contains(r)) { return false; } receivers.add(r); } return true; }
return true;
finally { if (acquired) { lock.writeLock().release(); } }
public boolean add(Receiver r) { synchronized(receivers) { if (receivers.contains(r)) { return false; } receivers.add(r); } return true; }
synchronized(receivers)
boolean acquired; try { lock.writeLock().acquire(); acquired = true; } catch (InterruptedException e) { throw new RuntimeException("Failed to obtain lock", e); } try
public void clear() { synchronized(receivers) { receivers.clear(); } }
finally { if (acquired) { lock.writeLock().release(); } }
public void clear() { synchronized(receivers) { receivers.clear(); } }
synchronized(receivers)
boolean acquired; try
public boolean contains(Receiver r) { synchronized(receivers) { return receivers.contains(r); } }
return receivers.contains(r);
lock.writeLock().acquire(); acquired = true; } catch (InterruptedException e) { throw new RuntimeException("Failed to obtain lock", e); } try { return receivers.contains(r); } finally { if (acquired) { lock.writeLock().release(); }
public boolean contains(Receiver r) { synchronized(receivers) { return receivers.contains(r); } }
synchronized(receivers)
boolean acquired; try
public Set handle(DeliveryObserver observer, Routable routable, Transaction tx) { Set deliveries = new HashSet(); // TODO synchronizing this is going to produce a bottleneck, do we really need to? synchronized(receivers) { for(Iterator i = receivers.iterator(); i.hasNext(); ) { ...
finally { if (acquired) { lock.readLock().release(); } }
public Set handle(DeliveryObserver observer, Routable routable, Transaction tx) { Set deliveries = new HashSet(); // TODO synchronizing this is going to produce a bottleneck, do we really need to? synchronized(receivers) { for(Iterator i = receivers.iterator(); i.hasNext(); ) { ...
synchronized(receivers)
boolean acquired; try { lock.writeLock().acquire(); acquired = true; } catch (InterruptedException e) { throw new RuntimeException("Failed to obtain lock", e); } try
public Iterator iterator() { synchronized(receivers) { return receivers.iterator(); } }
finally { if (acquired) { lock.writeLock().release(); } }
public Iterator iterator() { synchronized(receivers) { return receivers.iterator(); } }
synchronized(receivers)
boolean acquired; try { lock.writeLock().acquire(); acquired = true; } catch (InterruptedException e) { throw new RuntimeException("Failed to obtain lock", e); } try
public boolean remove(Receiver r) { synchronized(receivers) { return receivers.remove(r); } }
finally { if (acquired) { lock.writeLock().release(); } }
public boolean remove(Receiver r) { synchronized(receivers) { return receivers.remove(r); } }
this.drainDestination(connFactory, queue);
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); connFactory = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); conn = connFactory.createConnection(); ...
bodyWriteOnly = true;
public void clearBody() throws JMSException { content = new ArrayList(); position = 0; offset = 0; size = 0; super.clearBody(); }
if (messageReadWrite)
if (bodyWriteOnly)
public boolean readBoolean() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value...
if (messageReadWrite)
if (bodyWriteOnly)
public byte readByte() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is nu...
if (messageReadWrite)
if (bodyWriteOnly)
public int readBytes(byte[] value) throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object myObj = content.get(position); if (myObj == null) throw new NullPointerException("Value is null"); ...
if (messageReadWrite)
if (bodyWriteOnly)
public char readChar() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is nu...
if (messageReadWrite)
if (bodyWriteOnly)
public double readDouble() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value i...
if (messageReadWrite)
if (bodyWriteOnly)
public float readFloat() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is ...
if (messageReadWrite)
if (bodyWriteOnly)
public int readInt() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is null...
if (messageReadWrite)
if (bodyWriteOnly)
public long readLong() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); offset = 0; if (value == null) throw new NullPointerException("Value is nu...
if (messageReadWrite)
if (bodyWriteOnly)
public Object readObject() throws JMSException { if (messageReadWrite) throw new MessageNotReadableException("The message body is writeonly"); try { Object value = content.get(position); position++; offset = 0; return value; } catch (IndexOutOfBounds...