rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
parents = null; accept = null; cancel = null; upFolderButton = null; homeFolderButton = null; newFolderButton = null; filelist = null;
public void uninstallComponents(JFileChooser fc) { parents = null; accept = null; cancel = null; upFolderButton = null; homeFolderButton = null; newFolderButton = null; filelist = null; }
computerIcon = null; detailsViewIcon = null; directoryIcon = null; fileIcon = null; floppyDriveIcon = null; hardDriveIcon = null; homeFolderIcon = null; listViewIcon = null; newFolderIcon = null; upFolderIcon = null;
protected void uninstallIcons(JFileChooser fc) { // FIXME: Implement. }
cancelButtonMnemonic = 0;
dirDescText = null; fileDescText = null;
protected void uninstallStrings(JFileChooser fc) { acceptAllFileFilterText = null; cancelButtonMnemonic = 0; cancelButtonText = null; cancelButtonToolTipText = null; dirDescText = null; fileDescText = null; helpButtonMnemonic = 0; helpButtonText = null; helpButtonToolTipText = null; ope...
dirDescText = null; fileDescText = null;
directoryOpenButtonText = null; directoryOpenButtonToolTipText = null;
protected void uninstallStrings(JFileChooser fc) { acceptAllFileFilterText = null; cancelButtonMnemonic = 0; cancelButtonText = null; cancelButtonToolTipText = null; dirDescText = null; fileDescText = null; helpButtonMnemonic = 0; helpButtonText = null; helpButtonToolTipText = null; ope...
helpButtonMnemonic = 0;
protected void uninstallStrings(JFileChooser fc) { acceptAllFileFilterText = null; cancelButtonMnemonic = 0; cancelButtonText = null; cancelButtonToolTipText = null; dirDescText = null; fileDescText = null; helpButtonMnemonic = 0; helpButtonText = null; helpButtonToolTipText = null; ope...
openButtonMnemonic = 0;
protected void uninstallStrings(JFileChooser fc) { acceptAllFileFilterText = null; cancelButtonMnemonic = 0; cancelButtonText = null; cancelButtonToolTipText = null; dirDescText = null; fileDescText = null; helpButtonMnemonic = 0; helpButtonText = null; helpButtonToolTipText = null; ope...
saveButtonMnemonic = 0;
protected void uninstallStrings(JFileChooser fc) { acceptAllFileFilterText = null; cancelButtonMnemonic = 0; cancelButtonText = null; cancelButtonToolTipText = null; dirDescText = null; fileDescText = null; helpButtonMnemonic = 0; helpButtonText = null; helpButtonToolTipText = null; ope...
updateButtonText = null; updateButtonToolTipText = null;
protected void uninstallStrings(JFileChooser fc) { acceptAllFileFilterText = null; cancelButtonMnemonic = 0; cancelButtonText = null; cancelButtonToolTipText = null; dirDescText = null; fileDescText = null; helpButtonMnemonic = 0; helpButtonText = null; helpButtonToolTipText = null; ope...
setMarqueeHandler(new WorkflowMarqueeHandler(this));
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); ...
n.add(new CreateStep(descriptor, getWorkflowGraphModel(), menuLocation));
CreateStep createStep = new CreateStep(descriptor, getWorkflowGraphModel(), menuLocation); n.add(createStep); actions.add(createStep);
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); ...
n.add(new CreateJoin(descriptor, getWorkflowGraphModel(), menuLocation)); n.add(new CreateSplit(descriptor, getWorkflowGraphModel(), menuLocation));
CreateJoin createJoin = new CreateJoin(descriptor, getWorkflowGraphModel(), menuLocation); n.add(createJoin); actions.add(createJoin); CreateSplit createSplit = new CreateSplit(descriptor, getWorkflowGraphModel(), menuLocation); n.add(createSplit); actions.add(createSplit);
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); ...
cellMenu.add(new Delete(descriptor, this, menuLocation));
Delete delete = new Delete(descriptor, this, menuLocation); actions.add(delete); cellMenu.add(delete);
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); ...
edgeMenu.add(new Delete(descriptor, this, menuLocation));
edgeMenu.add(delete);
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); ...
for(int i = 0; i < actions.size(); i++) { if(actions.get(i) instanceof DescriptorAware) { ((DescriptorAware)actions.get(i)).setDescriptor(descriptor); } }
public void setDescriptor(WorkflowDescriptor descriptor) { if(descriptor != null) { this.descriptor = descriptor; List initialActionList = descriptor.getInitialActions(); addInitialActions(initialActionList); List stepsList = descriptor.getSteps(); for(int i = 0; i < stepsList.size(); ...
else { return false; } }
public boolean equals(Object o) { byte[] okey = ((SecretKeySpec) o).getEncoded(); if (key.length != okey.length) return false; for (int i = 0; i < key.length; i++) { if (key[i] != okey[i]) return false; } return algorithm.equals(((SecretKeySpec) o).getAlgorithm()); }
ServerManagement.start("all"); ic = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); log.info("connection factory is " + cf); ServerManagement.deployQueue("Queue"); queue = (Queue)ic.lookup("/queue/Queue"); ic.close();
protected void setUp() throws Exception { super.setUp(); }
ServerManagement.stop();
protected void tearDown() throws Exception { super.tearDown(); }
String getSubString(long pos, int length) throws SQLException;
String getSubString(long start, int count) throws SQLException;
String getSubString(long pos, int length) throws SQLException;
long position(String searchstr, long start) throws SQLException;
long position(String pattern, long start) throws SQLException;
long position(String searchstr, long start) throws SQLException;
OutputStream setAsciiStream(long pos) throws SQLException;
OutputStream setAsciiStream(long start) throws SQLException;
OutputStream setAsciiStream(long pos) throws SQLException;
Writer setCharacterStream(long pos) throws SQLException;
Writer setCharacterStream(long start) throws SQLException;
Writer setCharacterStream(long pos) throws SQLException;
int setString(long pos, String str) throws SQLException;
int setString(long start, String value) throws SQLException;
int setString(long pos, String str) throws SQLException;
void truncate(long len) throws SQLException;
void truncate(long count) throws SQLException;
void truncate(long len) throws SQLException;
valid = new Boolean(result);
valid = Boolean.valueOf(result);
public boolean selfTest() { if (valid == null) { boolean result = super.selfTest(); // symmetry if (result) { result = testKat(TV_KEY, TV_CT); } valid = new Boolean(result); } return valid.booleanValue(); }
configuration.put(InvokerLocator.CLIENT_LEASE, "true");
configuration.put(Client.ENABLE_LEASE, "true");
protected Map getConfig() { Map configuration = new HashMap(); //Enable client pinging //Server leasing is enabled separately on the server side configuration.put(InvokerLocator.CLIENT_LEASE, "true"); if (isMultiplex) { configuration.put(MultiplexServerInvoker.CLIENT_MUL...
client = new Client(serverLocator, getConfig());
Map config = getConfig(); client = new Client(serverLocator, config);
protected void setUpConnection() throws Throwable { if (log.isTraceEnabled()) { log.trace("connecting to " + serverLocator); } String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + ...
MenuSelectionManager.defaultManager().processKeyEvent(event);
protected void processKeyEvent(KeyEvent event) { // TODO: Implement this properly. }
paintHighlight(g, l0.union(l1));
{ SwingUtilities.computeUnion(l0.x, l0.y, l0.width, l0.height, l1); SwingUtilities.computeIntersection(rect.x, rect.y, rect.width, rect.height, l1); paintHighlight(g, l1); }
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent t) { if (p0 == p1) return; Rectangle rect = bounds.getBounds(); if (color == null) g.setColor(t.getSelectionColor()); else g.setColor(color); TextUI ui = t.getUI(); try { R...
l0.width = rect.width - l0.x;
l0.x -= rect.x; l0.width = rect.width - l0.x - rect.x;
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent t) { if (p0 == p1) return; Rectangle rect = bounds.getBounds(); if (color == null) g.setColor(t.getSelectionColor()); else g.setColor(color); TextUI ui = t.getUI(); try { R...
throws NotImplementedException
public void paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) { // TODO: Implement this properly. }
Font font = c.getCurrentFont();
Font font = box.getStyle().getFont(c.getCtx());
private static void drawText(Context c, Box box, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.DECIMAL) { text = box.list_count + "."; } if (listStyle == IdentValue.LOWER_LATIN) { text = toLatin(box.list_count).toLowerCase() + "."; } ...
int h = FontUtil.lineHeight(c);
int h = FontUtil.lineHeight(c, box);
private static void drawText(Context c, Box box, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.DECIMAL) { text = box.list_count + "."; } if (listStyle == IdentValue.LOWER_LATIN) { text = toLatin(box.list_count).toLowerCase() + "."; } ...
CalculatedStyle style = c.getCurrentStyle();
CalculatedStyle style = box.getStyle().getCalculatedStyle();
public static void paint(Context c, Box box) { CalculatedStyle style = c.getCurrentStyle(); IdentValue listStyle = style.getIdent(CSSName.LIST_STYLE_TYPE); if (listStyle == IdentValue.NONE) { return; } if (listStyle == IdentValue.LOWER_GREEK) { listStyle = Id...
int h = FontUtil.lineHeight(c);
int h = FontUtil.lineHeight(c, box);
public static void paint(Context c, Box box) { CalculatedStyle style = c.getCurrentStyle(); IdentValue listStyle = style.getIdent(CSSName.LIST_STYLE_TYPE); if (listStyle == IdentValue.NONE) { return; } if (listStyle == IdentValue.LOWER_GREEK) { listStyle = Id...
Border border = style.getBorderWidth(c.getCtx());
BorderPropertySet border = style.getBorder(c.getCtx());
private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = ib.getStyle().getCalculatedStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) {...
padX += (int)padding.right() + border.right;
padX += (int)padding.right() + (int)border.right();
private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = ib.getStyle().getCalculatedStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) {...
Border border = style.getBorderWidth(c.getCtx());
BorderPropertySet border = style.getBorder(c.getCtx());
private static int handleInlineElementStart(Context c, LineBox line, InlineBox ib, int padX, LinkedList decorations) { // NOT RIGHT (ib.getStyle()...), refers to previous inline? Comment out for now /* CalculatedStyle style = ib.getStyle().getCalculatedStyle(); int parent_width = line.ge...
padX += (int)margin.left() + border.left + (int)padding.left();
padX += (int)margin.left() + (int)border.left() + (int)padding.left();
private static int handleInlineElementStart(Context c, LineBox line, InlineBox ib, int padX, LinkedList decorations) { // NOT RIGHT (ib.getStyle()...), refers to previous inline? Comment out for now /* CalculatedStyle style = ib.getStyle().getCalculatedStyle(); int parent_width = line.ge...
decorations.addLast(new TextDecoration(decoration, ib.x + (int)margin.left() + border.left + (int)padding.left(), c.getCurrentStyle().getColor(), FontUtil.getLineMetrics(c, null)));
decorations.addLast(new TextDecoration(decoration, ib.x + (int)margin.left() + (int)border.left() + (int)padding.left(), c.getCurrentStyle().getColor(), FontUtil.getLineMetrics(c, null)));
private static int handleInlineElementStart(Context c, LineBox line, InlineBox ib, int padX, LinkedList decorations) { // NOT RIGHT (ib.getStyle()...), refers to previous inline? Comment out for now /* CalculatedStyle style = ib.getStyle().getCalculatedStyle(); int parent_width = line.ge...
Border border,
BorderPropertySet border,
public static void paintLeftPadding( Context c, LineBox line, InlineBox inline, int padX, RectPropertySet margin, Border border, RectPropertySet padding) { LineMetrics lm = FontUtil.getLineMetrics(c, inline); for (Iterator i ...
(int)padding.left() + border.left,
(int)padding.left() + (int)border.left(),
public static void paintLeftPadding( Context c, LineBox line, InlineBox inline, int padX, RectPropertySet margin, Border border, RectPropertySet padding) { LineMetrics lm = FontUtil.getLineMetrics(c, inline); for (Iterator i ...
border.left + (int)padding.left(), BorderPainter.LEFT + BorderPainter.TOP + BorderPainter.BOTTOM);
(int)border.left() + (int)padding.left(), BorderPainter.LEFT + BorderPainter.TOP + BorderPainter.BOTTOM);
public static void paintLeftPadding( Context c, LineBox line, InlineBox inline, int padX, RectPropertySet margin, Border border, RectPropertySet padding) { LineMetrics lm = FontUtil.getLineMetrics(c, inline); for (Iterator i ...
Border border,
BorderPropertySet border,
public static void paintRightPadding( Context c, LineBox line, InlineBox inline, int padX, Border border, RectPropertySet padding) { InlineBorder ib = (InlineBorder) c.getInlineBorders().removeLast(); for (Iterator i = c.getInlineBorder...
(int)padding.right() + border.right,
(int)padding.right() + (int)border.right(),
public static void paintRightPadding( Context c, LineBox line, InlineBox inline, int padX, Border border, RectPropertySet padding) { InlineBorder ib = (InlineBorder) c.getInlineBorders().removeLast(); for (Iterator i = c.getInlineBorder...
ib.paint(c, line, padX + inline.x, (int)padding.right() + border.right, BorderPainter.RIGHT + BorderPainter.TOP + BorderPainter.BOTTOM);
ib.paint(c, line, padX + inline.x, (int)padding.right() + (int)border.right(), BorderPainter.RIGHT + BorderPainter.TOP + BorderPainter.BOTTOM);
public static void paintRightPadding( Context c, LineBox line, InlineBox inline, int padX, Border border, RectPropertySet padding) { InlineBorder ib = (InlineBorder) c.getInlineBorders().removeLast(); for (Iterator i = c.getInlineBorder...
Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null);
Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor()); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor());
public void test1() throws Throwable { Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); Message[] msgs = new Message[150]; MessageRefere...
" start = " + this.start_index + " end = " + this.end_index + " baseline = " + this.baseline + " vset = " + this.vset;
" start = " + this.start_index + " end = " + this.end_index;
public String toString() { return "InlineBox " + "bnds = " + x + "," + y + " - " + width + "Xx" + height + " start = " + this.start_index + " end = " + this.end_index + " baseline = " + this.baseline + " vset = " + this.vset;// + // CLN: (PWW 13/08/04) ...
demos.add(new LoadAction("Pseudo-elements ", "demo:demos/pseudo-elements.xhtml"));
public void createLayout() { file.add(root.actions.open_file); file.add(root.actions.print); file.add(new JSeparator()); file.add(root.actions.quit); add(file); edit.add(root.actions.cut); edit.add(root.actions.copy); edit.add(root.actions.paste); add(e...
public void addBindingFromCluster(String nodeId, String queueName, String condition,
public void addBindingFromCluster(int nodeId, String queueName, String condition,
public void addBindingFromCluster(String nodeId, String queueName, String condition, String filterString, long channelID, boolean durable) throws Exception { lock.writeLock().acquire(); log.info(this.nodeId + " adding binding from node: " + nodeId +" queue: ...
if (!nodeIdAddressMap.containsKey(nodeId))
if (!nodeIdAddressMap.containsKey(new Integer(nodeId)))
public void addBindingFromCluster(String nodeId, String queueName, String condition, String filterString, long channelID, boolean durable) throws Exception { lock.writeLock().acquire(); log.info(this.nodeId + " adding binding from node: " + nodeId +" queue: ...
Map nameMap = (Map)nameMaps.get(nodeId);
Map nameMap = (Map)nameMaps.get(new Integer(nodeId));
public void addBindingFromCluster(String nodeId, String queueName, String condition, String filterString, long channelID, boolean durable) throws Exception { lock.writeLock().acquire(); log.info(this.nodeId + " adding binding from node: " + nodeId +" queue: ...
if (!queue.getNodeId().equals(this.nodeId))
if (queue.getNodeId() != this.nodeId)
public Binding bindClusteredQueue(String condition, LocalClusteredQueue queue) throws Exception { log.info(this.nodeId + " binding clustered queue: " + queue + " with condition: " + condition); if (!queue.getNodeId().equals(this.nodeId)) { throw new IllegalArgumentException(...
public void check(String nodeId) throws Throwable
public void check(int nodeId) throws Throwable
public void check(String nodeId) throws Throwable { synchronized (holdingArea) { Iterator iter = holdingArea.entrySet().iterator(); List toRemove = new ArrayList(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); ...
if (id.getNodeId().equals(nodeId))
if (id.getNodeId() == nodeId)
public void check(String nodeId) throws Throwable { synchronized (holdingArea) { Iterator iter = holdingArea.entrySet().iterator(); List toRemove = new ArrayList(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); ...
protected Binding createBinding(String nodeId, String condition, String queueName, long channelId, String filterString, boolean durable) throws Exception
protected Binding createBinding(int nodeId, String condition, String queueName, long channelId, String filterString, boolean durable) throws Exception
protected Binding createBinding(String nodeId, String condition, String queueName, long channelId, String filterString, boolean durable) throws Exception { Filter filter = filterFactory.createFilter(filterString); log.info("Created binding"); Queue queue; if (nodeId.equa...
if (nodeId.equals(this.nodeId))
if (nodeId == this.nodeId)
protected Binding createBinding(String nodeId, String condition, String queueName, long channelId, String filterString, boolean durable) throws Exception { Filter filter = filterFactory.createFilter(filterString); log.info("Created binding"); Queue queue; if (nodeId.equa...
public Address getAddressForNodeId(String nodeId) throws Exception
public Address getAddressForNodeId(int nodeId) throws Exception
public Address getAddressForNodeId(String nodeId) throws Exception { lock.readLock().acquire(); try { return (Address)nodeIdAddressMap.get(nodeId); } finally { lock.readLock().release(); } }
return (Address)nodeIdAddressMap.get(nodeId);
return (Address)nodeIdAddressMap.get(new Integer(nodeId));
public Address getAddressForNodeId(String nodeId) throws Exception { lock.readLock().acquire(); try { return (Address)nodeIdAddressMap.get(nodeId); } finally { lock.readLock().release(); } }
public void handleAddressNodeMapping(Address address, String nodeId) throws Exception
public void handleAddressNodeMapping(Address address, int nodeId) throws Exception
public void handleAddressNodeMapping(Address address, String nodeId) throws Exception { lock.writeLock().acquire(); try { nodeIdAddressMap.put(nodeId, address); } finally { lock.writeLock().release(); } }
nodeIdAddressMap.put(nodeId, address);
nodeIdAddressMap.put(new Integer(nodeId), address);
public void handleAddressNodeMapping(Address address, String nodeId) throws Exception { lock.writeLock().acquire(); try { nodeIdAddressMap.put(nodeId, address); } finally { lock.writeLock().release(); } }
if (binding.getNodeId().equals(this.nodeId))
if (binding.getNodeId() == this.nodeId)
private void processStateBytes(byte[] bytes) throws Exception { log.info("Receiving state from group..."); SharedState state = new SharedState(); StreamUtils.fromBytes(state, bytes); nameMaps.clear(); conditionMap.clear(); List bindings = state...
public void removeBindingFromCluster(String nodeId, String queueName) throws Exception
public void removeBindingFromCluster(int nodeId, String queueName) throws Exception
public void removeBindingFromCluster(String nodeId, String queueName) throws Exception { lock.writeLock().acquire(); try { // Sanity if (!nodeIdAddressMap.containsKey(nodeId)) { throw new IllegalStateException("Cannot find address for node: " + nodeI...
if (!nodeIdAddressMap.containsKey(nodeId))
if (!nodeIdAddressMap.containsKey(new Integer(nodeId)))
public void removeBindingFromCluster(String nodeId, String queueName) throws Exception { lock.writeLock().acquire(); try { // Sanity if (!nodeIdAddressMap.containsKey(nodeId)) { throw new IllegalStateException("Cannot find address for node: " + nodeI...
String nodeId = null;
Integer nodeId = null;
private void removeBindingsForAddress(Address address) throws Exception { lock.writeLock().acquire(); try { Iterator iter = nodeIdAddressMap.entrySet().iterator(); String nodeId = null; while (iter.hasNext()) { Map.Entry entry = (Map.Entry)i...
nodeId = (String)entry.getKey();
nodeId = (Integer)entry.getKey();
private void removeBindingsForAddress(Address address) throws Exception { lock.writeLock().acquire(); try { Iterator iter = nodeIdAddressMap.entrySet().iterator(); String nodeId = null; while (iter.hasNext()) { Map.Entry entry = (Map.Entry)i...
removeBinding(nodeId, binding.getQueue().getName());
removeBinding(nodeId.intValue(), binding.getQueue().getName());
private void removeBindingsForAddress(Address address) throws Exception { lock.writeLock().acquire(); try { Iterator iter = nodeIdAddressMap.entrySet().iterator(); String nodeId = null; while (iter.hasNext()) { Map.Entry entry = (Map.Entry)i...
String lastNodeId = null;
int lastNodeId = -1;
public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); ...
queueNameNodeIdMap.put(queue.getName(), queue.getNodeId());
queueNameNodeIdMap.put(queue.getName(), new Integer(queue.getNodeId()));
public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); ...
numberRemote == 1 ? lastNodeId : null,
numberRemote == 1 ? lastNodeId : -1,
public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); ...
if (binding.getNodeId().equals(this.nodeId))
if (binding.getNodeId() == this.nodeId)
public void routeFromCluster(org.jboss.messaging.core.Message message, String routingKey, Map queueNameNodeIdMap) throws Exception { log.info(this.nodeId + " received route from cluster, ref = " + message.getMessageID() + " routing key " + routingKey + " map " + qu...
{ String desiredNodeId = (String)queueNameNodeIdMap.get(binding.getQueue().getName());
{ Integer in = (Integer)queueNameNodeIdMap.get(binding.getQueue().getName());
public void routeFromCluster(org.jboss.messaging.core.Message message, String routingKey, Map queueNameNodeIdMap) throws Exception { log.info(this.nodeId + " received route from cluster, ref = " + message.getMessageID() + " routing key " + routingKey + " map " + qu...
if (desiredNodeId != null)
if (in != null)
public void routeFromCluster(org.jboss.messaging.core.Message message, String routingKey, Map queueNameNodeIdMap) throws Exception { log.info(this.nodeId + " received route from cluster, ref = " + message.getMessageID() + " routing key " + routingKey + " map " + qu...
handle = desiredNodeId.equals(nodeId);
handle = in.intValue() == nodeId;
public void routeFromCluster(org.jboss.messaging.core.Message message, String routingKey, Map queueNameNodeIdMap) throws Exception { log.info(this.nodeId + " received route from cluster, ref = " + message.getMessageID() + " routing key " + routingKey + " map " + qu...
Map nameMap = (Map)nameMaps.get(nodeId);
Map nameMap = (Map)nameMaps.get(new Integer(nodeId));
public synchronized void sendQueueStats() throws Exception { if (!started) { return; } lock.readLock().acquire(); List statsList = null; try { Map nameMap = (Map)nameMaps.get(nodeId); if (nameMap != null) {...
public Object syncSendRequest(ClusterRequest request, String nodeId, boolean ignoreNoAddress) throws Exception
public Object syncSendRequest(ClusterRequest request, int nodeId, boolean ignoreNoAddress) throws Exception
public Object syncSendRequest(ClusterRequest request, String nodeId, boolean ignoreNoAddress) throws Exception { Address address = this.getAddressForNodeId(nodeId); if (address == null) { if (ignoreNoAddress) { return null; } else ...
public void updateQueueStats(String nodeId, List statsList) throws Exception
public void updateQueueStats(int nodeId, List statsList) throws Exception
public void updateQueueStats(String nodeId, List statsList) throws Exception { lock.readLock().acquire(); try { if (nodeId.equals(this.nodeId)) { //Sanity check throw new IllegalStateException("Cannot update queue stats for current node"); } ...
if (nodeId.equals(this.nodeId))
if (nodeId == this.nodeId)
public void updateQueueStats(String nodeId, List statsList) throws Exception { lock.readLock().acquire(); try { if (nodeId.equals(this.nodeId)) { //Sanity check throw new IllegalStateException("Cannot update queue stats for current node"); } ...
Map nameMap = (Map)nameMaps.get(nodeId);
Map nameMap = (Map)nameMaps.get(new Integer(nodeId));
public void updateQueueStats(String nodeId, List statsList) throws Exception { lock.readLock().acquire(); try { if (nodeId.equals(this.nodeId)) { //Sanity check throw new IllegalStateException("Cannot update queue stats for current node"); } ...
box.y -= fm.getDescent();
box.y += fm.getDescent();
public static void setupVerticalAlign( Context c, Node node, InlineBox box ) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if ( node...
getContext().setExtents( new Rectangle( 200, 200 ) );
getContext().setExtents( new Rectangle( getWidth(), getHeight() ) );
private void newContext( Graphics g ) { //u.p("new context begin"); //Point origin = new Point( 0, 0 ); //Point last = new Point( 0, 0 ); getContext().canvas = this; getContext().graphics = g; // set up the dimensions of the html canvas //Rectangle dimensions = new R...
m_fullSize = fullSize; m_pageSize = pageSize; m_downCacheSize = downCacheSize;
this.fullSize = fullSize; this.pageSize = pageSize; this.downCacheSize = downCacheSize;
public Queue(long id, MessageStore ms, PersistenceManager pm, boolean recoverable, int fullSize, int pageSize, int downCacheSize) { super(id, ms, pm, true, recoverable, fullSize, pageSize, downCacheSize); router = new PointToPointRouter(); m_fullSize = fullSize; m_pageSize ...
return m_downCacheSize;
return downCacheSize;
public int getDownCacheSize() { return m_downCacheSize; }
return m_fullSize;
return fullSize;
public int getFullSize() { return m_fullSize; }
return m_pageSize;
return pageSize;
public int getPageSize() { return m_pageSize; }
ref.releaseMemoryReference();
public void testClientAck1() throws Exception { MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); ...
ref.releaseMemoryReference();
public void testClientAck2() throws Exception { MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); ...
ref.releaseMemoryReference();
public void testRedelivery() throws Exception { MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); ...
ref.releaseMemoryReference();
public void testTransactionCommit() throws Exception { MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ...
ref.releaseMemoryReference();
public void testTransactionRollback() throws Exception { MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ...
child_box = Boxing.layout(c, currentContent);
child_box = Boxing.preLayout(c,currentContent); child_box.y = box.height; box.addChild(child_box); BlockBoxing.count++; int bc = Configuration.valueAsInt("xr.incremental.repaint.blockcount",1); if(BlockBoxing.count%bc == 0) { Dimension max_size = new Dimension(c.getMaxWidth(),c.getMaxHeight()); if(Configuration.is...
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
box.addChild(child_box);
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
Uu.p("doing a clear on: " + child_box);
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
Uu.p("down = " + down);
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
Uu.p("left clear"); Uu.p("left down = " + c.getBlockFormattingContext().getLeftDownDistance(child_box));
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
Uu.p("right clear"); Uu.p("right down = " + c.getBlockFormattingContext().getRightDownDistance(child_box));
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
Uu.p("child box.y = " + child_box.y); Uu.p("diff = " + diff);
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
if (child_box.width > box.width) { box.width = child_box.width;
c.addMaxWidth(box.getWidth()); if (child_box.getWidth() > box.getWidth()) { box.setWidth( child_box.getWidth() );
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
c.addMaxHeight(box.height);
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
System.out.println("doing a quick stop");
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
c.addMaxWidth(box.width);
c.addMaxWidth(box.getWidth());
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...