rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
primitive.setCssText(Idents.convertIdent(cssName, org));
if (primitive.getCssText() == null) { primitive.setCssText(org); } String converted = Idents.convertIdent(cssName, org); if (!converted.equals(org)) { primitive.setCssText(converted); }
public DerivedValue(CSSName cssName, CSSPrimitiveValue primitive, CalculatedStyle style) { _cssName = cssName; _domCSSPrimitiveValue = primitive; String org = _domCSSPrimitiveValue.getCssText(); primitive.setCssText(Idents.convertIdent(cssName, org)); if (primitive.getCssText() ==...
if (ident.equals("inherit")) { return ident; }
public static String convertIdent(CSSName cssName, String ident) { String val = ident; if (cssName == CSSName.FONT_SIZE) { String size = (String) FONT_SIZES.get(ident); val = (size == null ? ident : size); } else if (cssName == CSSName.FONT_WEIGHT) { String size...
public static void cascade( Level level, String msg ) { log( CASCADE, level, msg ); }
public static void cascade(String msg) { cascade(Level.INFO, msg); }
public static void cascade( Level level, String msg ) { log( CASCADE, level, msg ); }
public Float(double value)
public Float(float value)
public Float(double value) { this.value = (float) value; }
this.value = (float) value;
this.value = value;
public Float(double value) { this.value = (float) value; }
public static void general( Level level, String msg ) { log( GENERAL, level, msg ); }
public static void general(String msg) { general(Level.INFO, msg); }
public static void general( Level level, String msg ) { log( GENERAL, level, msg ); }
if (lookingAt())
match = pattern.getRE().getMatch(input, 0, RE.REG_TRY_ENTIRE_MATCH); if (match != null)
public boolean matches () { if (lookingAt()) { if (position == input.length()) return true; match = null; } return false; }
}
public boolean matches () { if (lookingAt()) { if (position == input.length()) return true; match = null; } return false; }
valid = new Boolean
valid = Boolean.valueOf
public boolean selfTest() { if (valid == null) { valid = new Boolean (DIGEST0.equals(Util.toString(new RipeMD128().digest()))); } return valid.booleanValue(); }
StrutMetrics strutMetrics = box.getStructMetrics(); int h = (int) Math.round(strutMetrics.getAscent()); int rad = (int)((strutMetrics.getAscent() + strutMetrics.getDescent()) / 3); int x = box.getAbsX() + (int)box.getStyle().getMarginWidth(c).left() - rad * 5 / 2; int y = box.getAbsY() + box.ty + strutMetrics.getBaseli...
StrutMetrics strutMetrics = box.getMarkerData().getStructMetrics(); MarkerData.GlyphMarker marker = box.getMarkerData().getGlyphMarker(); int x = getReferenceX(c, box); if (box.getStyle().getCalculatedStyle().isIdent(CSSName.LIST_STYLE_POSITION, IdentValue.INSIDE)) { x += marker.getLayoutWidth() / 2 - marker.getDiamete...
private static void drawGlyph(RenderingContext c, BlockBox box, CalculatedStyle style, IdentValue listStyle) { // save the old AntiAliasing setting, then force it on Object aa_key = c.getGraphics().getRenderingHint(RenderingHints.KEY_ANTIALIASING); c.getGraphics().setRenderingHint(RenderingHint...
c.getGraphics().fillOval(x, y, rad, rad);
c.getGraphics().fillOval(x, y, marker.getDiameter(), marker.getDiameter());
private static void drawGlyph(RenderingContext c, BlockBox box, CalculatedStyle style, IdentValue listStyle) { // save the old AntiAliasing setting, then force it on Object aa_key = c.getGraphics().getRenderingHint(RenderingHints.KEY_ANTIALIASING); c.getGraphics().setRenderingHint(RenderingHint...
c.getGraphics().fillRect(x, y, rad, rad);
c.getGraphics().fillRect(x, y, marker.getDiameter(), marker.getDiameter());
private static void drawGlyph(RenderingContext c, BlockBox box, CalculatedStyle style, IdentValue listStyle) { // save the old AntiAliasing setting, then force it on Object aa_key = c.getGraphics().getRenderingHint(RenderingHints.KEY_ANTIALIASING); c.getGraphics().setRenderingHint(RenderingHint...
c.getGraphics().drawOval(x, y, rad, rad);
c.getGraphics().drawOval(x, y, marker.getDiameter(), marker.getDiameter());
private static void drawGlyph(RenderingContext c, BlockBox box, CalculatedStyle style, IdentValue listStyle) { // save the old AntiAliasing setting, then force it on Object aa_key = c.getGraphics().getRenderingHint(RenderingHints.KEY_ANTIALIASING); c.getGraphics().setRenderingHint(RenderingHint...
String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(box.list_count).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LATIN || listStyle == IdentValue.UPPER_ALPHA) { text = toLatin(box.list_count).toUpperCase() + "."; } else if (listStyle == Id...
MarkerData.TextMarker text = box.getMarkerData().getTextMarker(); int x = getReferenceX(c, box); if (! box.getStyle().getCalculatedStyle().isIdent(CSSName.LIST_STYLE_POSITION, IdentValue.INSIDE)) { x += -text.getLayoutWidth();
private static void drawText(RenderingContext c, BlockBox box, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(box.list_count).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LATI...
text += " "; Font font = box.getStyle().getCalculatedStyle().getAWTFont(c); StrutMetrics strutMetrics = box.getStructMetrics(); int w = FontUtil.len(text, font, c.getTextRenderer(), c.getGraphics()); int x = box.getAbsX() + (int)box.getStyle().getMarginWidth(c).left() - w; int y = box.getAbsY() + box.ty + strutMetr...
c.getGraphics().setFont(text.getFont()); c.getGraphics().drawString(text.getText(), x, y);
private static void drawText(RenderingContext c, BlockBox box, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(box.list_count).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LATI...
CalculatedStyle style = box.getStyle().getCalculatedStyle(); IdentValue listStyle = style.getIdent(CSSName.LIST_STYLE_TYPE); if (listStyle == IdentValue.NONE) {
if (box.getMarkerData() == null) {
public static void paint(RenderingContext c, BlockBox box) { CalculatedStyle style = box.getStyle().getCalculatedStyle(); IdentValue listStyle = style.getIdent(CSSName.LIST_STYLE_TYPE); if (listStyle == IdentValue.NONE) { return; } String image = style.getStringProperty...
String image = style.getStringProperty(CSSName.LIST_STYLE_IMAGE); Image img = null; if (! image.equals("none")) { img = c.getUac().getImageResource(image).getImage(); if (img != null) { StrutMetrics strutMetrics = box.getStructMetrics(); if (img.getHeight(null) > strutMetrics.getAscent()) { img = img.getScaledInstance(...
MarkerData markerData = box.getMarkerData(); if (markerData.getImageMarker() != null) { drawImage(c, box, markerData);
public static void paint(RenderingContext c, BlockBox box) { CalculatedStyle style = box.getStyle().getCalculatedStyle(); IdentValue listStyle = style.getIdent(CSSName.LIST_STYLE_TYPE); if (listStyle == IdentValue.NONE) { return; } String image = style.getStringProperty...
CalculatedStyle style = box.getStyle().getCalculatedStyle(); IdentValue listStyle = style.getIdent(CSSName.LIST_STYLE_TYPE);
public static void paint(RenderingContext c, BlockBox box) { CalculatedStyle style = box.getStyle().getCalculatedStyle(); IdentValue listStyle = style.getIdent(CSSName.LIST_STYLE_TYPE); if (listStyle == IdentValue.NONE) { return; } String image = style.getStringProperty...
if (listStyle == IdentValue.DISC || listStyle == IdentValue.SQUARE || listStyle == IdentValue.CIRCLE) {
if (markerData.getGlyphMarker() != null) {
public static void paint(RenderingContext c, BlockBox box) { CalculatedStyle style = box.getStyle().getCalculatedStyle(); IdentValue listStyle = style.getIdent(CSSName.LIST_STYLE_TYPE); if (listStyle == IdentValue.NONE) { return; } String image = style.getStringProperty...
} else {
} else if (markerData.getTextMarker() != null){
public static void paint(RenderingContext c, BlockBox box) { CalculatedStyle style = box.getStyle().getCalculatedStyle(); IdentValue listStyle = style.getIdent(CSSName.LIST_STYLE_TYPE); if (listStyle == IdentValue.NONE) { return; } String image = style.getStringProperty...
.append("border : ") .append(style.asFloat(sides[0]) + "px ") .append(style.getIdent(styles[0]) + " ") .append(style.asColor(colors[0]) + " ") .append(style.asFloat(sides[1]) + "px ") .append(style.getIdent(styles[1]) + " ") .append(style.asColor(colors[1]) + " ") .append(style.asFloat(sides[2]) + "px ") .append(style....
.append(style.asString(sides[0])) .append(style.getIdent(styles[0])) .append(style.asColor(colors[0])) .append(style.asString(sides[1])) .append(style.getIdent(styles[1])) .append(style.asColor(colors[1])) .append(style.asString(sides[2])) .append(style.getIdent(styles[2])) .append(style.asColor(colors[2])) .append(sty...
public static String deriveKey(CalculatedStyle style) { String key = null; CSSName[] sides = CSSName.BORDER_SIDE_PROPERTIES; CSSName[] styles = CSSName.BORDER_STYLE_PROPERTIES; CSSName[] colors = CSSName.BORDER_COLOR_PROPERTIES; key = new StringBuffer() .append("bor...
if ( panel.c.css instanceof CSSBank ) {
if ( panel.c.css instanceof XRStyleReference ) { inspector = new DOMInspector( panel.doc, panel.c, (XRStyleReference)panel.c.css ); } else {
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
} else { inspector = new DOMInspector( panel.doc, panel.c, (XRStyleReference)panel.c.css );
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
if ( panel.c.css instanceof CSSBank ) {
if ( panel.c.css instanceof XRStyleReference ) { inspector.setForDocument( panel.doc, panel.c, (XRStyleReference)panel.c.css ); } else {
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
} else { inspector.setForDocument( panel.doc, panel.c, (XRStyleReference)panel.c.css );
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
addFileLoadAction( test, "expansion-bug", "/home/tobe/Projekt/xhtmlrenderer/demos/expansion-bug.html" );
public HTMLTest( String[] args ) throws Exception { super( BASE_TITLE ); panel.setPreferredSize( new Dimension( text_width, text_width ) ); JScrollPane scroll = new JScrollPane( panel ); scroll.setVerticalScrollBarPolicy( scroll.VERTICAL_SCROLLBAR_ALWAYS ); scroll.setHorizo...
public void setDocumentRelative( String filename )
protected void setDocumentRelative( String filename )
public void setDocumentRelative( String filename ) throws Exception { if ( getContext() != null && ( !filename.startsWith( "http" ) ) ) { URL base = new URL( getRenderingContext().getBaseURL(), filename ); XRLog.load( "Loading URL " + base ); Document dom = x.loadDocum...
public AbstractAction(String name)
public AbstractAction()
public AbstractAction(String name) { putValue(NAME, name); }
putValue(NAME, name);
public AbstractAction(String name) { putValue(NAME, name); }
synchronized (getTreeLock()) {
public void show() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. synchronized (getTreeLock()) { Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).g...
}
public void show() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. synchronized (getTreeLock()) { Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).g...
}
public void show() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. synchronized (getTreeLock()) { Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).g...
public JScrollPane(Component view) { this(view, 0, 0); }
public JScrollPane() { this(null); }
public JScrollPane(Component view) { this(view, 0, 0); }
public JMenu(String text)
public JMenu()
public JMenu(String text) { super(text); popupMenu.setInvoker(this); setOpaque(false); }
super(text); popupMenu.setInvoker(this);
super();
public JMenu(String text) { super(text); popupMenu.setInvoker(this); setOpaque(false); }
public JMenuItem add(Action action)
public JMenuItem add(JMenuItem item)
public JMenuItem add(Action action) { return popupMenu.add(action); }
return popupMenu.add(action);
return popupMenu.add(item);
public JMenuItem add(Action action) { return popupMenu.add(action); }
public boolean add(Object attrVal);
boolean add(Object attrVal);
public boolean add(Object attrVal);
public void clear();
void clear();
public void clear();
public Object clone();
Object clone();
public Object clone();
public boolean contains(Object attrVal);
boolean contains(Object attrVal);
public boolean contains(Object attrVal);
public Object get() throws NamingException;
Object get() throws NamingException;
public Object get() throws NamingException;
public NamingEnumeration getAll() throws NamingException;
NamingEnumeration getAll() throws NamingException;
public NamingEnumeration getAll() throws NamingException;
public DirContext getAttributeDefinition() throws NamingException;
DirContext getAttributeDefinition() throws NamingException;
public DirContext getAttributeDefinition() throws NamingException;
public DirContext getAttributeSyntaxDefinition() throws NamingException;
DirContext getAttributeSyntaxDefinition() throws NamingException;
public DirContext getAttributeSyntaxDefinition() throws NamingException;
public String getID();
String getID();
public String getID();
public boolean isOrdered();
boolean isOrdered();
public boolean isOrdered();
public boolean remove(Object attrval);
boolean remove(Object attrval);
public boolean remove(Object attrval);
public Object set(int ix, Object attrVal);
Object set(int ix, Object attrVal);
public Object set(int ix, Object attrVal);
public int size();
int size();
public int size();
public BlockFormattingContext(Box master, Context c) { int parent_width = (int) c.getExtents().getWidth(); CalculatedStyle style = c.getCurrentStyle(); Border border = style.getBorderWidth(c.getCtx()); Border margin = master.getMarginWidth(c, parent_width); padding = style.getPaddingWidth(parent_width, parent_width, c...
public BlockFormattingContext(PersistentBFC p) { persistentBFC = p;
public BlockFormattingContext(Box master, Context c) { int parent_width = (int) c.getExtents().getWidth(); CalculatedStyle style = c.getCurrentStyle(); Border border = style.getBorderWidth(c.getCtx()); //note: percentages here refer to width of containing block Border margin = mas...
abs_bottom.add(box); offset_map.put(box, getOffset());
persistentBFC.abs_bottom.add(box); persistentBFC.offset_map.put(box, getOffset());
public void addAbsoluteBottomBox(Box box) { abs_bottom.add(box); offset_map.put(box, getOffset()); }
left_floats.add(block); offset_map.put(block, getOffset());
persistentBFC.left_floats.add(block); persistentBFC.offset_map.put(block, getOffset());
public void addLeftFloat(Box block) { //Uu.p("adding a left float: " + block); left_floats.add(block); offset_map.put(block, getOffset()); }
right_floats.add(block); offset_map.put(block, getOffset());
persistentBFC.right_floats.add(block); persistentBFC.offset_map.put(block, getOffset());
public void addRightFloat(Box block) { //Uu.p("adding a right float: " + block); right_floats.add(block); offset_map.put(block, getOffset()); }
for (int i = 0; i < abs_bottom.size(); i++) { Box box = (Box) abs_bottom.get(i);
for (int i = 0; i < persistentBFC.abs_bottom.size(); i++) { Box box = (Box) persistentBFC.abs_bottom.get(i);
public void doFinalAdjustments() { //Uu.p("Doing final adjustments: " + this); //Uu.p("Final height = " + getHeight()); for (int i = 0; i < abs_bottom.size(); i++) { Box box = (Box) abs_bottom.get(i); //Uu.p("finishing up box: " + box); if (box.bottom_set) { ...
Point off = (Point) offset_map.get(box);
Point off = (Point) persistentBFC.offset_map.get(box);
public void doFinalAdjustments() { //Uu.p("Doing final adjustments: " + this); //Uu.p("Final height = " + getHeight()); for (int i = 0; i < abs_bottom.size(); i++) { Box box = (Box) abs_bottom.get(i); //Uu.p("finishing up box: " + box); if (box.bottom_set) { ...
Point fpt = (Point) offset_map.get(floater);
Point fpt = (Point) persistentBFC.offset_map.get(floater);
private int getDownDistance(Box box, List list) { for (int i = 0; i < list.size(); i++) { Box floater = (Box) list.get(i); Point fpt = (Point) offset_map.get(floater); if (floater.y + floater.height - fpt.y > box.y) { return floater.y + floater.height - fpt.y; ...
return this._float_manager.getFloatDistance(line, float_list, this);
return FloatManager.getFloatDistance(line, float_list, this);
private int getFloatDistance(Box line, List float_list) { return this._float_manager.getFloatDistance(line, float_list, this); }
return master.height;
return persistentBFC.master.height;
public int getHeight() { return master.height; }
return insets;
return persistentBFC.insets;
public Border getInsets() { return insets; }
return getDownDistance(box, left_floats);
return getDownDistance(box, persistentBFC.left_floats);
public int getLeftDownDistance(Box box) { return getDownDistance(box, left_floats); }
return getFloatDistance(line, left_floats);
return getFloatDistance(line, persistentBFC.left_floats);
public int getLeftFloatDistance(Box line) { return getFloatDistance(line, left_floats); }
return (Point) offset_map.get(box);
return (Point) persistentBFC.offset_map.get(box);
public Point getOffset(Box box) { return (Point) offset_map.get(box); }
return padding;
return persistentBFC.padding;
public Border getPadding() { return padding; }
return getDownDistance(box, right_floats);
return getDownDistance(box, persistentBFC.right_floats);
public int getRightDownDistance(Box box) { return getDownDistance(box, right_floats); }
return getFloatDistance(line, right_floats);
return getFloatDistance(line, persistentBFC.right_floats);
public int getRightFloatDistance(LineBox line) { ///Uu.p("get right float distance: " + line); return getFloatDistance(line, right_floats); }
for (int i = right_floats.size() - 1; i >= 0; i--) { Box floater = (Box) right_floats.get(i);
for (int i = persistentBFC.right_floats.size() - 1; i >= 0; i--) { Box floater = (Box) persistentBFC.right_floats.get(i);
public Box getRightFloatX(Box box) { //Uu.p("get right float x : " + box); // count backwards through the floats int x = 0; for (int i = right_floats.size() - 1; i >= 0; i--) { Box floater = (Box) right_floats.get(i); // Uu.p("box = " + box); // Uu.p("tes...
return this.width;
return persistentBFC.width;
public int getWidth() { return this.width; //return master.width - master.totalHorizontalPadding(); }
return master.x + x;
return persistentBFC.master.x + x;
public int getX() { return master.x + x; }
return master.y + y;
return persistentBFC.master.y + y;
public int getY() { return master.y + y; }
return FloatManager.newGetLeftFloatX(box, left_floats, this);
return FloatManager.newGetLeftFloatX(box, persistentBFC.left_floats, this);
public Box newGetLeftFloatX(Box box) { return FloatManager.newGetLeftFloatX(box, left_floats, this); }
return pushDownLeftRight(box, left_floats);
return pushDownLeftRight(box, persistentBFC.left_floats);
public Box pushDownLeft(Box box) { return pushDownLeftRight(box, left_floats); }
return pushDownLeftRight(box, right_floats);
return pushDownLeftRight(box, persistentBFC.right_floats);
public Box pushDownRight(Box box) { //Uu.p("push Down Right : " + box); return pushDownLeftRight(box, right_floats); }
this.width = width;
persistentBFC.width = width;
public void setWidth(int width) { this.width = width; }
return "BFC: (" + x + "," + y + ") - " + master + "";
return "BFC: (" + x + "," + y + ") - " + persistentBFC.master + "";
public String toString() { return "BFC: (" + x + "," + y + ") - " + master + ""; }
lr.translate(lpt.x,lpt.y);
lr.translate(-lpt.x,-lpt.y);
public static int getFloatDistance(Box line, List floatsList, BlockFormattingContext bfc) { //Uu.p("---\n---\ngetting the float distance for line: " + line + " " + line.element); //Uu.p(floatsList); //Uu.dump_stack(); // if if (floatsList.size() == 0) { //Uu.p("returning nada"); return 0; ...
fr.translate(fpt.x,fpt.y);
fr.translate(-fpt.x,-fpt.y);
public static int getFloatDistance(Box line, List floatsList, BlockFormattingContext bfc) { //Uu.p("---\n---\ngetting the float distance for line: " + line + " " + line.element); //Uu.p(floatsList); //Uu.dump_stack(); // if if (floatsList.size() == 0) { //Uu.p("returning nada"); return 0; ...
public Reference (String className, RefAddr addr)
public Reference (String className)
public Reference (String className, RefAddr addr) { this.className = className; addrs = new Vector (); addrs.add (addr); }
addrs.add (addr);
public Reference (String className, RefAddr addr) { this.className = className; addrs = new Vector (); addrs.add (addr); }
iter = MetadataUtils.getChildrenByTagName(slaveElement,"drain-job"); while (iter.hasNext())
Iterator iter2 = MetadataUtils.getChildrenByTagName(slaveElement,"drain-job"); while (iter2.hasNext())
public void importXML(Element el) throws ConfigurationException { log.info("Loading test:" + el.getNodeName()); name = MetadataUtils.getElementAttribute(el, "name"); log.info("Test Name is " + name); Iterator iter = MetadataUtils.getChildrenByTagName(el,"slave"); wh...
Element elChild = (Element)iter.next();
Element elChild = (Element)iter2.next();
public void importXML(Element el) throws ConfigurationException { log.info("Loading test:" + el.getNodeName()); name = MetadataUtils.getElementAttribute(el, "name"); log.info("Test Name is " + name); Iterator iter = MetadataUtils.getChildrenByTagName(el,"slave"); wh...
iter = MetadataUtils.getChildrenByTagName(slaveElement,"fill-job"); while (iter.hasNext())
iter2 = MetadataUtils.getChildrenByTagName(slaveElement,"fill-job"); while (iter2.hasNext())
public void importXML(Element el) throws ConfigurationException { log.info("Loading test:" + el.getNodeName()); name = MetadataUtils.getElementAttribute(el, "name"); log.info("Test Name is " + name); Iterator iter = MetadataUtils.getChildrenByTagName(el,"slave"); wh...
iter = MetadataUtils.getChildrenByTagName(slaveElement,"sender-job"); while (iter.hasNext())
iter2 = MetadataUtils.getChildrenByTagName(slaveElement,"sender-job"); while (iter2.hasNext())
public void importXML(Element el) throws ConfigurationException { log.info("Loading test:" + el.getNodeName()); name = MetadataUtils.getElementAttribute(el, "name"); log.info("Test Name is " + name); Iterator iter = MetadataUtils.getChildrenByTagName(el,"slave"); wh...
iter = MetadataUtils.getChildrenByTagName(slaveElement, "receiver-job"); while (iter.hasNext())
iter2 = MetadataUtils.getChildrenByTagName(slaveElement, "receiver-job"); while (iter2.hasNext())
public void importXML(Element el) throws ConfigurationException { log.info("Loading test:" + el.getNodeName()); name = MetadataUtils.getElementAttribute(el, "name"); log.info("Test Name is " + name); Iterator iter = MetadataUtils.getChildrenByTagName(el,"slave"); wh...
persistor.addValue("messages", result.messages); persistor.addValue("time", result.time);
if (result != null) { persistor.addValue("messages", result.messages); persistor.addValue("time", result.time); }
public void run() { log.info("Running test: " + this.name); List runners = new ArrayList(); Iterator iter = slaveInfos.iterator(); while (iter.hasNext()) { SlaveInfo slaveInfo = (SlaveInfo)iter.next(); log.info("Starting job(s) at slave: " + slaveInfo.n...
log.info("Test run complete");
public void run() { log.info("Running test: " + this.name); List runners = new ArrayList(); Iterator iter = slaveInfos.iterator(); while (iter.hasNext()) { SlaveInfo slaveInfo = (SlaveInfo)iter.next(); log.info("Starting job(s) at slave: " + slaveInfo.n...
public DrainJob(String serverURL, String destinationName, String subName)
public DrainJob(String slaveURL, String serverURL, String destinationName, String subName, String clientID)
public DrainJob(String serverURL, String destinationName, String subName) { super(serverURL, destinationName); this.subName = subName; }
super(serverURL, destinationName);
super(slaveURL, serverURL, destinationName);
public DrainJob(String serverURL, String destinationName, String subName) { super(serverURL, destinationName); this.subName = subName; }
this.clientID = clientID;
public DrainJob(String serverURL, String destinationName, String subName) { super(serverURL, destinationName); this.subName = subName; }
public FillJob(String serverURL, String destName, int numMessages, int messageSize, MessageFactory mf,
public FillJob(String slaveURL, String serverURL, String destName, int numMessages, int messageSize, MessageFactory mf,
public FillJob(String serverURL, String destName, int numMessages, int messageSize, MessageFactory mf, int deliveryMode) { super(serverURL, destName); this.numMessages = numMessages; this.mf = mf; this.deliveryMode = deliveryMode; }
super(serverURL, destName);
super(slaveURL, serverURL, destName);
public FillJob(String serverURL, String destName, int numMessages, int messageSize, MessageFactory mf, int deliveryMode) { super(serverURL, destName); this.numMessages = numMessages; this.mf = mf; this.deliveryMode = deliveryMode; }
public SenderJob(String serverURL, String destinationName, int numConnections,
public SenderJob(String slaveURL, String serverURL, String destinationName, int numConnections,
public SenderJob(String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages, boolean anon, int messageSize, MessageFactory messageFactory, int deliveryMode) { super (serverURL, destinationName, numConnections...
MessageFactory messageFactory, int deliveryMode)
MessageFactory messageFactory, int deliveryMode, long initialPause)
public SenderJob(String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages, boolean anon, int messageSize, MessageFactory messageFactory, int deliveryMode) { super (serverURL, destinationName, numConnections...
super (serverURL, destinationName, numConnections,
super (slaveURL, serverURL, destinationName, numConnections,
public SenderJob(String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages, boolean anon, int messageSize, MessageFactory messageFactory, int deliveryMode) { super (serverURL, destinationName, numConnections...
this.initialPause = initialPause;
public SenderJob(String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages, boolean anon, int messageSize, MessageFactory messageFactory, int deliveryMode) { super (serverURL, destinationName, numConnections...
public ReceiverJob(String serverURL, String destinationName, int numConnections,
public ReceiverJob(String slaveURL, String serverURL, String destinationName, int numConnections,
public ReceiverJob(String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages, int ackMode, String subName, String selector, boolean noLocal, boolean asynch) { super (serverURL, destinationName, numConnections...
String selector, boolean noLocal, boolean asynch)
String selector, boolean noLocal, boolean asynch, String clientID)
public ReceiverJob(String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages, int ackMode, String subName, String selector, boolean noLocal, boolean asynch) { super (serverURL, destinationName, numConnections...
super (serverURL, destinationName, numConnections,
super (slaveURL, serverURL, destinationName, numConnections,
public ReceiverJob(String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages, int ackMode, String subName, String selector, boolean noLocal, boolean asynch) { super (serverURL, destinationName, numConnections...
this.clientID = clientID;
public ReceiverJob(String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages, int ackMode, String subName, String selector, boolean noLocal, boolean asynch) { super (serverURL, destinationName, numConnections...
MBeanConfigurationElement shutdownLoggerConfig = (MBeanConfigurationElement)pdd.query("service", "ShutdownLogger").iterator().next(); shutdownLoggerObjectName = sc.registerAndConfigureService(shutdownLoggerConfig); sc.invoke(shutdownLoggerObjectName, "create", new Object[0], new String[0]); sc.invoke(shutdownLoggerObje...
public void startServerPeer(String serverPeerID, String defaultQueueJNDIContext, String defaultTopicJNDIContext) throws Exception { try { log.debug("creating ServerPeer instance"); // we are using the "default" service deploym...