rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
v.setParent(this);
v.setParent(null);
public void setView(View v) { if (view != null) view.setParent(null); if (v != null) v.setParent(this); view = v; }
public int viewToModel(float x, float y, Shape a, Position.Bias b)
public int viewToModel(float x, float y, Shape a, Position.Bias[] b)
public int viewToModel(float x, float y, Shape a, Position.Bias b) { return view.viewToModel(x, y, a, b); }
setView(factory.create(elem));
View view = factory.create(elem); setView(view);
protected void modelChanged() { if (textComponent == null || rootView == null) return; ViewFactory factory = rootView.getViewFactory(); if (factory == null) return; Document doc = textComponent.getDocument(); if (doc == null) return; installDocumentListeners(); Element elem = do...
view.setParent(rootView);
protected final void setView(View view) { rootView.setView(view); }
catch(NotBoundException e) { log.info("Cannot lookup " + name + ", the server is probably shut down already"); return; }
public static void main(String[] args) throws Exception { String host = System.getProperty("test.bind.address"); if (host == null) { host = "localhost"; } int index; String serverIndex = System.getProperty("test.server.index"); if (serverIndex == null) { ...
if (ContentUtil.isListItem(style)) {
if (ContentUtil.isListItem(c.getCurrentStyle())) {
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res...
Border margin = block.getMarginWidth(c, width);
Border margin = block.getMarginWidth();
public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box.DONE) { height += c.getCanvas().getHeight(); } Border margin = block.getMarginWidth(c, width); Rectan...
ServerManagement.deInit();
public void tearDown() throws Exception { ServerManagement.undeployTopic("Topic"); ServerManagement.undeployTopic("Topic2"); ServerManagement.undeployQueue("Queue"); ServerManagement.deInit(); super.tearDown(); }
Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return; } u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { node = node.getParentNode(); } if (panel.getContext().getRenderingContext().getLayoutFactory().isLink(node)) { u.p("clicked on ...
public void mousePressed(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return; } u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { ...
Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return;
Element elem = box.getRealElement(); if(elem == null) return; if (panel.getContext().getRenderingContext().getLayoutFactory().isLink(elem)) { linkClicked(box,evt);
public void mouseReleased(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return; } u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { ...
u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { node = node.getParentNode(); } if (panel.getContext().getRenderingContext().getLayoutFactory().isLink(node)) { u.p("clicked on a link"); box.clicked = true; box.color = new Color(255, 0, 0); panel.repaint()...
public void mouseReleased(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return; } u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { ...
if (tableBox.columnCell != null) {
if (tableBox.columnCell != null && tableBox.columnCell[col] != null) {
private static void fixHeights(TableBox tableBox, int borderSpacingVertical) { tableBox.height += borderSpacingVertical; for (Iterator tci = tableBox.getChildIterator(); tci.hasNext();) { Object tc = tci.next(); if (tc instanceof RowBox) { RowBox row = (RowBox) tc;...
InlineBox ib = findInlineBox(evt);
Box ib = findBox(evt);
public void mouseEntered( MouseEvent evt ) { InlineBox ib = findInlineBox(evt); restyle(ib); }
InlineBox ib = findInlineBox(evt);
Box ib = findBox(evt);
public void mouseExited( MouseEvent evt ) { InlineBox ib = findInlineBox(evt); restyle(ib); }
InlineBox ib = findInlineBox(evt);
Box ib = findBox(evt);
public void mouseMoved( MouseEvent evt ) { InlineBox ib = findInlineBox(evt); restyle(ib); }
private void restyle(InlineBox ib) {
private void restyle(Box ib) {
private void restyle(InlineBox ib) { if(prev == ib) { return; } if(ib == null) panel.hovered_element = null; else panel.hovered_element = ib.getRealElement(); // if moved out of the old block then unstyle it if(prev != null) { boolean restyled = panel....
valid = new Boolean
valid = Boolean.valueOf
public boolean selfTest() { if (valid == null) { valid = new Boolean (DIGEST0.equals(Util.toString(new RipeMD160().digest()))); } return valid.booleanValue(); }
case FieldExpression.DUE_DATE: Date dueDate = (Date) value; for (Iterator iterator = steps.iterator(); iterator.hasNext();) { SimpleStep step = (SimpleStep) iterator.next(); if (this.compareDate(step.getDueDate(), dueDate, operator)) { expressionResult = true; break; } } break;
private boolean checkExpression(long entryId, FieldExpression expression) { Object value = expression.getValue(); int operator = expression.getOperator(); int field = expression.getField(); int context = expression.getContext(); Long id = new Long(entryId); if (context == F...
this.setStarted(false); this.sessionEndpoint.connectionEndpoint.receivers.remove(id); this.sessionEndpoint.consumers.remove(id);
remove();
public void close() throws JMSException { if (log.isTraceEnabled()) { log.trace(this.id + " close"); } this.setStarted(false); this.sessionEndpoint.connectionEndpoint.receivers.remove(id); this.sessionEndpoint.consumers.remove(id); }
if (log.isTraceEnabled()) log.trace(this.id + " received " + routable);
public Delivery handle(DeliveryObserver observer, Routable routable) { // deliver the message on a different thread than the core thread that brought it here if (log.isTraceEnabled()) log.trace(this.id + " received " + routable); Delivery delivery = null; try { Message message = ro...
if (log.isTraceEnabled()) { log.trace("queueing the message " + message + " for delivery"); } threadPool.execute(new DeliveryRunnable(callbackHandler, message, log));
synchronized (waiting) { if (started) { if (log.isTraceEnabled()) { log.trace("queueing the message " + message + " for delivery"); } threadPool.execute(new DeliveryRunnable(callbackHandler, message, log)); } else { if (log.isTraceEnabled()) { log.trace("Adding message to the waiting list"); } waiting.addLast(messa...
public Delivery handle(DeliveryObserver observer, Routable routable) { // deliver the message on a different thread than the core thread that brought it here if (log.isTraceEnabled()) log.trace(this.id + " received " + routable); Delivery delivery = null; try { Message message = ro...
localServer.start("all");
localServer.start("all", true);
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...
return "TextContent:\nStyle: " + _style + "\nText: " + _sb.toString();
return "TextContent: " + _sb.toString();
public String toString() { return "TextContent:\nStyle: " + _style + "\nText: " + _sb.toString(); }
ms = new PagingMessageStore("s60");
ms = new SimpleMessageStore("s60");
public void setUp() throws Exception { super.setUp(); ms = new PagingMessageStore("s60"); channel = new SimpleChannel(1, ms); // the state accepts reliable messages state = new ChannelState(channel, persistenceManagerDelegate, true, true, 100, 20, 10); log.debug("setup done"); ...
box.absolute = true;
box.setAbsolute(true);
public static void setupAbsolute( Context c, Box box ) { String position = getPosition( c, box ); if ( position.equals( "absolute" ) ) { if ( c.css.hasProperty( box.node, "right", false ) ) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
addInitailAction();
addInitialActions();
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; if(descriptor != null) { this.descriptor = descriptor; addInitailAction(); addSteps()...
setGridEnabled(true); setGridSize(6); setTolerance(2);
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; if(descriptor != null) { this.descriptor = descriptor; addInitailAction(); addSteps()...
System.out.println("createPortView " + object);
protected PortView createPortView(Object object, CellMapper mapper) { return new CustomPortView(object, this, mapper); }
transientVars.put("currentSteps", Collections.unmodifiableCollection(currentSteps));
transientVars.put("currentSteps", new ArrayList(currentSteps));
private Step createNewCurrentStep(ResultDescriptor theResult, WorkflowEntry entry, WorkflowStore store, int actionId, Step currentStep, long[] previousIds, Map transientVars, PropertySet ps) throws WorkflowException { try { int nextStep = theResult.getStep(); if (nextStep == -1) { ...
HashMap args = new HashMap(function.getArgs());
Map args = new HashMap(function.getArgs());
protected void executeFunction(FunctionDescriptor function, Map transientVars, PropertySet ps) throws WorkflowException { if (function != null) { String type = function.getType(); HashMap args = new HashMap(function.getArgs()); for (Iterator iterator = args.entrySet().iterato...
if (passesConditions(wf.getGlobalConditions(), Collections.unmodifiableMap(transientVars), ps, s.getId()) && passesConditions(conditions, Collections.unmodifiableMap(transientVars), ps, s.getId())) {
if (passesConditions(wf.getGlobalConditions(), new HashMap(transientVars), ps, s.getId()) && passesConditions(conditions, new HashMap(transientVars), ps, s.getId())) {
protected List getAvailableActionsForStep(WorkflowDescriptor wf, Step step, Map transientVars, PropertySet ps) throws WorkflowException { List l = new ArrayList(); StepDescriptor s = wf.getStep(step.getStepId()); if (s == null) { log.warn("getAvailableActionsForStep called for non-ex...
result = new Boolean(passesConditions(wf.getGlobalConditions(), Collections.unmodifiableMap(transientVars), ps, stepId) && passesConditions(conditions, Collections.unmodifiableMap(transientVars), ps, stepId));
result = new Boolean(passesConditions(wf.getGlobalConditions(), new HashMap(transientVars), ps, stepId) && passesConditions(conditions, new HashMap(transientVars), ps, stepId));
private boolean isActionAvailable(ActionDescriptor action, Map transientVars, PropertySet ps, int stepId) throws WorkflowException { if (action == null) { return false; } WorkflowDescriptor wf = getWorkflowDescriptorForAction(action); Map cache = (Map) stateCache.get(); ...
transientVars.put("currentSteps", Collections.unmodifiableCollection(currentSteps));
transientVars.put("currentSteps", new ArrayList(currentSteps));
protected void populateTransientMap(WorkflowEntry entry, Map transientVars, List registers, Integer actionId, Collection currentSteps) throws WorkflowException { transientVars.put("context", context); transientVars.put("entry", entry); transientVars.put("store", getPersistence()); transi...
Map unmodifiableTransients = Collections.unmodifiableMap(transientVars);
Map unmodifiableTransients = new HashMap(transientVars);
protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();...
finally { if (this.cc != null) { try { cc.close(); } catch (JMSException e) { log.error("Failed to close connection consumer", e); } } }
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { String prodName = null; Integer msgCount = null; ...
if (log.isTraceEnabled()) { log.trace("closed"); }
if (trace) { log.trace("closed"); }
protected synchronized void closed() throws Throwable { state = CLOSED; if (log.isTraceEnabled()) { log.trace("closed"); } }
if (log.isTraceEnabled()) { log.trace("No children"); }
if (trace) { log.trace("No children"); }
protected void maintainRelatives(Invocation invocation) { HierarchicalState state = ((DelegateSupport)invocation.getTargetObject()).getState(); //We use a clone to avoid a deadlock where requests //are made to close parent and child concurrently Set clone = n...
assertTrue("Expected external-permission permA in step 1 not found", workflow.getSecurityPermissions(workflowId).contains("permA"));
assertTrue("Expected external-permission permA in step 1 not found", workflow.getSecurityPermissions(workflowId, null).contains("permA"));
public void testExampleWorkflow() throws Exception { WorkflowQuery query; String workflowName = getWorkflowName(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 100)); long workflowId = workflow.initialize(workflowName, 100, n...
ps.setInt(1, WorkflowEntry.SUSPENDED);
ps.setInt(1, state);
public void setEntryState(long id, int state) throws StoreException { Connection conn = null; Statement stmt = null; try { conn = ds.getConnection(); String sql = "UPDATE " + entryTable + " SET " + entryState + " = ? WHERE " + entryId + " = ?"; PreparedStatement...
if (connected) throw new IllegalStateException("Already connected");
public void setAllowUserInteraction(boolean allow) { allowUserInteraction = allow; }
String[] family = c.css.getStringArrayProperty(el,"font-family");
String[] families = c.css.getStringArrayProperty(el,"font-family");
public static Font getElementFont(Context c, Element el) { // TODO: need to discuss what sort of caching should be going on here, because relative // datatypes like EM and EX depend in part on the 'current' font for an element (PWW 14/08/04) //u.p("testing node: " + e); Font f = c.getGraphics().getFont(); ...
f = c.getFontResolver().resolveFont(c,family,size,weight,style);
f = c.getFontResolver().resolveFont(c,families,size,weight,style);
public static Font getElementFont(Context c, Element el) { // TODO: need to discuss what sort of caching should be going on here, because relative // datatypes like EM and EX depend in part on the 'current' font for an element (PWW 14/08/04) //u.p("testing node: " + e); Font f = c.getGraphics().getFont(); ...
private DescriptorFactory() {
public DescriptorFactory() {
private DescriptorFactory() { }
public SplitDescriptor createSplitDescriptor(Element split) { return new SplitDescriptor(split);
public SplitDescriptor createSplitDescriptor() { return new SplitDescriptor();
public SplitDescriptor createSplitDescriptor(Element split) { return new SplitDescriptor(split); }
public StepDescriptor createStepDescriptor(Element step, AbstractDescriptor parent) { return new StepDescriptor(step, parent);
public StepDescriptor createStepDescriptor() { return new StepDescriptor();
public StepDescriptor createStepDescriptor(Element step, AbstractDescriptor parent) { return new StepDescriptor(step, parent); }
public ValidatorDescriptor createValidatorDescriptor(Element validator) { return new ValidatorDescriptor(validator);
public ValidatorDescriptor createValidatorDescriptor() { return new ValidatorDescriptor();
public ValidatorDescriptor createValidatorDescriptor(Element validator) { return new ValidatorDescriptor(validator); }
finally { activationCount.decrement(); }
public void run() { try { if (log.isTraceEnabled()) { log.trace("Consumer Activation"); } consumerDelegate.activate(); } catch(Throwable t) { log.error("Consumer activation failed", t); if (t.getCause() != null) { ...
activationCount = new SynchronizedInt(0);
public MessageCallbackHandler(boolean isCC, int ackMode, Executor executor, Executor pooledExecutor) { buffer = new SynchronousChannel(); isConnectionConsumer = isCC; receiverLock = new Object(); this.ackMode = ackMode; this.onMessageExecutor = executor; ...
{ pooledExecutor.execute(new ConsumerActivationRunnable());
{ pooledExecutor.execute(new ConsumerActivationRunnable()); activationCount.increment();
protected void activateConsumer() throws JMSException { //We execute this on a separate thread to avoid the case where the asynch delivery //arrives before we have returned from the synch call, which would //cause us to lose the message try { pooledExecutor.execute(new Consum...
while (activationCount.get() != 0) { Thread.yield(); }
public synchronized void close() { closed = true; stopReceiver(); // TODO Get rid of this (http://jira.jboss.org/jira/browse/JBMESSAGING-92) try { // unregister this callback handler and stop the callback server client.removeListener(this); lo...
Uu.p("resolved URI to: " + uri);
public ImageResource getImageResource(String uri) { ImageResource ir = null; uri = resolveURI(uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is still valid if (ir == null) { InputStream is = null; try { URLConne...
setOpaque(true);
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { FileView v = getFileView(getFileChooser()); File f = (File) value; setText(v.getName(f)); setIcon(v.getIcon(f)); if (isSelected) { setBack...
selectedIndex = 0;
selected = filters[0];
protected FilterComboBoxModel() { filters = new FileFilter[1]; filters[0] = getAcceptAllFileFilter(getFileChooser()); selectedIndex = 0; }
if (selectedIndex >= 0) return filters[selectedIndex]; return null;
return selected;
public Object getSelectedItem() { if (selectedIndex >= 0) return filters[selectedIndex]; return null; }
selectedIndex = -1; FileFilter selected = (FileFilter) e.getNewValue(); for (int i = 0; i < filters.length; i++) if (filters[i].equals(selected)) selectedIndex = i;
JFileChooser fc = getFileChooser(); FileFilter[] choosableFilters = fc.getChoosableFileFilters(); filters = choosableFilters; fireContentsChanged(this, 0, filters.length); selected = e.getNewValue();
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JFileChooser.FILE_FILTER_CHANGED_PROPERTY)) { selectedIndex = -1; FileFilter selected = (FileFilter) e.getNewValue(); for (int i = 0; i < filters.length; i++) if (filters[i].equals...
getFileChooser().setFileFilter((FileFilter) filter);
if (filter != null) { selected = filter; fireContentsChanged(this, -1, -1); }
public void setSelectedItem(Object filter) { // change the filter in the file chooser and let the property change // event trigger the change to the selected item getFileChooser().setFileFilter((FileFilter) filter); }
return super.getListCellRendererComponent(list, filter.getDescription(), index, isSelected, cellHasFocus);
setText(filter.getDescription()); return this;
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { FileFilter filter = (FileFilter) value; return super.getListCellRendererComponent(list, filter.getDescription(), index, isSelected, cellHasFocus); }
bottomPanel = new JPanel(new GridLayout(3, 2)); buttonPanel = new JPanel();
public MetalFileChooserUI(JFileChooser filechooser) { super(filechooser); }
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { return null; }
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); setText(s); setOpaque(true); if (isSelected) { setBackground(list.getSelectionBackground()); setForeground(list.getSelectionForeground()); } else { setBackground(l...
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { return null; // TODO } // getListCellRendererComponent()
this.filechooser = b;
public BasicFileChooserUI(JFileChooser b) { this.filechooser = b; }
checkMod();
public boolean hasNext() { checkMod(); return (next != null); }
checkMod();
public boolean hasPrevious() { checkMod(); return (previous != null); }
public T remove(int index)
public boolean remove(Object o)
public T remove(int index) { checkBoundsExclusive(index); Entry<T> e = getEntry(index); removeEntry(e); return e.data; }
checkBoundsExclusive(index); Entry<T> e = getEntry(index); removeEntry(e); return e.data;
Entry<T> e = first; while (e != null) { if (equals(o, e.data)) { removeEntry(e); return true; } e = e.next; } return false;
public T remove(int index) { checkBoundsExclusive(index); Entry<T> e = getEntry(index); removeEntry(e); return e.data; }
log.trace("Correlation id bytes:" + m6.getJMSCorrelationIDAsBytes());
public void testJMSDestination() throws Exception { Message m1 = queueProducerSession.createMessage(); //Test with correlation id containing a message id final String messageID = "ID:812739812378"; m1.setJMSCorrelationID(messageID); queueProducer.send(m1); Message m2 = qu...
public abstract BigInteger getPrivateExponent();
BigInteger getPrivateExponent();
public abstract BigInteger getPrivateExponent();
case CSSPrimitiveValue.CSS_EMS: case CSSPrimitiveValue.CSS_EXS: absVal = relVal * base; break;
public float getFloatValueRelative(float base) { float relVal = new Float(getCssTextClean(_domCSSValue)).floatValue(); if (ValueConstants.isAbsoluteUnit(cssValue())) { return relVal; } float absVal = 0F; switch (cssSACPrimitiveValueType()) { case CSSPrimitive...
else if (elem.getNodeType() == elem.TEXT_NODE) {
else if (elem.getNodeType() == Node.TEXT_NODE) {
public Layout getLayout(Context c, Node elem) { //u.p("getting layout for node: " + elem); // we have to do the inputs manually since they don't depend on // the element name if (elem.getNodeType() == elem.ELEMENT_NODE) { if (elem.getNodeName().equals("input")) { ...
BoxLayout block = new BoxLayout();
private void initializeLayouts() { InlineLayout inline = new InlineLayout(); BoxLayout block = new BoxLayout(); addDisplayLayout("block", inline); addDisplayLayout("inline", inline); addDisplayLayout("list-item", inline); addDisplayLayout("none", inline); addCustomLa...
if (log.isTraceEnabled()) { log.trace("Attempting to add receiver to channel"); }
public boolean add(Receiver r) { boolean added = router.add(r); if (added) { deliver(); } return added; }
if (log.isTraceEnabled()){ log.trace("Removed state for routable"); }
public void deliver() { List messages = state.undelivered(null); for(Iterator i = messages.iterator(); i.hasNext(); ) { Routable r = (Routable)i.next(); state.remove(r); handleNoTx(null, r); } }
if (log.isTraceEnabled()){ log.trace("Added state"); }
private Delivery handleNoTx(DeliveryObserver sender, Routable r) { checkClosed(); if (r == null) { return null; } Set deliveries = router.handle(this, r); if (deliveries.isEmpty()) { // no receivers, receivers that don't accept the message or broken receivers ...
if (log.isTraceEnabled()) { log.trace("addAsfMessage"); }
if (trace) { log.trace("addAsfMessage"); }
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Message m = (...
String theConsumerID = (String)mi.getArguments()[1];
int theConsumerID = ((Integer)mi.getArguments()[1]).intValue();
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Message m = (...
if (theConsumerID == null) { throw new IllegalStateException("Cannot add a message without specifying receiverID"); }
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Message m = (...
if (log.isTraceEnabled()) { log.trace("createConnectionConsumer"); }
if (trace) { log.trace("createConnectionConsumer"); }
public Object handleCreateConnectionConsumer(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("createConnectionConsumer"); } MethodInvocation mi = (MethodInvocation)invocation; Destination dest = (Destination)mi.getArguments()[0]; String subscriptionNa...
if (log.isTraceEnabled()) { log.trace("getMessageListener"); }
if (trace) { log.trace("getMessageListener"); }
public Object handleGetMessageListener(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("getMessageListener"); } return sessionListener; }
if (log.isTraceEnabled()) { log.trace("run"); }
if (trace) { log.trace("run"); }
public Object handleRun(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("run"); } MethodInvocation mi = (MethodInvocation)invocation; SessionDelegate del = (SessionDelegate)mi.getTargetObject(); int ackMode = getSessionState(invocation).ge...
if (log.isTraceEnabled()) { log.trace("setMessageListener"); }
if (trace) { log.trace("setMessageListener"); }
public Object handleSetMessageListener(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("setMessageListener"); } MethodInvocation mi = (MethodInvocation)invocation; MessageListener listener = (MessageListener)mi.getArguments()[0]; if (listener ==...
ms = new PagingMessageStore("s14");
ms = new SimpleMessageStore("s14");
public void setUp() throws Exception { super.setUp(); ms = new PagingMessageStore("s14"); channel = new Queue(1, ms, pm, true, 100, 20, 10); tr.start(pm); }
MessageReference ref = store.getReference(m2.getJMSMessageID());
MessageReference ref = store.reference(m2.getJMSMessageID());
public void cancelTest() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProduc...
MessageReference ref = store.getReference(m2.getJMSMessageID());
MessageReference ref = store.reference(m2.getJMSMessageID());
public void testAutoAck1() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProduc...
MessageReference ref = store.getReference(m2.getJMSMessageID());
MessageReference ref = store.reference(m2.getJMSMessageID());
public void testAutoAck2() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProduc...
MessageReference ref = store.getReference(m2.getJMSMessageID());
MessageReference ref = store.reference(m2.getJMSMessageID()); ref.release();
public void testClientAck1() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr...
ref = store.getReference(m2.getJMSMessageID());
ref = store.reference(m2.getJMSMessageID());
public void testClientAck1() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr...
MessageReference ref = store.getReference(m2.getJMSMessageID());
MessageReference ref = store.reference(m2.getJMSMessageID()); ref.release();
public void testClientAck2() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr...
ref = store.getReference(m2.getJMSMessageID());
ref = store.reference(m2.getJMSMessageID());
public void testClientAck2() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr...
MessageReference ref = store.getReference(m2.getJMSMessageID());
MessageReference ref = store.reference(m2.getJMSMessageID()); ref.release();
public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr...
ref = store.getReference(m2.getJMSMessageID());
ref = store.reference(m2.getJMSMessageID()); ref.release();
public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr...
ref = store.getReference(m2.getJMSMessageID());
ref = store.reference(m2.getJMSMessageID());
public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr...
MessageReference ref = store.getReference(m2.getJMSMessageID());
MessageReference ref = store.reference(m2.getJMSMessageID()); ref.release();
public void testTransactionCommit() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); Mes...
ref = store.getReference(m2.getJMSMessageID());
ref = store.reference(m2.getJMSMessageID());
public void testTransactionCommit() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); Mes...
MessageReference ref = store.getReference(m2.getJMSMessageID());
MessageReference ref = store.reference(m2.getJMSMessageID()); ref.release();
public void testTransactionRollback() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); M...
ref = store.getReference(m3.getJMSMessageID());
ref = store.reference(m3.getJMSMessageID()); ref.release();
public void testTransactionRollback() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); M...
ref = store.getReference(m2.getJMSMessageID());
ref = store.reference(m2.getJMSMessageID());
public void testTransactionRollback() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); M...
lineHeight = FontUtil.lineHeight(c);
lineHeight = FontUtil.lineHeight(c, new_inline);
public static int getBaselineOffset(Context c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; int leading; //int xheight; int baselineOffset; if (new_inline instanceof InlineTextBox) { // should be the metrics of the fo...
log.info("Removing ref " + pair.ref + " in tx");
protected void handleBeforeCommit1PC(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { log.info("Before commit 1pc: I have " + refsToAdd.size() + " refs to add and " + refsToRemove.size() + " refs to remove"); //TODO - A slight optimisation - it's possible we have refs refe...
log.info("Removing ref: " + ref);
public void removeReference(long channelID, MessageReference ref, Transaction tx) throws Exception { if (tx != null) { //In a tx so we just add the ref in the tx in memory for now TransactionCallback callback = getCallback(tx); callback.addReferenceToRemove(channelID, ref); ...
r = new MRIDTransformationRule(); r.addSrc(new MRIDRule("(.+)\\.(.+)", ".+", null)); r.addDest(new MRIDRule("$o1", "$o2-$m0", null)); assertEquals(ModuleRevisionId.newInstance("apache", "commons-client", "1.0"), r.transform(ModuleRevisionId.newInstance("apache.commons", "client", "1.0"))); assertEquals(ModuleRevisionI...
public void testTransformation() { MRIDTransformationRule r = new MRIDTransformationRule(); r.addSrc(new MRIDRule("apache", "commons.+", null)); r.addDest(new MRIDRule("$m0", "$m0", null)); assertEquals(ModuleRevisionId.newInstance("commons-client", "commons-client", "1.0"), ...
public boolean getTransacted()
public boolean getTransacted() throws JMSException
public boolean getTransacted() { log.warn("getTransacted should not be handled at the server endpoint"); return false; }