rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
{ if (ps != null) { try { ps.close(); } catch (Throwable 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; ...
catch (Throwable e) {}
catch (Throwable t) { }
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 commitTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("updating database for committing transaction " + tx); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds...
catch (SQLException e)
catch (Exception e)
public List deliveries(Serializable storeID, Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID + " and store " + storeID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWr...
catch (SQLException e)
catch (Exception e)
public int getMessageReferenceCount(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(sele...
selectXATransactions = sqlProperties.getProperty("SELECT_XA_TRANSACTIONS", selectXATransactions);
selectPreparedTransactions = sqlProperties.getProperty("SELECT_XA_TRANSACTIONS", selectPreparedTransactions);
protected void initSqlProperties() { insertDelivery = sqlProperties.getProperty("INSERT_DELIVERY", insertDelivery); deleteDelivery = sqlProperties.getProperty("DELETE_DELIVERY", deleteDelivery); updateDelivery = sqlProperties.getProperty("UPDATE_DELIVERY", updateDelivery); insertMessageRef = sq...
selectTransactionId = sqlProperties.getProperty("SELECT_TX_ID", selectTransactionId);
selectTransactionId = sqlProperties.getProperty("SELECT_TX_ID", selectTransactionId); prepareTransaction = sqlProperties.getProperty("PREPARE_TX", prepareTransaction);
protected void initSqlProperties() { insertDelivery = sqlProperties.getProperty("INSERT_DELIVERY", insertDelivery); deleteDelivery = sqlProperties.getProperty("DELETE_DELIVERY", deleteDelivery); updateDelivery = sqlProperties.getProperty("UPDATE_DELIVERY", updateDelivery); insertMessageRef = sq...
catch (SQLException e)
catch (Exception e)
public List messageRefs(Serializable storeID, Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID + " and store " + storeID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; Trans...
catch (SQLException e)
catch (Exception e)
public void removeAllMessageData(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing all message data for channel: " + channelID); } Connection conn = null; PreparedStatement ps1 = null; PreparedStatement ps2 = null; TransactionWrapper wrap = new Tran...
public boolean removeDelivery(Serializable channelID, Delivery d, Transaction tx) throws Exception
protected void removeDelivery(Serializable channelID, Delivery d, Transaction tx, Connection conn) throws Exception
public boolean removeDelivery(Serializable channelID, Delivery d, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing delivery " + d + " from channel: " + channelID + (tx == null ? " non-transactionally" : " on transaction: " + tx));} Connection conn = null; ...
Connection conn = null;
public boolean removeDelivery(Serializable channelID, Delivery d, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing delivery " + d + " from channel: " + channelID + (tx == null ? " non-transactionally" : " on transaction: " + tx));} Connection conn = null; ...
TransactionWrapper wrap = new TransactionWrapper();
public boolean removeDelivery(Serializable channelID, Delivery d, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing delivery " + d + " from channel: " + channelID + (tx == null ? " non-transactionally" : " on transaction: " + tx));} Connection conn = null; ...
conn = ds.getConnection();
public boolean removeDelivery(Serializable channelID, Delivery d, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing delivery " + d + " from channel: " + channelID + (tx == null ? " non-transactionally" : " on transaction: " + tx));} Connection conn = null; ...
} return updated == 1; } catch (SQLException e) { wrap.exceptionOccurred(); throw e;
}
public boolean removeDelivery(Serializable channelID, Delivery d, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing delivery " + d + " from channel: " + channelID + (tx == null ? " non-transactionally" : " on transaction: " + tx));} Connection conn = null; ...
if (conn != null) { try { conn.close(); } catch (Throwable t) {} } wrap.end();
public boolean removeDelivery(Serializable channelID, Delivery d, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing delivery " + d + " from channel: " + channelID + (tx == null ? " non-transactionally" : " on transaction: " + tx));} Connection conn = null; ...
catch (SQLException e)
catch (Exception e)
public boolean removeMessage(String messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); // get the reference count from the database ps = conn.p...
public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception
protected void removeReference(Serializable channelID, MessageReference ref, Connection conn) throws SQLException
public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(...
if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); }
if (log.isTraceEnabled()) { log.trace("Removing reference " + ref + " from channel: " + channelID);}
public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(...
Connection conn = null;
public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(...
TransactionWrapper wrap = new TransactionWrapper();
public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(...
conn = ds.getConnection();
public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(...
return rows == 1; } catch (SQLException e) { wrap.exceptionOccurred(); throw e;
public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(...
if (conn != null) { try { conn.close(); } catch (Throwable e) {} } wrap.end();
public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(...
catch (SQLException e)
catch (Exception e)
public Message retrieveMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn ...
rs = st.executeQuery(selectXATransactions);
rs = st.executeQuery(selectPreparedTransactions);
public List retrievePreparedTransactions() throws Exception { if (!storeXid) { return Collections.EMPTY_LIST; } Connection conn = null; Statement st = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { List transac...
byte[] globalTxId = this.getBytes(rs, 3, 0);
byte[] globalTxId = this.getBytes(rs, 4, 0);
public List retrievePreparedTransactions() throws Exception { if (!storeXid) { return Collections.EMPTY_LIST; } Connection conn = null; Statement st = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { List transac...
catch (SQLException e)
catch (Exception e)
public List retrievePreparedTransactions() throws Exception { if (!storeXid) { return Collections.EMPTY_LIST; } Connection conn = null; Statement st = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { List transac...
catch (SQLException e)
catch (Exception e)
public void rollbackTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Rolling back transaction:" + tx); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ...
catch (SQLException e)
catch (Exception e)
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count fr...
return s.append(",clickCount=").append(clickCount).toString();
s.append(",clickCount=").append(clickCount); s.append(",consumed=").append(consumed); return s.toString();
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case MOUSE_CLICKED: s.append("MOUSE_CLICKED,("); break; case MOUSE_PRESSED: s.append("MOUSE_PRESSED,("); break; case MOUSE_RELEASED: s.append("MOUSE_RELEASED,("); break...
if ( propertyByName( CSSName.BORDER_STYLE_TOP ).asIdentValue() == IdentValue.NONE ) { _drvBorderWidth.top = 0; } if ( propertyByName( CSSName.BORDER_STYLE_BOTTOM ).asIdentValue() == IdentValue.NONE ) { _drvBorderWidth.bottom = 0; } if ( propertyByName( CSSName.BORDER_STYLE_LEFT ).asIdentValue() == IdentValue.NONE ) { _...
public Border getBorderWidth( float parentWidth, float parentHeight ) { if ( _drvBorderWidth == null ) { _drvBorderWidth = deriveBorderInstance( new CSSName[]{CSSName.BORDER_WIDTH_TOP, CSSName.BORDER_WIDTH_BOTTOM, CSSName.BORDER_WIDTH_LEFT, CSSName.BORDER_WIDTH_RIGHT}, ...
public SwingContainerPeer(Container awtCont)
public SwingContainerPeer(Component awtCont)
public SwingContainerPeer(Container awtCont) { init(awtCont, null); }
}
protected void handleMouseEvent(MouseEvent ev) { Component comp = awtComponent.getComponentAt(ev.getPoint()); ComponentPeer peer = comp.getPeer(); if (awtComponent != comp && !comp.isLightweight() && peer instanceof SwingComponentPeer) { ev.translatePoint(comp.getX(), comp.getY()); ev.set...
}
protected void handleMouseMotionEvent(MouseEvent ev) { Component comp = awtComponent.getComponentAt(ev.getPoint()); ComponentPeer peer = comp.getPeer(); if (awtComponent != comp && !comp.isLightweight() && peer instanceof SwingComponentPeer) { ev.translatePoint(comp.getX(), comp.getY()); ...
public Component getComponentAt(Point p)
public Component getComponentAt(int x, int y)
public Component getComponentAt(Point p) { return getComponentAt (p.x, p.y); }
return getComponentAt (p.x, p.y);
return locate (x, y);
public Component getComponentAt(Point p) { return getComponentAt (p.x, p.y); }
RenderQueue.getInstance().dispatchLayoutEvent(new ReflowEvent(ReflowEvent.CANVAS_RESIZED,
queue.dispatchLayoutEvent(new ReflowEvent(ReflowEvent.CANVAS_RESIZED,
public void componentResized(ComponentEvent e) { Uu.p("componentResized() " + this.getSize()); Uu.p("viewport = " + enclosingScrollPane.getViewport().getSize()); if (doc != null) RenderQueue.getInstance().dispatchLayoutEvent(new ReflowEvent(ReflowEvent.CANVAS_RESIZED, ...
m_pnlBottom.add(m_pnlProgram); m_pnlBottom.add(m_pnlTurtle); m_pnlBottom.add(m_pnlDisplay);
m_pnlBotLeft.add(m_pnlProgram); m_pnlBotLeft.add(m_pnlTurtle); m_pnlBotLeft.add(m_pnlDisplay); m_pnlBottom.add(BorderLayout.WEST, m_pnlBotLeft);
public void init() { // Initialise the applets panel. setLayout(new BorderLayout()); setBackground(SystemColor.control); // Layout the left side top inner panel. m_pnlLeftTop.add(BorderLayout.NORTH, m_pnlGfxCmds); m_pnlLeftTop.add(BorderLayout.SOUTH, m_pnlFlowCmds); // Layout the left side panel. m_pnlLeft.a...
ClientDelivery dr = new ClientDelivery(msgs, consumerID);
ClientDelivery dr = new ClientDelivery(msgs, serverId, consumerID);
public void testCallback() throws Exception { int consumerID = 12345678; JBossMessage m1 = new JBossMessage(123); JBossMessage m2 = new JBossMessage(456); JBossMessage m3 = new JBossMessage(789); List msgs = new ArrayList(); MessagePr...
assertEquals(consumerID, dr2.getConsumerID());
assertEquals(serverId, dr2.getServerId()); assertEquals(consumerID, dr2.getConsumerId());
public void testCallback() throws Exception { int consumerID = 12345678; JBossMessage m1 = new JBossMessage(123); JBossMessage m2 = new JBossMessage(456); JBossMessage m3 = new JBossMessage(789); List msgs = new ArrayList(); MessagePr...
MessageCallbackHandler msgHandler = new MessageCallbackHandler();
MessageCallbackHandler msgHandler = new MessageCallbackHandler(isCC);
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); SimpleMetaData invocationMetaData = invocation.getMetaData(); if (...
this.layer = null;
public void detach() { detachChildren(); if (this.layer != null) { this.layer.detach(); } if (getParent() != null) { getParent().removeChild(this); } setParent(null); }
public JMSRemotingConnection(String serverLocatorURI) throws Exception
public JMSRemotingConnection(String serverLocatorURI) throws Throwable
public JMSRemotingConnection(String serverLocatorURI) throws Exception { id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); bindPort = PortUtil.findFreePort("localhost"); serverLocator = new InvokerLocator(serverLocatorURI); isMul...
if (log.isTraceEnabled()) { log.trace("Connecting with server URI:" + serverLocatorURI); }
final int MAX_RETRIES = 50; boolean completed = false; int count = 0; while (!completed && count < MAX_RETRIES) { try { setUpConnection();
public JMSRemotingConnection(String serverLocatorURI) throws Exception { id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); bindPort = PortUtil.findFreePort("localhost"); serverLocator = new InvokerLocator(serverLocatorURI); isMul...
String callbackServerURI; if (isMultiplex) { callbackServerURI = "multiplex: ":" + bindPort + "/?serverMultiplexId=" + id; } else { callbackServerURI = serverLocator.getProtocol() + ": ":" + bindPort; } client = new Client(serverLocator, getConfig());
completed = true; } catch (java.net.BindException e) { count++;
public JMSRemotingConnection(String serverLocatorURI) throws Exception { id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); bindPort = PortUtil.findFreePort("localhost"); serverLocator = new InvokerLocator(serverLocatorURI); isMul...
if (log.isTraceEnabled()) { log.trace("Created client"); } InvokerLocator callbackServerLocator = new InvokerLocator(callbackServerURI); if (log.isTraceEnabled()) { log.trace("Starting callback server with uri:" + callbackServerLocator.getLocatorURI()); } callbackServer = new Connector(); callbackServer.setInvokerL...
if (client != null) { client.disconnect(); } if (callbackServer != null) { try { callbackServer.stop(); callbackServer.destroy(); } catch (Exception ignore) { } } if (count == MAX_RETRIES) { throw new JBossJMSException("Cannot start callbackserver after " + MAX_RETRIES + " retries", e); } } }
public JMSRemotingConnection(String serverLocatorURI) throws Exception { id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); bindPort = PortUtil.findFreePort("localhost"); serverLocator = new InvokerLocator(serverLocatorURI); isMul...
public void close() {
public void close() throws Throwable {
public void close() { callbackServer.stop(); client.disconnect(); }
callbackServer.destroy();
public void close() { callbackServer.stop(); client.disconnect(); }
public static void adjustLineHeight(LineBox curr_line, InlineBox new_inline) { if (new_inline.height + new_inline.y > curr_line.height) { curr_line.height = new_inline.height + new_inline.y;
private static void adjustLineHeight(Context c, LineBox curr_line, InlineBox new_inline, int blockLineHeight, LineMetrics blockLineMetrics) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { LineMetrics metrics = FontUtil.get...
public static void adjustLineHeight(LineBox curr_line, InlineBox new_inline) { // Uu.p("calcing new height of line"); if (new_inline.height + new_inline.y > curr_line.height) { curr_line.height = new_inline.height + new_inline.y; } if (new_inline.baseline > curr_line.baseline)...
if (new_inline.baseline > curr_line.baseline) { curr_line.baseline = new_inline.baseline;
if (lineHeight > curr_line.height) { curr_line.height = lineHeight; } int raised = VerticalAlign.getBaselineOffset(c, curr_line, new_inline, blockLineHeight, blockLineMetrics); if (ascent + raised > curr_line.ascent) curr_line.ascent = ascent + raised; if (descent - raised > curr_line.descent) curr_line.descent = des...
public static void adjustLineHeight(LineBox curr_line, InlineBox new_inline) { // Uu.p("calcing new height of line"); if (new_inline.height + new_inline.y > curr_line.height) { curr_line.height = new_inline.height + new_inline.y; } if (new_inline.baseline > curr_line.baseline)...
InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle,
InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle,
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox cu...
Font font = FontUtil.getFont(c, style);
Font font = FontUtil.getFont(c);
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox cu...
Font font1 = FontUtil.getFont(c, style1);
Font font1 = FontUtil.getFont(c);
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox cu...
prev_inline, prev_align_inline, isFirstLetter, box.firstLetterStyle, box.firstLineStyle,
prev_align_inline, isFirstLetter, box.firstLetterStyle, box.firstLineStyle,
public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCurrentStyle().getBorderWidth(); Border margin = c.getCurrentSt...
saveLine(curr_line, currentStyle, prev_line, bounds.width, bounds.x, c, box, false);
saveLine(curr_line, currentStyle, prev_line, bounds.width, bounds.x, c, box, false, blockLineHeight);
public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCurrentStyle().getBorderWidth(); Border margin = c.getCurrentSt...
if (new_inline instanceof InlineTextBox) { adjustLineHeight(curr_line, new_inline);
if (!new_inline.floated && !new_inline.absolute) { adjustLineHeight(c, curr_line, new_inline, blockLineHeight, blockLineMetrics);
public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCurrentStyle().getBorderWidth(); Border margin = c.getCurrentSt...
saveLine(curr_line, currentStyle, prev_line, bounds.width, bounds.x, c, box, true);
saveLine(curr_line, currentStyle, prev_line, bounds.width, bounds.x, c, box, true, blockLineHeight);
public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCurrentStyle().getBorderWidth(); Border margin = c.getCurrentSt...
Context c, Box block, boolean last) {
Context c, Box block, boolean last, int minHeight) {
private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, int width, int x, Context c, Box block, boolean last) { c.setFirstLine(false); // account for text-align TextAlign.adjustTextAlignment(c, style, line_to_save, width, x, l...
VerticalAlign.setupVerticalAlign(line_to_save);
private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, int width, int x, Context c, Box block, boolean last) { c.setFirstLine(false); // account for text-align TextAlign.adjustTextAlignment(c, style, line_to_save, width, x, l...
if (line_to_save.height != 0) { if (line_to_save.height < minHeight) line_to_save.height = minHeight; }
private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, int width, int x, Context c, Box block, boolean last) { c.setFirstLine(false); // account for text-align TextAlign.adjustTextAlignment(c, style, line_to_save, width, x, l...
eOffset = TREE_ICON_GAP + editingIcon.getIconWidth() + ICON_TEXT_GAP;
eOffset = editingIcon.getIconWidth();
public void doLayout() { // The offset of the editing component. int eOffset; // Move the component to the left, leaving room for the editing icon: if (editingIcon != null) eOffset = TREE_ICON_GAP + editingIcon.getIconWidth() + ICON_TEXT_GAP; else eOffset = 0; Rectangl...
c.setSize(bounds.width - eOffset - TREE_ICON_GAP, bounds.height);
c.setSize(bounds.width - eOffset, bounds.height);
public void doLayout() { // The offset of the editing component. int eOffset; // Move the component to the left, leaving room for the editing icon: if (editingIcon != null) eOffset = TREE_ICON_GAP + editingIcon.getIconWidth() + ICON_TEXT_GAP; else eOffset = 0; Rectangl...
editingIcon.paintIcon(this, g, TREE_ICON_GAP, 0);
editingIcon.paintIcon(this, g, 0, 0);
public void paint(Graphics g) { if (editingIcon != null) { // From the previous version, the left margin is taken as half // of the icon width. editingIcon.paintIcon(this, g, TREE_ICON_GAP, 0); } super.paint(g); }
PreparedStatement stmt = null;
public Step createCurrentStep(long entryId, int wfStepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO "...
String sql = "INSERT INTO " + currentTable + " (" + stepId + "," + stepEntryId + ", " + stepStepId + ", " + stepActionId + ", " + stepOwner + ", " + stepStartDate + ", " + stepDueDate + ", " + stepFinishDate + ", " + stepStatus + ", " + stepCaller + " ) VALUES (?, ?, ?, null, ?, ?, ?, null, ?, null)"; if (log.isDebugE...
long id = createCurrentStep(conn, entryId, wfStepId, owner, startDate, dueDate, status); addPreviousSteps(conn, id, previousIds);
public Step createCurrentStep(long entryId, int wfStepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO "...
cleanup(conn, stmt, null);
cleanup(conn, null, null);
public Step createCurrentStep(long entryId, int wfStepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO "...
entrySequence = (String) props.get("entry.sequence"); stepSequence = (String) props.get("step.sequence"); entryTable = (String) props.get("entry.table"); entryId = (String) props.get("entry.id"); entryName = (String) props.get("entry.name"); entryState = (String) props.get("entry.state"); historyTable = (String) props....
entrySequence = getInitProperty(props, "entry.sequence", "SELECT nextVal('seq_os_wfentry')"); stepSequence = getInitProperty(props, "step.sequence", "SELECT nextVal('seq_os_currentsteps')"); entryTable = getInitProperty(props, "entry.table", "OS_WFENTRY"); entryId = getInitProperty(props, "entry.id", "ID"); entryName =...
public void init(Map props) throws StoreException { entrySequence = (String) props.get("entry.sequence"); stepSequence = (String) props.get("step.sequence"); entryTable = (String) props.get("entry.table"); entryId = (String) props.get("entry.id"); entryName = (String) props.get("e...
int numSessions, int numMessages, String selector)
int numSessions, int numMessages, long timeToStart, String selector)
public BrowserJob(String slaveURL, Properties jndiProperties, String destinationName, String connectionFactoryJndiName, int numConnections, int numSessions, int numMessages, String selector) { super (slaveURL, jndiProperties, destinationName, connectionFactoryJndiName, numConnections, ...
numMessages);
numMessages, timeToStart);
public BrowserJob(String slaveURL, Properties jndiProperties, String destinationName, String connectionFactoryJndiName, int numConnections, int numSessions, int numMessages, String selector) { super (slaveURL, jndiProperties, destinationName, connectionFactoryJndiName, numConnections, ...
protected void throw4(InputStream in, String id)
void throw4(InputStream in, String id)
protected void throw4(InputStream in, String id) throws MARSHAL, InvalidName, CannotProceed, NotFound { if (id.equals(NotFoundHelper.id())) throw NotFoundHelper.read(in); else if (id.equals(CannotProceedHelper.id())) throw CannotProceedHelper.read(in); else if (id.equals(InvalidNam...
protected void throw5(InputStream in, String id)
void throw5(InputStream in, String id)
protected void throw5(InputStream in, String id) throws MARSHAL, AlreadyBound, InvalidName, CannotProceed, NotFound { if (id.equals(AlreadyBoundHelper.id())) throw AlreadyBoundHelper.read(in); else throw4(in, id); }
public Class getCategory()
public final Class getCategory()
public Class getCategory() { return JobState.class; }
public String getName()
public final String getName()
public String getName() { return "job-state"; }
Map nameMap = (Map)nameMaps.get(binding.getNodeId());
Map nameMap = (Map)nameMaps.get(new Integer(binding.getNodeId()));
protected void addToNameMap(Binding binding) { Map nameMap = (Map)nameMaps.get(binding.getNodeId()); if (nameMap == null) { nameMap = new LinkedHashMap(); nameMaps.put(binding.getNodeId(), nameMap); } nameMap.put(binding.getQueue().getName(), binding); ...
nameMaps.put(binding.getNodeId(), nameMap);
nameMaps.put(new Integer(binding.getNodeId()), nameMap);
protected void addToNameMap(Binding binding) { Map nameMap = (Map)nameMaps.get(binding.getNodeId()); if (nameMap == null) { nameMap = new LinkedHashMap(); nameMaps.put(binding.getNodeId(), nameMap); } nameMap.put(binding.getQueue().getName(), binding); ...
Map nameMap = (Map)nameMaps.get(this.nodeId);
Map nameMap = (Map)nameMaps.get(new Integer(this.nodeId));
public Binding bindQueue(String condition, Queue queue) throws Exception { if (queue.getName() == null) { throw new IllegalArgumentException("Queue name is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); } l...
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); Queue queue; if (nodeId.equals(this.nodeId)) { QueuedEx...
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); Queue queue; if (nodeId.equals(this.nodeId)) { QueuedEx...
ps.setString(2, this.nodeId);
ps.setInt(2, this.nodeId);
protected boolean deleteBinding(String queueName) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("DELETE_BINDING")...
Map nameMap = (Map)nameMaps.get(this.nodeId);
Map nameMap = (Map)nameMaps.get(new Integer(this.nodeId));
public Binding getBindingForQueueName(String queueName) throws Exception { if (queueName == null) { throw new IllegalArgumentException("Queue name is null"); } lock.readLock().acquire(); try { Map nameMap = (Map)nameMaps.get(this.nodeId); ...
"CREATE TABLE JMS_POSTOFFICE (POSTOFFICE_NAME VARCHAR(255), NODE_ID VARCHAR(255)," +
"CREATE TABLE JMS_POSTOFFICE (POSTOFFICE_NAME VARCHAR(255), NODE_ID INTEGER," +
protected Map getDefaultDDLStatements() { Map map = new LinkedHashMap(); map.put("CREATE_POSTOFFICE_TABLE", "CREATE TABLE JMS_POSTOFFICE (POSTOFFICE_NAME VARCHAR(255), NODE_ID VARCHAR(255)," + "QUEUE_NAME VARCHAR(1023), CONDITION VARCHAR(1023), " + "SELECTOR VARCHAR...
ps.setString(2, this.nodeId);
ps.setInt(2, this.nodeId);
protected void insertBinding(Binding binding) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("INSERT...
String nodeId = rs.getString(1);
int nodeId = rs.getInt(1);
protected void loadBindings() throws Exception { lock.writeLock().acquire(); log.info("loading bindings"); Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn =...
protected Binding removeBinding(String nodeId, String queueName)
protected Binding removeBinding(int nodeId, String queueName)
protected Binding removeBinding(String nodeId, String queueName) { Binding binding = removeFromNameMap(nodeId, queueName); removeFromConditionMap(binding); return binding; }
protected Binding removeFromNameMap(String nodeId, String queueName)
protected Binding removeFromNameMap(int nodeId, String queueName)
protected Binding removeFromNameMap(String nodeId, String queueName) { if (queueName == null) { throw new IllegalArgumentException("Queue name is null"); } Map nameMap = (Map)nameMaps.get(nodeId); if (nameMap == null) { throw new IllegalArgumentExcep...
Map nameMap = (Map)nameMaps.get(nodeId);
Map nameMap = (Map)nameMaps.get(new Integer(nodeId));
protected Binding removeFromNameMap(String nodeId, String queueName) { if (queueName == null) { throw new IllegalArgumentException("Queue name is null"); } Map nameMap = (Map)nameMaps.get(nodeId); if (nameMap == null) { throw new IllegalArgumentExcep...
nameMaps.remove(nodeId);
nameMaps.remove(new Integer(nodeId));
protected Binding removeFromNameMap(String nodeId, String queueName) { if (queueName == null) { throw new IllegalArgumentException("Queue name is null"); } Map nameMap = (Map)nameMaps.get(nodeId); if (nameMap == null) { throw new IllegalArgumentExcep...
if (!binding.getNodeId().equals(this.nodeId))
if (binding.getNodeId() != this.nodeId)
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 key is null"); ...
log.debug("deleted " + rows);
protected void deleteAllData() throws Exception { try { InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lookup("java:/DefaultDS"); javax.tra...
} if (transaction) { startTransactionManager();
public void start() throws Exception { try { configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); //TODO: need to think more about this; if I don't do it, though, bind() fails because it tries to use "java.namin...
startManagedConnectionFactory(DEFAULTDS_MANAGED_CONNECTION_FACTORY_OBJECT_NAME, "jdbc:hsqldb:mem:test", "org.hsqldb.jdbcDriver", "sa");
startManagedConnectionFactory(DEFAULTDS_MANAGED_CONNECTION_FACTORY_OBJECT_NAME);
public void start() throws Exception { try { configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); //TODO: need to think more about this; if I don't do it, though, bind() fails because it tries to use "java.namin...
deleteAllData();
public void start() throws Exception { try { configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); //TODO: need to think more about this; if I don't do it, though, bind() fails because it tries to use "java.namin...
private void startManagedConnectionFactory(ObjectName on, String connectionURL, String driverClass, String userName) throws Exception
private void startManagedConnectionFactory(ObjectName on) throws Exception
private void startManagedConnectionFactory(ObjectName on, String connectionURL, String driverClass, String userName) throws Exception { LocalManagedConnectionFactory mcf = new...
0,
protected Message createMessage(byte i, boolean reliable) throws Exception { HashMap coreHeaders = generateFilledMap(true); HashMap jmsProperties = generateFilledMap(false); JBossMapMessage m = new JBossMapMessage(i, reliable, System...
String topicName, String selector)
String topicName, String selector, boolean noLocal)
private DurableSubscription internalCreateDurableSubscription(String clientID, String subName, String topicName, String selector) throws JMSException { Topic topic = (Topic)serverPeer.getDestinationManager().getCoreDestination(false, topi...
DurableSubscription sub = new DurableSubscription(clientID, subName, topic, selector, ms, tl);
DurableSubscription sub = new DurableSubscription(clientID, subName, topic, selector, noLocal, ms, tl);
private DurableSubscription internalCreateDurableSubscription(String clientID, String subName, String topicName, String selector) throws JMSException { Topic topic = (Topic)serverPeer.getDestinationManager().getCoreDestination(false, topi...
return 0F;
Element el = getElement(); checkPainter(); GlyphPainter painter = getGlyphPainter(); TabExpander tabEx = null; View parent = getParent(); if (parent instanceof TabExpander) tabEx = (TabExpander) parent; float span = painter.getSpan(this, el.getStartOffset(), el.getEndOffset(), tabEx, 0.F); return span;
public float getPreferredSpan(int axis) { // TODO: Implement me. return 0F; }
return null;
GlyphPainter p = getGlyphPainter(); return p.modelToView(this, pos, b, a);
public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException { // Implement me. return null; }
Element el = getElement(); checkPainter(); getGlyphPainter().paint(this, g, a, el.getStartOffset(), el.getEndOffset());
public void paint(Graphics g, Shape a) { // TODO: Implement me. }
super("Duplicate flag passed in " + flags); if (flags == null) throw new NullPointerException("Null flags value passed to constructor.");
public DuplicateFormatFlagsException(String flags) { this.flags = flags; }