rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
queues[8] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[8] = office1.bindClusteredQueue("sub9", "topic2", queues[8]);
queues[8] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[8] = office1.bindClusteredQueue("sub9", "topic2", null, queues[8]);
protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t...
queues[9] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[9] = office1.bindClusteredQueue("sub10", "topic2", queues[9]);
queues[9] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[9] = office1.bindClusteredQueue("sub10", "topic2", null, queues[9]);
protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t...
queues[10] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[10] = office2.bindClusteredQueue("sub11", "topic2", queues[10]);
queues[10] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[10] = office2.bindClusteredQueue("sub11", "topic2", null, queues[10]);
protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t...
queues[11] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[11] = office2.bindClusteredQueue("sub12", "topic2", queues[11]);
queues[11] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[11] = office2.bindClusteredQueue("sub12", "topic2", null, queues[11]);
protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t...
queues[12] = new ClusteredQueue(im.getId(), ms, pm, true, true, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[12] = office2.bindClusteredQueue("sub13", "topic2", queues[12]);
queues[12] = new ClusteredQueue(im.getId(), ms, pm, true, true, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[12] = office2.bindClusteredQueue("sub13", "topic2", null, queues[12]);
protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t...
queues[13] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[13] = office1.bindClusteredQueue("sub14", "topic2", queues[13]);
queues[13] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[13] = office1.bindClusteredQueue("sub14", "topic2", null, queues[13]);
protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t...
queues[14] = new ClusteredQueue(im.getId(), ms, pm, true, true, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[14] = office1.bindClusteredQueue("sub15", "topic2", queues[14]);
queues[14] = new ClusteredQueue(im.getId(), ms, pm, true, true, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[14] = office1.bindClusteredQueue("sub15", "topic2", null, queues[14]);
protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t...
queues[15] = new ClusteredQueue(im.getId(), ms, pm, true, true, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[15] = office1.bindClusteredQueue("sub16", "topic2", queues[15]);
queues[15] = new ClusteredQueue(im.getId(), ms, pm, true, true, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[15] = office1.bindClusteredQueue("sub16", "topic2", null, queues[15]);
protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t...
queues[0] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[0] = office1.bindClusteredQueue("sub1", "topic1", queues[0]); queues[1] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null); bindings[1] = offi...
queues[0] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[0] = office1.bindClusteredQueue("sub1", "topic1", null, queues[0]); queues[1] = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get()); bindings[1] = office1.bi...
protected void clusteredTransactionalRoute(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { //Start two offices office1 = createClusteredPostOffice("node1", "testgroup"); office2 ...
tr, pm, 5000, 5000, routingPolicy, redistPolicy, 5000);
tr, pm, 5000, 5000, routingPolicy, redistPolicy, 1000);
protected ClusteredPostOffice createClusteredPostOffice(String nodeId, String groupName) throws Exception { RoutingPolicy routingPolicy = new FavourLocalRoutingPolicy(nodeId); RedistributionPolicy redistPolicy = new BasicRedistributionPolicy(nodeId); ClusteredPostOfficeImpl postOffice = ...
ClusteredQueue queue1 = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
ClusteredQueue queue1 = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testClusteredBindUnbind() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; try { //Start one office office1 = createClusteredPostOffice("node1...
office1.bindClusteredQueue("sub1", "topic1", queue1); ClusteredQueue queue2 = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
office1.bindClusteredQueue("sub1", "topic1", null, queue1); ClusteredQueue queue2 = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testClusteredBindUnbind() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; try { //Start one office office1 = createClusteredPostOffice("node1...
office1.bindClusteredQueue("sub2", "topic1", queue2);
office1.bindClusteredQueue("sub2", "topic1", null, queue2);
public final void testClusteredBindUnbind() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; try { //Start one office office1 = createClusteredPostOffice("node1...
ClusteredQueue queue3 = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
ClusteredQueue queue3 = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testClusteredBindUnbind() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; try { //Start one office office1 = createClusteredPostOffice("node1...
office2.bindClusteredQueue("sub3", "topic1", queue3);
office2.bindClusteredQueue("sub3", "topic1", null, queue3);
public final void testClusteredBindUnbind() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; try { //Start one office office1 = createClusteredPostOffice("node1...
ClusteredQueue queue4 = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
ClusteredQueue queue4 = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testClusteredBindUnbind() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; try { //Start one office office1 = createClusteredPostOffice("node1...
office2.bindClusteredQueue("sub4", "topic1", queue4);
office2.bindClusteredQueue("sub4", "topic1", null, queue4);
public final void testClusteredBindUnbind() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; try { //Start one office office1 = createClusteredPostOffice("node1...
ClusteredQueue queue5 = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
ClusteredQueue queue5 = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testClusteredBindUnbind() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; try { //Start one office office1 = createClusteredPostOffice("node1...
office3.bindClusteredQueue("sub5", "topic1", queue5);
office3.bindClusteredQueue("sub5", "topic1", null, queue5);
public final void testClusteredBindUnbind() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; try { //Start one office office1 = createClusteredPostOffice("node1...
ClusteredQueue queue6 = new ClusteredQueue(im.getId(), ms, pm, true, true, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
ClusteredQueue queue6 = new ClusteredQueue(im.getId(), ms, pm, true, true, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testClusteredBindUnbind() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; try { //Start one office office1 = createClusteredPostOffice("node1...
office1.bindClusteredQueue("sub6", "topic1", queue6); ClusteredQueue queue7 = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get(), null);
office1.bindClusteredQueue("sub6", "topic1", null, queue6); ClusteredQueue queue7 = new ClusteredQueue(im.getId(), ms, pm, true, false, 2000, 100, 100, (QueuedExecutor)pool.get());
public final void testClusteredBindUnbind() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; try { //Start one office office1 = createClusteredPostOffice("node1...
office1.bindClusteredQueue("sub7", "topic1", queue7);
office1.bindClusteredQueue("sub7", "topic1", null, queue7);
public final void testClusteredBindUnbind() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; try { //Start one office office1 = createClusteredPostOffice("node1...
public ClusteredQueue(long id, MessageStore ms, PersistenceManager pm, boolean acceptReliableMessages, boolean recoverable, int fullSize, int pageSize, int downCacheSize, QueuedExecutor executor, Filter filter)
public ClusteredQueue(long id, MessageStore ms, PersistenceManager pm, boolean acceptReliableMessages, boolean recoverable, int fullSize, int pageSize, int downCacheSize, QueuedExecutor executor)
public ClusteredQueue(long id, MessageStore ms, PersistenceManager pm, boolean acceptReliableMessages, boolean recoverable, int fullSize, int pageSize, int downCacheSize, QueuedExecutor executor, Filter filter) { super(id, ms, pm, acceptReliableMessages, recoverable, fullSize, pageSize, downCacheSi...
downCacheSize, executor, filter);
downCacheSize, executor);
public ClusteredQueue(long id, MessageStore ms, PersistenceManager pm, boolean acceptReliableMessages, boolean recoverable, int fullSize, int pageSize, int downCacheSize, QueuedExecutor executor, Filter filter) { super(id, ms, pm, acceptReliableMessages, recoverable, fullSize, pageSize, downCacheSi...
assertEquals(binding1.getQueueName(), binding2.getQueueName()); assertEquals(binding1.getSelector(), binding2.getSelector());
assertEquals(binding1.getQueueName(), binding2.getQueueName()); String selector1 = binding1.getFilter() != null ? binding1.getFilter().getFilterString() : null; String selector2 = binding2.getFilter() != null ? binding2.getFilter().getFilterString() : null; assertEquals(selector1, selector2);
protected void assertEquivalent(Binding binding1, Binding binding2) { assertEquals(binding1.getNodeId(), binding2.getNodeId()); assertEquals(binding1.getQueueName(), binding2.getQueueName()); assertEquals(binding1.getSelector(), binding2.getSelector()); assertEquals(binding1.getChannelId(...
assertEquals(new Integer(50000), ServerManagement.getAttribute(destObjectName, "FullSize")); assertEquals(new Integer(1000), ServerManagement.getAttribute(destObjectName, "PageSize"));
assertEquals(new Integer(75000), ServerManagement.getAttribute(destObjectName, "FullSize")); assertEquals(new Integer(2000), ServerManagement.getAttribute(destObjectName, "PageSize"));
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
assertEquals(50000, cd.getFullSize()); assertEquals(1000, cd.getPageSize());
assertEquals(75000, cd.getFullSize()); assertEquals(2000, cd.getPageSize());
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
assertEquals(new Integer(50000), ServerManagement.getAttribute(destObjectName, "FullSize"));
assertEquals(new Integer(75000), ServerManagement.getAttribute(destObjectName, "FullSize"));
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
assertEquals(new Integer(1000), ServerManagement.getAttribute(destObjectName, "PageSize"));
assertEquals(new Integer(2000), ServerManagement.getAttribute(destObjectName, "PageSize"));
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
ServerManagement.setAttribute(destObjectName, "FullSize", "51111"); assertEquals(new Integer(51111), ServerManagement.getAttribute(destObjectName, "FullSize")); ServerManagement.setAttribute(destObjectName, "PageSize", "1001"); assertEquals(new Integer(1001), ServerManagement.getAttribute(destObjectName, "PageSize"));
ServerManagement.setAttribute(destObjectName, "FullSize", "75111"); assertEquals(new Integer(75111), ServerManagement.getAttribute(destObjectName, "FullSize")); ServerManagement.setAttribute(destObjectName, "PageSize", "2001"); assertEquals(new Integer(2001), ServerManagement.getAttribute(destObjectName, "PageSize"));
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
assertEquals(51111, cd.getFullSize()); assertEquals(1001, cd.getPageSize());
assertEquals(75111, cd.getFullSize()); assertEquals(2001, cd.getPageSize());
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
public CascadedStyle getPseudoElementStyle(Element e, String pseudoElement) {
public CascadedStyle getPseudoElementStyle(Node node, String pseudoElement) { Element e = null; if (node.getNodeType() == Node.ELEMENT_NODE) { e = (Element) node; } else { e = (Element) node.getParentNode(); }
public CascadedStyle getPseudoElementStyle(Element e, String pseudoElement) { return _tbStyleMap.getPECascadedStyle(e, pseudoElement); }
public void loadProperties(File file) throws IOException { loadProperties(file, true);
public void loadProperties(URL url) throws IOException { loadProperties(url, true);
public void loadProperties(File file) throws IOException { loadProperties(file, true); }
browsers = new HashMap();
public ServerSessionDelegate(String sessionID, ServerConnectionDelegate connectionEndpoint) { this.sessionID = sessionID; this.connectionEndpoint = connectionEndpoint; producers = new HashMap(); consumers = new HashMap(); producerIDCounter = 0; consumerIDCounter = 0; server...
} if (dueDate != null) { buf.append(" due-date=\"").append(getDueDate()).append("\"");
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); StringBuffer buf = new StringBuffer(); buf.append("<unconditional-result"); if (hasId()) { buf.append(" id=\"").append(getId()).append("\""); } buf.append(" old-status=\"").ap...
public NamingException getException();
NamingException getException();
public NamingException getException();
public String[] getReferrals();
String[] getReferrals();
public String[] getReferrals();
throw new JobExecutionException("Error Executing trigger", (e.getRootCause() != null) ? e.getRootCause() : e, true);
throw new JobExecutionException("Error Executing trigger", (e.getRootCause() != null) ? (Exception)e.getRootCause() : e, true);
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { try { JobDataMap data = jobExecutionContext.getJobDetail().getJobDataMap(); long id = data.getLong("entryId"); int triggerId = data.getInt("triggerId"); String username = da...
drawUnselectedText(g, x, y, 0, getDocument().getLength());
Element line = getDocument().getDefaultRootElement().getElement(lineIndex); drawUnselectedText(g, x, y, line.getStartOffset(), line.getEndOffset());
public void drawLine(int lineIndex, Graphics g, int x, int y) { try { metrics = g.getFontMetrics(); // FIXME: Selected text are not drawn yet. drawUnselectedText(g, x, y, 0, getDocument().getLength()); //drawSelectedText(g, , , , ); } catch (BadLocationException e) { // This should never happen....
updateMetrics();
public Shape modelToView(int position, Shape a, Position.Bias b) throws BadLocationException { Document document = getDocument(); // Get rectangle of the line containing position. int lineIndex = getElement().getElementIndex(position); Rectangle rect = lineToRect(a, lineIndex); // Get the rectangle...
drawLine(0, g, rect.x, rect.y);
Document document = textComponent.getDocument(); Element root = document.getDefaultRootElement(); int y = rect.y; for (int i = 0; i < root.getElementCount(); i++) { drawLine(i, g, rect.x, y); y += metrics.getHeight(); }
public void paint(Graphics g, Shape s) { JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getForeground(); Rectangle rect = s.getBounds(); // FIXME: Text ...
notifyAll();
private synchronized void completeLayout() { // Uu.p("layout thread ending"); done = true; graphics = null; panel.repaint(); // Uu.p("body box = " + panel.body_box ); }
public void startLayout(Graphics g) {
public void startLayout(final Graphics g, Dimension d) {
public void startLayout(Graphics g) { if (shouldLayout()) { //Uu.p("really starting new thread"); //Uu.p("threaded = " + threaded); //done = false; graphics = g; if (threaded) { new Thread(this).start(); } else { ...
if (Configuration.isTrue("xr.layout.bad-sizing-hack", false)) { requestReLayout(d); }
public void startLayout(Graphics g) { if (shouldLayout()) { //Uu.p("really starting new thread"); //Uu.p("threaded = " + threaded); //done = false; graphics = g; if (threaded) { new Thread(this).start(); } else { ...
current.setMarkerData(markerData);
private static void positionVertically( LayoutContext c, Box container, LineBox current, MarkerData markerData) { if (current.getChildCount() == 0) { current.height = 0; } else { LineMetrics strutLM = container.getStyle().getLineMetrics(c); VerticalAlignCont...
current.addNonFlowContent(abs);
if (abs != null) { current.addNonFlowContent(abs); }
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 (!style.hasProperty(CSSName.DISPLAY)) return false; String float_val = style.propertyByName(CSSName.DISPLAY).getValue().getCssText();
if (!style.hasProperty(CSSName.FLOAT)) return false; String float_val = style.propertyByName(CSSName.FLOAT).getValue().getCssText();
public static boolean isFloated(CascadedStyle style) { if (style == null) return false; if (!style.hasProperty(CSSName.DISPLAY)) return false;//default is inline String float_val = style.propertyByName(CSSName.DISPLAY).getValue().getCssText(); if (float_val == null) { return f...
if (!(o instanceof FloatedBlockContent)) { allWhitespace = false; }
public static List stripInlineContent(Context c, List inlineContent) { List stripped = new LinkedList(); List pendingStylePushes = new LinkedList(); boolean collapse = false; boolean allWhitespace = true; for (Iterator i = inlineContent.iterator(); i.hasNext();) { Objec...
pingCheckInterval = 4000; connectionCloseTime = 10000;
public ClientManager(ServerPeer serverPeer) { this.serverPeer = serverPeer; connections = new ConcurrentReaderHashMap(); subscriptions = new ConcurrentReaderHashMap(); //checker = new ConnectionChecker(); //checker.start(); //default values pingCheckInterval = 4000; co...
valueMap.put("finishDate", new Timestamp(step.getFinishDate().getTime()));
if (step.getFinishDate() != null) { valueMap.put("finishDate", new Timestamp(step.getFinishDate().getTime())); }
public void moveToHistory(Step step) throws StoreException { try { Long id = new Long(step.getId()); gd.removeByAnd("OSCurrentStep", UtilMisc.toMap("id", id)); HashMap valueMap = new HashMap(); valueMap.put("id", id); valueMap.put("entryId", new Long(ste...
public static void addAuxiliaryLookAndFeel (LookAndFeel l)
public static void addAuxiliaryLookAndFeel(LookAndFeel laf)
public static void addAuxiliaryLookAndFeel (LookAndFeel l) { if (aux_installed == null) { aux_installed = new LookAndFeel[1]; aux_installed[0] = l; return; } LookAndFeel[] T = new LookAndFeel[ aux_installed.length+1 ]; System.arraycopy(aux_installed, 0, T, 0, aux_installed.le...
if (aux_installed == null)
if (laf == null) throw new NullPointerException("Null 'laf' argument."); if (auxLookAndFeels == null)
public static void addAuxiliaryLookAndFeel (LookAndFeel l) { if (aux_installed == null) { aux_installed = new LookAndFeel[1]; aux_installed[0] = l; return; } LookAndFeel[] T = new LookAndFeel[ aux_installed.length+1 ]; System.arraycopy(aux_installed, 0, T, 0, aux_installed.le...
aux_installed = new LookAndFeel[1]; aux_installed[0] = l;
auxLookAndFeels = new LookAndFeel[1]; auxLookAndFeels[0] = laf;
public static void addAuxiliaryLookAndFeel (LookAndFeel l) { if (aux_installed == null) { aux_installed = new LookAndFeel[1]; aux_installed[0] = l; return; } LookAndFeel[] T = new LookAndFeel[ aux_installed.length+1 ]; System.arraycopy(aux_installed, 0, T, 0, aux_installed.le...
LookAndFeel[] T = new LookAndFeel[ aux_installed.length+1 ]; System.arraycopy(aux_installed, 0, T, 0, aux_installed.length); aux_installed = T; aux_installed[aux_installed.length-1] = l;
LookAndFeel[] temp = new LookAndFeel[auxLookAndFeels.length + 1]; System.arraycopy(auxLookAndFeels, 0, temp, 0, auxLookAndFeels.length); auxLookAndFeels = temp; auxLookAndFeels[auxLookAndFeels.length - 1] = laf;
public static void addAuxiliaryLookAndFeel (LookAndFeel l) { if (aux_installed == null) { aux_installed = new LookAndFeel[1]; aux_installed[0] = l; return; } LookAndFeel[] T = new LookAndFeel[ aux_installed.length+1 ]; System.arraycopy(aux_installed, 0, T, 0, aux_installed.le...
listeners.addPropertyChangeListener(listener);
public static void addPropertyChangeListener(PropertyChangeListener listener) { // FIXME }
return getLookAndFeel().getDefaults().get(key);
return getLookAndFeelDefaults().get(key);
public static Object get(Object key) { return getLookAndFeel().getDefaults().get(key); }
return aux_installed;
return auxLookAndFeels;
public static LookAndFeel[] getAuxiliaryLookAndFeels() { return aux_installed; }
Boolean value = (Boolean) getLookAndFeel().getDefaults().get(key);
Boolean value = (Boolean) getLookAndFeelDefaults().get(key);
public static boolean getBoolean(Object key) { Boolean value = (Boolean) getLookAndFeel().getDefaults().get(key); return value != null ? value.booleanValue() : false; }
return (Border) getLookAndFeel().getDefaults().get(key);
return (Border) getLookAndFeelDefaults().get(key);
public static Border getBorder(Object key) { return (Border) getLookAndFeel().getDefaults().get(key); }
return (Color) getLookAndFeel().getDefaults().get(key);
return (Color) getLookAndFeelDefaults().get(key);
public static Color getColor(Object key) { return (Color) getLookAndFeel().getDefaults().get(key); }
return getLookAndFeel().getDefaults();
return currentUIDefaults;
public static UIDefaults getDefaults() { return getLookAndFeel().getDefaults(); }
return (Dimension) getLookAndFeel().getDefaults().get(key);
return (Dimension) getLookAndFeelDefaults().get(key);
public static Dimension getDimension(Object key) { return (Dimension) getLookAndFeel().getDefaults().get(key); }
return (Font) getLookAndFeel().getDefaults().get(key);
return (Font) getLookAndFeelDefaults().get(key);
public static Font getFont(Object key) { return (Font) getLookAndFeel().getDefaults().get(key); }
return (Icon) getLookAndFeel().getDefaults().get(key);
return (Icon) getLookAndFeelDefaults().get(key);
public static Icon getIcon(Object key) { return (Icon) getLookAndFeel().getDefaults().get(key); }
return (Insets) getLookAndFeel().getDefaults().getInsets(key);
return getLookAndFeelDefaults().getInsets(key);
public static Insets getInsets(Object key) { return (Insets) getLookAndFeel().getDefaults().getInsets(key); }
Integer x = (Integer) getLookAndFeel().getDefaults().get(key);
Integer x = (Integer) getLookAndFeelDefaults().get(key);
public static int getInt(Object key) { Integer x = (Integer) getLookAndFeel().getDefaults().get(key); if (x == null) return 0; return x.intValue(); }
return look_and_feel;
return currentLookAndFeel;
public static LookAndFeel getLookAndFeel() { return look_and_feel; }
return getLookAndFeel().getDefaults();
return currentUIDefaults;
public static UIDefaults getLookAndFeelDefaults() { return getLookAndFeel().getDefaults(); }
throw new Error ("Not implemented");
return listeners.getPropertyChangeListeners();
public static PropertyChangeListener[] getPropertyChangeListeners() { // FIXME throw new Error ("Not implemented"); }
return (String) getLookAndFeel().getDefaults().get(key);
return (String) getLookAndFeelDefaults().get(key);
public static String getString(Object key) { return (String) getLookAndFeel().getDefaults().get(key); }
return getDefaults().getUI(target);
return getLookAndFeelDefaults().getUI(target);
public static ComponentUI getUI(JComponent target) { return getDefaults().getUI(target); }
installLookAndFeel(new LookAndFeelInfo(name, className));
public static void installLookAndFeel(String name, String className) { }
return getLookAndFeel().getDefaults().put(key,value);
return getLookAndFeelDefaults().put(key,value);
public static Object put(Object key, Object value) { return getLookAndFeel().getDefaults().put(key,value); }
if (aux_installed == null)
if (auxLookAndFeels == null)
public static boolean removeAuxiliaryLookAndFeel(LookAndFeel laf) { if (aux_installed == null) return false; for (int i=0;i<aux_installed.length;i++) { if (aux_installed[i] == laf) { aux_installed[ i ] = aux_installed[aux_installed.length-1]; LookAndFeel[] T = ne...
for (int i=0;i<aux_installed.length;i++)
int count = auxLookAndFeels.length; if (count == 1 && auxLookAndFeels[0] == laf)
public static boolean removeAuxiliaryLookAndFeel(LookAndFeel laf) { if (aux_installed == null) return false; for (int i=0;i<aux_installed.length;i++) { if (aux_installed[i] == laf) { aux_installed[ i ] = aux_installed[aux_installed.length-1]; LookAndFeel[] T = ne...
if (aux_installed[i] == laf)
auxLookAndFeels = null; return true; } for (int i = 0; i < count; i++) { if (auxLookAndFeels[i] == laf) { LookAndFeel[] temp = new LookAndFeel[auxLookAndFeels.length - 1]; if (i == 0)
public static boolean removeAuxiliaryLookAndFeel(LookAndFeel laf) { if (aux_installed == null) return false; for (int i=0;i<aux_installed.length;i++) { if (aux_installed[i] == laf) { aux_installed[ i ] = aux_installed[aux_installed.length-1]; LookAndFeel[] T = ne...
aux_installed[ i ] = aux_installed[aux_installed.length-1]; LookAndFeel[] T = new LookAndFeel[ aux_installed.length-1 ]; System.arraycopy (aux_installed, 0, T, 0, aux_installed.length-1); aux_installed = T;
System.arraycopy(auxLookAndFeels, 1, temp, 0, count - 1); } else if (i == count - 1) { System.arraycopy(auxLookAndFeels, 0, temp, 0, count - 1); } else { System.arraycopy(auxLookAndFeels, 0, temp, 0, i); System.arraycopy(auxLookAndFeels, i + 1, temp, i, count - i - 1); } auxLookAndFeels = temp;
public static boolean removeAuxiliaryLookAndFeel(LookAndFeel laf) { if (aux_installed == null) return false; for (int i=0;i<aux_installed.length;i++) { if (aux_installed[i] == laf) { aux_installed[ i ] = aux_installed[aux_installed.length-1]; LookAndFeel[] T = ne...
listeners.removePropertyChangeListener(listener);
public static void removePropertyChangeListener(PropertyChangeListener listener) { // FIXME }
if (! newLookAndFeel.isSupportedLookAndFeel())
if (newLookAndFeel != null && ! newLookAndFeel.isSupportedLookAndFeel())
public static void setLookAndFeel(LookAndFeel newLookAndFeel) throws UnsupportedLookAndFeelException { if (! newLookAndFeel.isSupportedLookAndFeel()) throw new UnsupportedLookAndFeelException(newLookAndFeel.getName()); if (look_and_feel != null) look_and_feel.uninitialize(); // Set the curr...
if (look_and_feel != null) look_and_feel.uninitialize();
LookAndFeel oldLookAndFeel = currentLookAndFeel; if (oldLookAndFeel != null) oldLookAndFeel.uninitialize();
public static void setLookAndFeel(LookAndFeel newLookAndFeel) throws UnsupportedLookAndFeelException { if (! newLookAndFeel.isSupportedLookAndFeel()) throw new UnsupportedLookAndFeelException(newLookAndFeel.getName()); if (look_and_feel != null) look_and_feel.uninitialize(); // Set the curr...
look_and_feel = newLookAndFeel; look_and_feel.initialize();
currentLookAndFeel = newLookAndFeel; if (newLookAndFeel != null) { newLookAndFeel.initialize(); currentUIDefaults = newLookAndFeel.getDefaults(); } else { currentUIDefaults = null; } listeners.firePropertyChange("lookAndFeel", oldLookAndFeel, newLookAndFeel);
public static void setLookAndFeel(LookAndFeel newLookAndFeel) throws UnsupportedLookAndFeelException { if (! newLookAndFeel.isSupportedLookAndFeel()) throw new UnsupportedLookAndFeelException(newLookAndFeel.getName()); if (look_and_feel != null) look_and_feel.uninitialize(); // Set the curr...
DeliveryRunnable(Future result)
public DeliveryRunnable(Future result)
DeliveryRunnable(Future result) { this.result = result; }
} else {
public static Border getBorder(Context c, Box box) { if (isBlockOrInlineElementBox(c, box)) { if (box.border == null) { box.border = c.css.getStyle(box.getRealElement()).getBorderWidth(); } } return box.border; }
display.equals("table-cell"))
display.equals("table-cell") || display.equals("list-item"))
public static boolean isBlockNode(Node child, Context c) { if (child instanceof Element) { CalculatedStyle style = c.css.getStyle(child); String display = getDisplay(style); if (display != null && (display.equals("block") || display.equal...
if ((box.getNode().getNodeType() == Node.TEXT_NODE && !LayoutUtil.isBlockNode(box.getRealElement(), c)) || box.isElement()) {
if(box.isElement()) { return true; } if ( box.getNode().getNodeType() == Node.TEXT_NODE && !LayoutUtil.isBlockNode(box.getRealElement(), c) ) {
public static boolean isBlockOrInlineElementBox(Context c, Box box) { if ((box.getNode().getNodeType() == Node.TEXT_NODE && !LayoutUtil.isBlockNode(box.getRealElement(), c)) || box.isElement()) { // u.p("box = " + box); // u.p("node type = " + box.node.getN...
if (queue == null) { throw new InvalidDestinationException("Cannot create a browser with a null queue"); }
public QueueBrowser createBrowser(Queue queue) throws JMSException { //As per spec. section 4.11 if (sessionType == TYPE_TOPIC_SESSION) { throw new IllegalStateException("Cannot create a browser on a TopicSession"); } return createBrowser(queue, null); }
if (d == null) { throw new InvalidDestinationException("Cannot create a consumer with a null destination"); }
public MessageConsumer createConsumer(Destination d) throws JMSException { ConsumerDelegate consumerDelegate = sessionDelegate.createConsumerDelegate(d, null, false, null); return new JBossMessageConsumer(consumerDelegate, false); }
sessionDelegate.createConsumerDelegate(topic, null, true, name);
sessionDelegate.createConsumerDelegate(topic, null, false, name);
public TopicSubscriber createDurableSubscriber(Topic topic, String name) throws JMSException { //As per spec. section 4.11 if (sessionType == TYPE_QUEUE_SESSION) { throw new IllegalStateException("Cannot create a durable subscriber on a QueueSession"); } ConsumerDelegate consumerDe...
String key = ior.Internet.host + ":" + ior.Internet.port; Socket socket = SocketRepository.get_socket(key); try { if (socket != null) { socket.close(); } } catch (IOException ex) { }
public void release(org.omg.CORBA.Object target) { String key = ior.Internet.host + ":" + ior.Internet.port; Socket socket = SocketRepository.get_socket(key); try { if (socket != null) { socket.close(); } } catch (IOException ex) { // do nothing, ...
graphics.setRenderingHint( RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);
graphics.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_OFF);
public void setupGraphics(Graphics2D graphics) { graphics.setRenderingHint( RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON); }
public void addDelivery(Serializable channelID, Delivery d) throws Exception
protected void addDelivery(Serializable channelID, Delivery d, Connection conn) throws SQLException
public void addDelivery(Serializable channelID, Delivery d) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding delivery " + d + " to channel: " + channelID);} Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); MessageRefe...
if (log.isTraceEnabled()) { log.trace("Adding delivery " + d + " to channel: " + channelID);} Connection conn = null;
if (log.isTraceEnabled()) { log.trace("Adding delivery " + d + " to channel: " + channelID); }
public void addDelivery(Serializable channelID, Delivery d) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding delivery " + d + " to channel: " + channelID);} Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); MessageRefe...
TransactionWrapper wrap = new TransactionWrapper();
public void addDelivery(Serializable channelID, Delivery d) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding delivery " + d + " to channel: " + channelID);} Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); MessageRefe...
conn = ds.getConnection();
public void addDelivery(Serializable channelID, Delivery d) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding delivery " + d + " to channel: " + channelID);} Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); MessageRefe...
} catch (SQLException e) { if (log.isTraceEnabled()) { log.trace(JDBCUtil.statementToString(insertDelivery, channelID, messageID, receiverID, storeID, null, "C") + " failed"); } wrap.exceptionOccurred(); throw e; }
}
public void addDelivery(Serializable channelID, Delivery d) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding delivery " + d + " to channel: " + channelID);} Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); MessageRefe...
if (conn != null) { try { conn.close(); } catch (Throwable t) {} } wrap.end();
public void addDelivery(Serializable channelID, Delivery d) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding delivery " + d + " to channel: " + channelID);} Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); MessageRefe...
if (log.isTraceEnabled()) { log.trace("Adding message reference " + ref + " for channel " + channelID + (tx == null ? " non-transactionally" : " in transaction: " + tx));} Connection conn = null; PreparedStatement ps = null;
public void addReference(Serializable channelID, MessageReference ref, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding message reference " + ref + " for channel " + channelID + (tx == null ? " non-transactionally" : " in transaction: " + tx));} Connection conn = null; ...
Connection conn = ds.getConnection();
public void addReference(Serializable channelID, MessageReference ref, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding message reference " + ref + " for channel " + channelID + (tx == null ? " non-transactionally" : " in transaction: " + tx));} Connection conn = null; ...
conn = ds.getConnection(); insertTx(conn, tx); String state; if (tx == null) { state = "C"; } else { state = "+"; } ps = conn.prepareStatement(insertMessageRef); ps.setString(1, (String)channelID); ps.setString(2, (String)ref.getMessageID()); ps.setString(3, (String)ref.getStoreID()); if (tx == null) { if (this.txId...
addReference(channelID, ref, tx, conn);
public void addReference(Serializable channelID, MessageReference ref, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding message reference " + ref + " for channel " + channelID + (tx == null ? " non-transactionally" : " in transaction: " + tx));} Connection conn = null; ...
catch (SQLException e)
catch (Exception e)
public void addReference(Serializable channelID, MessageReference ref, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding message reference " + ref + " for channel " + channelID + (tx == null ? " non-transactionally" : " in transaction: " + tx));} Connection conn = null; ...