rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public MessageCallbackHandler(boolean isCC, int ackMode, Executor executor, Executor pooledExecutor)
public MessageCallbackHandler(boolean isCC, int ackMode, Executor executor, Executor pooledExecutor, SessionDelegate sess, ConsumerDelegate cons, int consumerID)
public MessageCallbackHandler(boolean isCC, int ackMode, Executor executor, Executor pooledExecutor) { buffer = new SynchronousChannel(); isConnectionConsumer = isCC; receiverLock = new Object(); activationLock = new Object(); this.ackMode = ackMode; thi...
this.sessionDelegate = sess; this.consumerDelegate = cons; this.consumerID = consumerID;
public MessageCallbackHandler(boolean isCC, int ackMode, Executor executor, Executor pooledExecutor) { buffer = new SynchronousChannel(); isConnectionConsumer = isCC; receiverLock = new Object(); activationLock = new Object(); this.ackMode = ackMode; thi...
if (log.isTraceEnabled()) { log.trace("initiating activation"); }
if (trace) { log.trace("initiating activation"); }
protected void activateConsumer() throws JMSException { // We execute this on a separate thread to avoid the case where the asynchronous delivery // arrives before we have returned from the synchronus call, which would cause us to lose // the message try { if (log.isTraceEnab...
String consumerID,
int consumerID,
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String consumerID, boolean isConnectionConsumer, ...
if (log.isTraceEnabled()) { log.trace("cancelling " + Util.guidToString(id)); }
if (trace) { log.trace("cancelling " + Util.guidToString(id)); }
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String consumerID, boolean isConnectionConsumer, ...
if (log.isTraceEnabled()) { log.trace("ignoring exception on " + Util.guidToString(id)); }
if (trace) { log.trace("ignoring exception on " + Util.guidToString(id)); }
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String consumerID, boolean isConnectionConsumer, ...
MessageDelegate del = (MessageDelegate)consumerDelegate.getMessageNow();
MessageDelegate del = (MessageDelegate)consumerDelegate.getMessageNow(false);
protected Message getMessageNow() throws JMSException { MessageDelegate del = (MessageDelegate)consumerDelegate.getMessageNow(); if (del != null) { return processMessage(del); } else { return null; } }
String consumerID,
int consumerID,
protected static void postDeliver(SessionDelegate sess, String consumerID, Message m, boolean isConnectionConsumer) throws JMSException { //If this is the callback-handler for a connection consumer...
String consumerID,
int consumerID,
protected static void preDeliver(SessionDelegate sess, String consumerID, Message m, boolean isConnectionConsumer) throws JMSException { //If this is the callback-handler for a connection consumer we ...
if (log.isTraceEnabled()) log.trace("receive with no timeout");
if (trace) log.trace("receive with no timeout");
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
if (log.isTraceEnabled()) { log.trace("got " + m); }
if (trace) { log.trace("got " + m); }
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
if (log.isTraceEnabled()) { log.trace("receive noWait"); }
if (trace) { log.trace("receive noWait"); }
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
if (log.isTraceEnabled()) { log.trace("no message available"); }
if (trace) { log.trace("no message available"); }
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
if (log.isTraceEnabled()) { log.trace("receive timeout " + timeout + " ms, blocking poll on queue"); }
if (trace) { log.trace("receive timeout " + timeout + " ms, blocking poll on queue"); }
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
if (log.isTraceEnabled()) { log.trace(timeout + " ms timeout expired"); }
if (trace) { log.trace(timeout + " ms timeout expired"); }
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
if (log.isTraceEnabled()) { log.trace("Thread was interrupted"); }
if (trace) { log.trace("Thread was interrupted"); }
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
if (log.isTraceEnabled()) { log.trace("message " + m + " is not expired, returning it to the caller"); }
if (trace) { log.trace("message " + m + " is not expired, returning it to the caller"); }
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp...
if (log.isTraceEnabled()) { log.trace("installed listener " + listener); }
if (trace) { log.trace("installed listener " + listener); }
public synchronized void setMessageListener(MessageListener listener) throws JMSException { // JMS consumer is single threaded, so it shouldn't be possible to set a MessageListener // while another thread is receiving if (receiverThread != null) { // Should never happen th...
private void cleanup(Connection connection, Statement statement, ResultSet result) {
protected void cleanup(Connection connection, Statement statement, ResultSet result) {
private void cleanup(Connection connection, Statement statement, ResultSet result) { if (result != null) { try { result.close(); } catch (SQLException ex) { log.error("Error closing resultset", ex); } } if (statement != null) { ...
inline.whitespace = WhitespaceStripper.getWhitespace(c.getCurrentStyle());
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc...
inline.whitespace = WhitespaceStripper.getWhitespace(c.getCurrentStyle());
private static void prepareBox(InlineBox prev_align, InlineTextBox inline, Context c) { inline.whitespace = WhitespaceStripper.getWhitespace(c.getCurrentStyle()); if (prev_align != null && !prev_align.break_after && !inline.break_before ) { inline.x = pr...
private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, int width, int x,
private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, Rectangle bounds,
private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, int width, int x, Context c, Box block, boolean last, int minHeight, LinkedList pushedOnFirstLine) { if (c.hasFirstLineStyles()) { //first pop element styles pushed on first...
if (c.isPrint() && line_to_save.crossesPageBreak(c)) { line_to_save.moveToNextPage(c, bounds); }
private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, int width, int x, Context c, Box block, boolean last, int minHeight, LinkedList pushedOnFirstLine) { if (c.hasFirstLineStyles()) { //first pop element styles pushed on first...
if(cell == null) { return; } else
if(cell != null)
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(graph.getModel().isEdge(cell)) { ...
GraphConstants.setForeground(((ResultEdge)cell).getAttributes(), color); view.update(); view.refresh(graph.getModel(), graph.getGraphLayoutCache(), false); graph.getSelectionModel().setSelectionCell(view.getCell());
Map map = new HashMap(1); GraphConstants.setForeground(map, color); GraphConstants.setLineColor(map, color); graph.getGraphLayoutCache().edit(new Object[]{view.getCell()}, map);
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(graph.getModel().isEdge(cell)) { ...
pos.append(primVal.getCssText().trim() + suffix);
StringBuffer s = new StringBuffer(primVal.getCssText().trim()); if (s.charAt(0) == '"') s.deleteCharAt(0); if (s.charAt(s.length() - 1) == '"') s.deleteCharAt(s.length() - 1); pos.append(s + suffix);
protected Iterator doBuildDeclarations(CSSPrimitiveValue[] primVals, boolean important, CSSName cssName, int origin) { StringBuffer pos = new StringBuffer(); String suffix = " ...
this.rgbColorValue = primitive.getRGBColorValue();
public FSCssValue( CSSName cssName, org.w3c.dom.css.CSSPrimitiveValue primitive ) { this.cssName = cssName; this.propName = cssName.toString(); this.primitiveType = primitive.getPrimitiveType(); this._cssText = ( primitiveType == CSSPrimitiveValue.CSS_STRING ? primitive.ge...
public synchronized void start(String containerConfig) throws Exception
public synchronized void start(String containerConfig, boolean clearDatabase) throws Exception
public synchronized void start(String containerConfig) throws Exception { if (isStarted()) { return; } log.debug("starting service container"); try { setEnvironmentServerIndex(serverIndex); sc = new ServiceContainer(containerConfig, null, serverIndex); ...
sc.start();
sc.start(clearDatabase);
public synchronized void start(String containerConfig) throws Exception { if (isStarted()) { return; } log.debug("starting service container"); try { setEnvironmentServerIndex(serverIndex); sc = new ServiceContainer(containerConfig, null, serverIndex); ...
NodeList args = function.getElementsByTagName("arg");
List args = XMLUtil.getChildElements(function, "arg");
protected void init(Element function) { type = function.getAttribute("type"); try { setId(Integer.parseInt(function.getAttribute("id"))); } catch (NumberFormatException e) { } if (function.getAttribute("name") != null) { name = function.getAttribute("name"); ...
for (int l = 0; l < args.getLength(); l++) { Element arg = (Element) args.item(l);
for (int l = 0; l < args.size(); l++) { Element arg = (Element) args.get(l);
protected void init(Element function) { type = function.getAttribute("type"); try { setId(Integer.parseInt(function.getAttribute("id"))); } catch (NumberFormatException e) { } if (function.getAttribute("name") != null) { name = function.getAttribute("name"); ...
public void onMessage(Message message)
public synchronized void onMessage(Message message)
public void onMessage(Message message) { try { log.trace("Received message"); TextMessage tm = (TextMessage)message; if (!tm.getText().equals("testing testing")) { failed = true; } ...
log.trace("Received message");
log.trace("Received message " + this);
public void onMessage(Message message) { try { log.trace("Received message"); TextMessage tm = (TextMessage)message; if (!tm.getText().equals("testing testing")) { failed = true; } ...
ServerManagement.undeployQueue("Queue");
public void tearDown() throws Exception { ServerManagement.deInit(); super.tearDown(); }
throw new UnsupportedOperationException("not yet implemented");
Date now = new Date(); return now.getTime();
public long getLastModified() throws IOException { throw new UnsupportedOperationException("not yet implemented"); }
Border margin = c.getCurrentStyle().getMarginWidth(width, height, c.getCtx());
Border margin = block.getMarginWidth(c, width);
public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); Border margin = c.getCurrentStyle().getMarginWidth(width, height, c.getCtx()); Rectangle bounds = new Rectangle(block.x + margin.left, bloc...
public boolean canInitialize(String workflowName, int initialState) throws WorkflowException {
public boolean canInitialize(String workflowName, int initialState) {
public boolean canInitialize(String workflowName, int initialState) throws WorkflowException { return new BasicWorkflow(getRemoteUser()).canInitialize(workflowName, initialState); }
public boolean canModifyEntryState(long id, int newState) throws WorkflowException {
public boolean canModifyEntryState(long id, int newState) {
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { return new BasicWorkflow(getRemoteUser()).canModifyEntryState(id, newState); }
public int[] getAvailableActions(long id) throws WorkflowException {
public int[] getAvailableActions(long id) {
public int[] getAvailableActions(long id) throws WorkflowException { return new BasicWorkflow(getRemoteUser()).getAvailableActions(id); }
public List getCurrentSteps(long id) throws StoreException {
public List getCurrentSteps(long id) {
public List getCurrentSteps(long id) throws StoreException { return new BasicWorkflow(getRemoteUser()).getCurrentSteps(id); }
public int getEntryState(long id) throws WorkflowException {
public int getEntryState(long id) {
public int getEntryState(long id) throws WorkflowException { return new BasicWorkflow(getRemoteUser()).getEntryState(id); }
public List getHistorySteps(long id) throws StoreException {
public List getHistorySteps(long id) {
public List getHistorySteps(long id) throws StoreException { return new BasicWorkflow(getRemoteUser()).getHistorySteps(id); }
public PropertySet getPropertySet(long id) throws StoreException {
public PropertySet getPropertySet(long id) {
public PropertySet getPropertySet(long id) throws StoreException { return new BasicWorkflow(getRemoteUser()).getPropertySet(id); }
public List getSecurityPermissions(long id) throws WorkflowException {
public List getSecurityPermissions(long id) {
public List getSecurityPermissions(long id) throws WorkflowException { return new BasicWorkflow(getRemoteUser()).getSecurityPermissions(id); }
public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws FactoryException {
public WorkflowDescriptor getWorkflowDescriptor(String workflowName) {
public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws FactoryException { return new BasicWorkflow(getRemoteUser()).getWorkflowDescriptor(workflowName); }
public String getWorkflowName(long id) throws StoreException {
public String getWorkflowName(long id) {
public String getWorkflowName(long id) throws StoreException { return new BasicWorkflow(getRemoteUser()).getWorkflowName(id); }
public String[] getWorkflowNames() throws FactoryException {
public String[] getWorkflowNames() {
public String[] getWorkflowNames() throws FactoryException { return new BasicWorkflow(getRemoteUser()).getWorkflowNames(); }
try { panel.loadPage("demo:demos/splash/splash.html"); } catch (Exception ex) { u.p(ex); }
public void init() { logger.info("creating UI"); actions = new BrowserActions(this); actions.init(); panel = new BrowserPanel(this, new FrameBrowserPanelListener()); panel.init(); panel.createLayout(); panel.createActions(); menu = new BrowserMenuBar(t...
throws NotImplementedException
public Shape createStrokedShape(Shape s) throws NotImplementedException { // FIXME: Implement this throw new Error("not implemented"); }
throw new Error("not implemented");
PathIterator pi = s.getPathIterator( new AffineTransform() ); if( dash == null ) return solidStroke( pi ); return dashedStroke( pi );
public Shape createStrokedShape(Shape s) throws NotImplementedException { // FIXME: Implement this throw new Error("not implemented"); }
SessionState theState = getSessionState(invocation);
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Session...
String currConsumerID = theState.getAsfConsumerID();
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Session...
if (currConsumerID != null && currConsumerID != theConsumerID) { throw new IllegalStateException("Cannot receive messages from more than one receiver"); } theState.setAsfConsumerID(theConsumerID);
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Session...
sessions = new ConcurrentReaderHashMap();
public ServerPeer(int serverPeerID, String defaultQueueJNDIContext, String defaultTopicJNDIContext) throws Exception { this.serverPeerID = serverPeerID; this.defaultQueueJNDIContext = defaultQueueJNDIContext; this.defaultTopicJNDIContext = defaultTopicJNDICont...
box.node.getNodeName() != "body")) {
box.node.getNodeName() != "body") && !(box instanceof BlockBox)) {
public void mouseDragged(MouseEvent e) { if(e.getComponent() instanceof HTMLPanel) { panel = (HTMLPanel)e.getComponent(); Box box = panel.findBox(e.getX(),e.getY()); if(box == null) return; //u.p("pressed " + box); // if box is text node then start selec...
panel.getContext().setSelectionEnd(box); panel.getContext().setSelectionEndX(x+1);
public void mousePressed(MouseEvent e) { if(e.getComponent() instanceof HTMLPanel) { panel = (HTMLPanel)e.getComponent(); Box box = panel.findBox(e.getX(),e.getY()); if(box == null) return; // if box is text node then start selection if(box instanceof In...
edit.add(copy); add(edit);
public void createLayout() { file.add(open_file); file.add(quit); add(file); view.add(view_source); add(view); demos.add(new LoadAction("Borders","demo:demos/border.xhtml")); demos.add(new LoadAction("Backgrounds","demo:demos/background.xhtml")); ...
edit = new JMenu("Edit"); copy = new JMenuItem("Copy");
public void init() { file = new JMenu("File"); open_file = new JMenuItem("Open File..."); quit = new JMenuItem("Quit"); debug = new JMenu("Debug"); demos = new JMenu("Demos"); view = new JMenu("View"); view_source = new JMenuItem("Page Source"); }
protected void remove(DequeNode node)
private void remove(DequeNode node)
protected void remove(DequeNode node) { if (head == node) { if (node.next != null) { head = node.next; } else { head = null; } } if (tail == node) { if (node.prev != null) { tail = node.p...
!InlineLayout.isBlockNode(box.getRealElement(),c)) ||
!DefaultLayout.isBlockNode(box.getRealElement(),c)) ||
public static boolean isBlockOrInlineElementBox(Context c, Box box) { if((box.node.getNodeType()==Node.TEXT_NODE && !InlineLayout.isBlockNode(box.getRealElement(),c)) || box.isElement()) { return true; } return false; }
File file = new File(dir, name).getCanonicalFile(); if (file.exists())
File file = walkPathComponents(name); if (file == null) return null;
Resource getResource(String name) { try { File file = new File(dir, name).getCanonicalFile(); if (file.exists()) return new FileResource(this, file); } catch (IOException e) { // Fall through... } return null; }
Shape result = child.modelToView(pos, a, bias);
Rectangle r = a.getBounds(); childAllocation(childIndex, r); Shape result = child.modelToView(pos, r, bias);
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex != -1) { View child = getView(childIndex); Shape result = child.modelToView(pos, a, bias); if (result == null) throw new As...
{ throw new AssertionError("No child views found where child views are " + "expected. pos = " + pos + ", bias = " + bias); }
throw new BadLocationException("No child view for the specified location", pos);
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex != -1) { View child = getView(childIndex); Shape result = child.modelToView(pos, a, bias); if (result == null) throw new As...
return 0; }
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { Rectangle r = getInsideAllocation(a); View view = getViewAtPoint((int) x, (int) y, r); return view.viewToModel(x, y, a, b); }
m.setPersisted(true);
protected void handleBeforePrepare(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //We only need to lock on the adds List refs = new ArrayList(refsToAdd.size()); Iterator iter = refsToAdd.iterator(); while (iter.hasNext()) { ChannelRefPair pair = (Chann...
sDbgLogger.setLevel(Level.OFF);
public XRValueImpl( CSSValue domCSSValue, String domPriority ) { _domCSSValue = domCSSValue; _domValueTextClean = getCssTextClean(); _domPriority = domPriority; _newPrimitiveValueType = -1; _requiresComputation = ! ValueConstants.isAbsoluteUnit(domCSSValue); if ( Va...
if(inline.element != null) { if(inline.element.hasAttribute("id")) { c.addIDBox(inline.element.getAttribute("id"),inline); } }
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc...
from = ((WorkflowPort)((ResultEdge)view.getCell()).getSource()).getIndex(); to = ((WorkflowPort)((ResultEdge)view.getCell()).getTarget()).getIndex();
public ResultPosition(WorkflowGraph graph, ResultEdge edge) { id = edge.getDescriptor().getId(); EdgeView view = (EdgeView)graph.getGraphLayoutCache().getMapping(edge, false); labelPos = view.getLabelPosition(); lineWidth = GraphConstants.getLineWidth(edge.getAttributes()); color = GraphConstants.getF...
buf.append('>'); writer.println(buf.toString()); for(int i = 0; i < routingPoints.size(); i++)
buf.append(" from=\"").append(from).append('\"'); buf.append(" to=\"").append(to).append('\"'); writer.print(buf.toString()); if(routingPoints.size() > 0)
public void writeXML(PrintWriter writer, int indent) { XMLUtil.printIndent(writer, indent); StringBuffer buf = new StringBuffer(); buf.append("<connector "); buf.append("id=\"").append(id).append('\"'); buf.append(" linewidth=\"").append(lineWidth).append('\"'); buf.append(" color=\"").append(color...
StringBuffer pointbuf = new StringBuffer(); XMLUtil.printIndent(writer, indent + 1); pointbuf.append("<routing"); pointbuf.append(" id=\"").append(id).append('\"'); pointbuf.append(" x=\"").append(((Point)routingPoints.get(i)).x).append('\"'); pointbuf.append(" y=\"").append(((Point)routingPoints.get(i)).y).append('\"'...
writer.println('>'); for(int i = 0; i < routingPoints.size(); i++) { StringBuffer pointbuf = new StringBuffer(); XMLUtil.printIndent(writer, indent + 1); pointbuf.append("<routing"); pointbuf.append(" id=\"").append(id).append('\"'); pointbuf.append(" x=\"").append(((Point)routingPoints.get(i)).x).append('\"'); pointbu...
public void writeXML(PrintWriter writer, int indent) { XMLUtil.printIndent(writer, indent); StringBuffer buf = new StringBuffer(); buf.append("<connector "); buf.append("id=\"").append(id).append('\"'); buf.append(" linewidth=\"").append(lineWidth).append('\"'); buf.append(" color=\"").append(color...
XMLUtil.printIndent(writer, indent++); writer.println("</connector>");
else { writer.println("/>"); }
public void writeXML(PrintWriter writer, int indent) { XMLUtil.printIndent(writer, indent); StringBuffer buf = new StringBuffer(); buf.append("<connector "); buf.append("id=\"").append(id).append('\"'); buf.append(" linewidth=\"").append(lineWidth).append('\"'); buf.append(" color=\"").append(color...
if (box.getBorderColor() == null) { box.setBorderColor(ctx.css.getStyle(box.getRealElement()).getBorderColor());
if (box.getBorderColor() == null) { box.border_color = ctx.css.getStyle(box.getRealElement()).getBorderColor();
public void paint(Context ctx, Box box) { //u.p("checking: " + box); //u.p("hashcode = " + box.hashCode()); if (box.border == null) return; Graphics g = ctx.getGraphics(); // TODO: color is per-side ((PWW 13/08/04)) //u.p("border = " + ctx.css.getBorderColor(box.getRealElem...
setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
void init() { dragEnabled = false; fixedCellHeight = -1; fixedCellWidth = -1; layoutOrientation = VERTICAL; opaque = true; valueIsAdjusting = false; visibleRowCount = 8; cellRenderer = new DefaultListCellRenderer(); listListener = new ListListener(); setModel(new DefaultListModel()); ...
if (log.isTraceEnabled()) { log.trace("Method is " + methodName); }
if (log.isTraceEnabled()) { log.trace("handling " + methodName); }
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); Object[] args = mi.ge...
public List deliveries(Serializable channelID) throws Exception
public List deliveries(Serializable storeID, Serializable channelID) throws Exception
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try ...
if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); }
if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID + " and store " + storeID); }
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try ...
String sql = "SELECT MESSAGEID, STOREID FROM DELIVERY " + "WHERE CHANNELID=? AND (STATE='C' OR STATE='-')";
String sql = "SELECT MESSAGEID FROM DELIVERY " + "WHERE CHANNELID=? AND STOREID=? AND STATE='C'";
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try ...
String id = rs.getString(1); String storeID = rs.getString(2); result.add(new StorageIdentifier(id, storeID));
String id = rs.getString(1); result.add(id);
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try ...
public List messages(Serializable channelID) throws Exception
public List messages(Serializable storeID, Serializable channelID) throws Exception
public List messages(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID); }
if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID + " and store " + storeID); }
public List messages(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
String sql = "SELECT MESSAGEID, STOREID FROM MESSAGE_REFERENCE WHERE CHANNELID=? AND STATE='C'";
String sql = "SELECT MESSAGEID FROM MESSAGE_REFERENCE WHERE CHANNELID=? AND STOREID=? AND STATE='C'";
public List messages(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
String id = rs.getString(1); String storeID = rs.getString(2); result.add(new StorageIdentifier(id, storeID));
String id = rs.getString(1); result.add(id);
public List messages(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
log.info("De-initialising");
log.debug(this + " de-initializing");
public void deInit() { log.info("De-initialising"); try { sess.close(); } catch (Throwable e) { log.error("Failed to deInit()", e); failed = true; } }
protected void doThrottle()
private void doThrottle(long start)
protected void doThrottle() { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
if (rate == 0)
long plannedTime = Math.round((double)start + (double)currentMessageCount * 1000 / rate); long sleepTime = plannedTime - System.currentTimeMillis(); if (sleepTime <= 0)
protected void doThrottle() { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0)
try
protected void doThrottle() { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
long elapsedTime = now - lastTime; if (elapsedTime >= SAMPLE_PERIOD) { long msgs = currentMessageCount - lastCount; double targetMsgs = rate * (double)elapsedTime / 1000; if (msgs > targetMsgs) { long throttleTime = (long)((1000 * (double)msgs / rate) - elapsedTime); try { Thread.sleep(throttleTime); } cat...
if (log.isTraceEnabled()) { log.trace("throttling control says sleep for " + sleepTime); } Thread.sleep(sleepTime);
protected void doThrottle() { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
else
catch(InterruptedException e)
protected void doThrottle() { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
lastTime = now;
protected void doThrottle() { if (rate == 0) { return; } long now = System.currentTimeMillis(); if (log.isTraceEnabled()) { log.trace("doThrottle(" + now + ")"); } if (lastTime != 0) { long elapsedTime = now - lastTime; ...
log.debug("terminating sending because message count has been reached");
log.debug("terminating sending because message count (" + messageCount + ") has been reached");
public void run() { // if both duration and message count are set, the job sends until the first condition // is met try { log.debug("start sending using " + fullDump()); long start = System.currentTimeMillis(); long timeLeft; while ...
doThrottle();
if (rate > 0) { doThrottle(start); }
public void run() { // if both duration and message count are set, the job sends until the first condition // is met try { log.debug("start sending using " + fullDump()); long start = System.currentTimeMillis(); long timeLeft; while ...
log.info("sent " + currentMessageCount + " messages, actual duration is " + actualTime + " ms");
log.info("sent " + currentMessageCount + " messages, actual duration is " + actualTime + " ms, actual send rate is " + (((double)Math.round(currentMessageCount * 100000 / actualTime)) / 100) + " messages/sec");
public void run() { // if both duration and message count are set, the job sends until the first condition // is met try { log.debug("start sending using " + fullDump()); long start = System.currentTimeMillis(); long timeLeft; while ...
ret = pos - 1; break; case EAST: ret = pos + 1;
ret = Math.max(pos - 1, getStartOffset());
public int getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, int d, Position.Bias[] biasRet) throws BadLocationException { int ret = pos; switch (d) { case WEST: ret = pos - 1; break; c...
parent = getParent(); r = parent.modelToView(pos, a, b).getBounds(); ret = parent.viewToModel(r.x, r.y - 1, a, biasRet);
public int getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, int d, Position.Bias[] biasRet) throws BadLocationException { int ret = pos; switch (d) { case WEST: ret = pos - 1; break; c...
parent = getParent(); r = parent.modelToView(pos, a, b).getBounds(); ret = parent.viewToModel(r.x + r.width, r.y + r.height, a, biasRet);
public int getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, int d, Position.Bias[] biasRet) throws BadLocationException { int ret = pos; switch (d) { case WEST: ret = pos - 1; break; c...
{ paintChildren(g); System.out.println("XXXXXXXXXXXXXXXXXXXXXXXXXXXX JViewport -----> paint()"); Container parent = GetHeavy(getParent()); System.out.println("parent = " + parent + ", " + getParent()); Graphics wg = parent.getGraphics(); int x = 0; int y = 0; int w = getWidth(); int h = getHeight(); Rectangle...
{ paintComponent(g); }
public void paint(Graphics g) { paintChildren(g); System.out.println("XXXXXXXXXXXXXXXXXXXXXXXXXXXX JViewport -----> paint()"); Container parent = GetHeavy(getParent()); System.out.println("parent = " + parent + ", " + getParent()); //parent.paint(); Graphics wg = parent.getGraphics(); int x = 0; int y = 0; i...
valid = new Boolean(DIGEST0.equals(Util.toString(new MD4().digest())));
valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD4().digest())));
public boolean selfTest() { if (valid == null) { valid = new Boolean(DIGEST0.equals(Util.toString(new MD4().digest()))); } return valid.booleanValue(); }
public ServerConnectionFactoryDelegate(ServerPeer serverPeer)
public ServerConnectionFactoryDelegate(ServerPeer serverPeer, String defaultClientID)
public ServerConnectionFactoryDelegate(ServerPeer serverPeer) { this.serverPeer = serverPeer; }
this.defaultClientID = defaultClientID;
public ServerConnectionFactoryDelegate(ServerPeer serverPeer) { this.serverPeer = serverPeer; }
BlockBox block = (BlockBox)box;
Box block = (Box)box;
public void paint( Context c, Box box ) { //u.p("BoxLayout.paint " + box);//+box.getElement().getNodeName()+") " + block); BlockBox block = (BlockBox)box; // copy the bounds to we don't mess it up Rectangle oldBounds = new Rectangle( c.getExtents() ); if ( block.relative ) { ...