rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public JBossBytesMessage(String messageID, boolean reliable, long expiration, long timestamp, int priority, int deliveryCount, Map coreHeaders, Serializable payload, String jmsType, Object correlationID, boolean destinationIsQueue, String destination, boolean replyToIsQueue, String replyTo, String connectionID, Map jms...
public JBossBytesMessage() {
public JBossBytesMessage(String messageID, boolean reliable, long expiration, long timestamp, int priority, int deliveryCount, Map coreHeaders, Serializable payload, String jmsType, Object correlationID, boolean destinationIsQueue, ...
public JBossStreamMessage(String messageID, boolean reliable, long expiration, long timestamp, int priority, int deliveryCount, Map coreHeaders, Serializable payload, String jmsType, Object correlationID, boolean destinationIsQueue, String destination, boolean replyToIsQueue, String replyTo, String connectionID, Map jm...
public JBossStreamMessage() {
public JBossStreamMessage(String messageID, boolean reliable, long expiration, long timestamp, int priority, int deliveryCount, Map coreHeaders, Serializable payload, String jmsType, Object correlationID, boolean destinationIsQueue, ...
final IOAPIC apic = new IOAPIC(rm, owner, apicEntry
final IOAPIC ioAPIC = new IOAPIC(rm, owner, apicEntry
protected final void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOwner.SYSTEM...
apic.dump(System.out);
ioAPIC.dump(System.out);
protected final void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOwner.SYSTEM...
final X86CpuID cpuId = (X86CpuID) cpu.getCPUID(); final HashMap<Integer, MPProcessorEntry> physCpus = new HashMap<Integer, MPProcessorEntry>();
protected final void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOwner.SYSTEM...
final VmX86Processor newCpu = (VmX86Processor) createProcessor( cpuEntry.getApicID(), Vm.getVm().getSharedStatics(), cpu.getIsolatedStatics(), cpu.getScheduler()); initX86Processor(newCpu); try { newCpu.startup(rm); } catch (ResourceNotFreeException ex) { BootLog .error( "Cannot claim region for processor startup", ex)...
final int apicId = cpuEntry.getApicID(); int physId = cpuId.getPhysicalPackageId(apicId); if (!physCpus.containsKey(physId)) { physCpus.put(physId, cpuEntry);
protected final void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOwner.SYSTEM...
for (MPProcessorEntry cpuEntry : physCpus.values()) { final int apicId = cpuEntry.getApicID(); final VmX86Processor newCpu = (VmX86Processor) createProcessor( apicId, Vm.getVm().getSharedStatics(), cpu .getIsolatedStatics(), cpu.getScheduler()); initX86Processor(newCpu); try { newCpu.startup(rm); } catch (ResourceNotF...
protected final void initializeProcessors(ResourceManager rm) { final String cmdLine = VmSystem.getCmdLine(); if (cmdLine.indexOf("mp=no") >= 0) { return; } // final MPFloatingPointerStructure mp = MPFloatingPointerStructure.find( rm, ResourceOwner.SYSTEM...
this.apic = apic;
this.localAPIC = apic;
final void setApic(LocalAPIC apic) { this.apic = apic; }
return "MP 1." + getSpecRevision() + ", ConfigTableAt 0x" + NumberUtils.hex(mem.getInt(0x04));
return "MP 1." + getSpecRevision() + ", config-type 0x" + NumberUtils.hex(getSystemConfigurationType(), 2) + ", IMCR " + (isIMCRPresent() ? "present" : "not present") + ", ConfigTableAt 0x" + NumberUtils.hex(mem.getInt(0x04));
public String toString() { return "MP 1." + getSpecRevision() + ", ConfigTableAt 0x" + NumberUtils.hex(mem.getInt(0x04)); }
if (this.apic != null) { setId(apic.getId());
if (this.localAPIC != null) { setId(localAPIC.getId());
final void loadAndSetApicID() { if (this.apic != null) { setId(apic.getId()); } }
Unsafe.debug("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " + NumberUtils.hex(me.getId(), 2) + "\n");
Unsafe.debug("Starting up CPU " + getIdString() + " from " + me.getIdString() + "\n");
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); Unsafe.debug("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
Unsafe.debug("Enabling APIC: current state " + apic.isEnabled() + "\n"); apic.setEnabled(true); apic.clearErrors();
Unsafe.debug("Enabling Local APIC: current state=" + (localAPIC.isEnabled() ? "enabled" : "disabled") + "\n"); localAPIC.setEnabled(true); localAPIC.clearErrors();
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); Unsafe.debug("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
Unsafe.debug("Sending INIT IPI\n"); apic.sendInitIPI(getId(), true); apic.loopUntilNotBusy();
Unsafe.debug("Sending INIT IPI to " + getIdString() + "\n"); localAPIC.sendInitIPI(getId(), true); localAPIC.loopUntilNotBusy();
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); Unsafe.debug("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
Unsafe.debug("Sending INIT-DeAssert IPI\n"); apic.sendInitIPI(getId(), false); apic.loopUntilNotBusy();
Unsafe.debug("Sending INIT-DeAssert IPI to " + getIdString() + "\n"); localAPIC.sendInitIPI(getId(), false); localAPIC.loopUntilNotBusy();
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); Unsafe.debug("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
Unsafe.debug("Sending STARTUP IPI to " + getId() + "\n"); apic.clearErrors(); apic.sendStartupIPI(getId(), bootCode); apic.loopUntilNotBusy();
Unsafe.debug("Sending STARTUP IPI to " + getIdString() + "\n"); localAPIC.clearErrors(); localAPIC.sendStartupIPI(getId(), bootCode); localAPIC.loopUntilNotBusy();
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); Unsafe.debug("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
apic.clearErrors();
localAPIC.clearErrors();
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); Unsafe.debug("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
Unsafe.debug("X86 CPU Start finished\n");
Unsafe.debug("Started up " + getIdString() + "\n");
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); Unsafe.debug("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
if (value == null || locale == null) throw new NullPointerException("value and/or locale may not be null");
if (value == null) throw new NullPointerException("value may not be null");
protected TextSyntax(String value, Locale locale) { if (value == null || locale == null) throw new NullPointerException("value and/or locale may not be null"); this.value = value; this.locale = locale; }
this.locale = locale;
this.locale = (locale == null ? Locale.getDefault() : locale);
protected TextSyntax(String value, Locale locale) { if (value == null || locale == null) throw new NullPointerException("value and/or locale may not be null"); this.value = value; this.locale = locale; }
ref.incrementChannelCount(); ref.decrementChannelCount();
ref.releaseMemoryReference();
public void testNonRecoverableMessageStore_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createCoreMessage(0, false, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable s...
refs[i].incrementChannelCount(); refs[i].decrementChannelCount();
refs[i].releaseMemoryReference();
public void testNonRecoverableMessageStore_2() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(i...
ref.incrementChannelCount(); ref.decrementChannelCount();
ref.releaseMemoryReference();
public void testNonRecoverableMessageStore_4() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
refs[i].incrementChannelCount(); refs[i].decrementChannelCount();
refs[i].releaseMemoryReference();
public void testNonRecoverableMessageStore_5() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
ref.incrementChannelCount();
MessageReference ref2 = ms.reference(m.getMessageID());
public void testNonRecoverableMessageStore_6() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
MessageReference ref2 = ref.copy(); ref2.incrementChannelCount(); ref.decrementChannelCount();
ref.releaseMemoryReference();
public void testNonRecoverableMessageStore_6() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
ref2.decrementChannelCount();
ref2.releaseMemoryReference(); ref3.releaseMemoryReference();
public void testNonRecoverableMessageStore_6() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
ref.incrementChannelCount(); ref.incrementChannelCount(); ref.incrementChannelCount(); ref.incrementChannelCount(); ref.decrementChannelCount();
public void testNonRecoverableMessageStore_7() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
ref.decrementChannelCount();
ref.releaseMemoryReference(); ref2.releaseMemoryReference(); ref3.releaseMemoryReference();
public void testNonRecoverableMessageStore_7() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
ref3 = ms.reference(ref.getMessageID()); assertNotNull(ref3); assertCorrectReference(ref3, ms.getStoreID(), m); ref.decrementChannelCount(); ref3 = ms.reference(ref.getMessageID()); assertNotNull(ref3); assertCorrectReference(ref3, ms.getStoreID(), m); ref.decrementChannelCount(); ref3 = ms.reference(ref.getMessage...
MessageReference ref4 = ms.reference(ref.getMessageID()); assertNull(ref4);
public void testNonRecoverableMessageStore_7() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ...
ref.incrementChannelCount(); ref.decrementChannelCount();
ref.releaseMemoryReference();
public void testRecoverableMessageStore_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory. createCoreMessage(0, false, 777l, 888l, (byte)9, headers, "payload"); // recoverable store, non-re...
refs[i].incrementChannelCount(); refs[i].decrementChannelCount();
refs[i].releaseMemoryReference();
public void testRecoverableMessageStore_2() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =...
ref.incrementChannelCount(); ref.decrementChannelCount();
ref.releaseMemoryReference();
public void testRecoverableMessageStore_3() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory. createCoreMessage(0, true, 777l, 888l, (byte)9, headers, "payload"); // recoverable store, non-rel...
refs[i].incrementChannelCount(); refs[i].decrementChannelCount();
refs[i].releaseMemoryReference();
public void testRecoverableMessageStore_4() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =...
ref.incrementChannelCount();
public void testRecoverableMessageStore_6() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory. createCoreMessage(0, true, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable store, non...
MessageReference ref2 = ref.copy(); ref2.incrementChannelCount(); ref.decrementChannelCount();
MessageReference ref2 = ms.reference(m); ref.releaseMemoryReference();
public void testRecoverableMessageStore_6() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory. createCoreMessage(0, true, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable store, non...
ref3.decrementChannelCount();
ref3.releaseMemoryReference();
public void testRecoverableMessageStore_6() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory. createCoreMessage(0, true, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable store, non...
ref2.decrementChannelCount();
ref2.releaseMemoryReference();
public void testRecoverableMessageStore_6() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory. createCoreMessage(0, true, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable store, non...
ref.incrementChannelCount();
public void testRecoverableMessageStore_7() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory. createCoreMessage(0, true, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable store, non...
ref2.incrementChannelCount();
public void testRecoverableMessageStore_7() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory. createCoreMessage(0, true, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable store, non...
ref2.decrementChannelCount(); ref.incrementChannelCount(); ref.incrementChannelCount(); ref.incrementChannelCount(); ref.decrementChannelCount();
public void testRecoverableMessageStore_7() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory. createCoreMessage(0, true, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable store, non...
ref3.incrementChannelCount();
public void testRecoverableMessageStore_7() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory. createCoreMessage(0, true, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable store, non...
ref3.decrementChannelCount();
public void testRecoverableMessageStore_7() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory. createCoreMessage(0, true, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable store, non...
ref.decrementChannelCount();
ref.releaseMemoryReference(); ref2.releaseMemoryReference(); ref3.releaseMemoryReference();
public void testRecoverableMessageStore_7() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory. createCoreMessage(0, true, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable store, non...
ref3 = ms.reference(ref.getMessageID()); ref3.incrementChannelCount(); assertNotNull(ref3); assertCorrectReference(ref3, ms.getStoreID(), m); ref3.decrementChannelCount(); ref.decrementChannelCount(); ref3 = ms.reference(ref.getMessageID()); ref3.incrementChannelCount(); assertNotNull(ref3); assertCorrectReference(re...
MessageReference ref4 = ms.reference(ref.getMessageID()); assertNull(ref4);
public void testRecoverableMessageStore_7() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory. createCoreMessage(0, true, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable store, non...
BoxLayout.layoutContent(c, box, contentList, block);
super.layoutChildren(c,box);
public Box layoutChildren(Context c, Box box) { //Uu.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.content.getChildContent(c); if (contentList.size() == 0) ret...
BSFEngine engine = null;
BSFEngine engine;
public void execute(Map transientVars, Map args, PropertySet ps) throws WorkflowException { String language = (String) args.get(AbstractWorkflow.BSF_LANGUAGE); String source = (String) args.get(AbstractWorkflow.BSF_SOURCE); int row = TextUtils.parseInt((String) args.get(AbstractWorkflow.BSF_ROW...
Label(String text, int alignment)
Label()
Label(String text, int alignment){ setAlignment (alignment); setText (text); if (GraphicsEnvironment.isHeadless()) throw new HeadlessException ();}
setAlignment (alignment); setText (text); if (GraphicsEnvironment.isHeadless()) throw new HeadlessException ();
this("", LEFT);
Label(String text, int alignment){ setAlignment (alignment); setText (text); if (GraphicsEnvironment.isHeadless()) throw new HeadlessException ();}
public String get(int i);
String get(int i);
public String get(int i);
height = getComponent().getHeight();
try { height = textComponent.modelToView(dot).height; } catch (BadLocationException ble) { throw new InternalError("Caret location not within document range."); }
protected void damage(Rectangle r) { if (r == null) return; x = r.x; y = r.y; width = 1; // height is normally set in paint and we leave it untouched. However, we // must set a valid value here, since otherwise the painting mechanism // sets a zero clip and never calls paint. if (height ...
int nextWord = Utilities.getNextWord(t, newDot);
int wordStart = Utilities.getWordStart(t, newDot);
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (event.getButton() == MouseEvent.BUTTON1 && count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) ...
if (newDot == nextWord)
if (newDot == wordStart)
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (event.getButton() == MouseEvent.BUTTON1 && count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) ...
setDot(nextWord); moveDot(Utilities.getNextWord(t, nextWord));
setDot(wordStart); moveDot(Utilities.getWordEnd(t, wordStart));
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (event.getButton() == MouseEvent.BUTTON1 && count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) ...
int nextWord = Utilities.getNextWord(t, newDot);
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (event.getButton() == MouseEvent.BUTTON1 && count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) ...
if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); handleHighlight(); appear(); adjustVisibility(this); }
NavigationFilter filter = textComponent.getNavigationFilter(); if (filter != null) filter.moveDot(getBypass(), dot, Bias.Forward); else moveDotImpl(dot);
public void moveDot(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); handleHighlight(); appear(); adjustVisibility(this); } }
g.drawLine(rect.x, rect.y, rect.x, rect.y + rect.height);
g.drawLine(rect.x, rect.y, rect.x, rect.y + rect.height - 1);
public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; // Make sure the dot has a sane position. dot = Math.min(dot, textComponent.getDocument().getLength()); dot = Math.max(dot, 0); Rectangle rect = null; try { rect = textComponent.modelToView(...
if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); this.mark = this.dot; clearHighlight(); appear(); adjustVisibility(this); }
NavigationFilter filter = textComponent.getNavigationFilter(); if (filter != null) filter.setDot(getBypass(), dot, Bias.Forward); else setDotImpl(dot);
public void setDot(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); this.mark = this.dot; clearHighlight(); appear(); adjustVis...
public int getLength();
int getLength();
public int getLength();
public Document getDocument();
Document getDocument();
public Document getDocument();
boolean isRunning()
public boolean isRunning()
boolean isRunning() { return running; }
serializableMarshaller = new SerializableMarshaller(); serializableUnMarshaller = new SerializableUnMarshaller();
public JMSWireFormat() { serializableMarshaller = new SerializableMarshaller(); serializableUnMarshaller = new SerializableUnMarshaller(); trace = log.isTraceEnabled(); }
void registerConnection(String remotingClientSessionID, ServerConnectionEndpoint endpoint);
void registerConnection(String jmsClientId, String remotingClientSessionID, ServerConnectionEndpoint endpoint);
void registerConnection(String remotingClientSessionID, ServerConnectionEndpoint endpoint);
public static BufferedImage renderToImage(String url, int width, int height) throws Exception {
public static BufferedImage renderToImage(String url, int width, int height) {
public static BufferedImage renderToImage(String url, int width, int height) throws Exception { Graphics2DRenderer g2r = new Graphics2DRenderer(); g2r.setDocument(url); Dimension dim = new Dimension(width, height); BufferedImage buff = new BufferedImage((int) dim.getWidth(), (...
if (bh == null || bh.box == null) {
Box root = getRootBox(); if (root == null) {
public void paintComponent(Graphics g) { if (anti_aliased) { // TODO: // ( (Graphics2D)g ).setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON ); } if (doc == null) { return; } //Uu.p("paint component () cal...
Context c = newContext((Graphics2D) g); executeRenderThread(c);
Context c = newContext(getPageInfo(), (Graphics2D) g); executeRenderThread(c, root);
public void paintComponent(Graphics g) { if (anti_aliased) { // TODO: // ( (Graphics2D)g ).setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON ); } if (doc == null) { return; } //Uu.p("paint component () cal...
currentLine.x = indent; currentLine.calcCanvasLocation();
contentStart += indent;
public static void layoutContent(LayoutContext c, BlockBox box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); ...
currentLine.x += markerData.getLayoutWidth(); currentLine.calcCanvasLocation();
contentStart += markerData.getLayoutWidth();
public static void layoutContent(LayoutContext c, BlockBox box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); ...
remainingWidth -= c.getBlockFormattingContext().getFloatDistance(c, currentLine, remainingWidth);
public static void layoutContent(LayoutContext c, BlockBox box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); ...
hasFirstLinePCs, pendingInlineLayers, markerData);
hasFirstLinePCs, pendingInlineLayers, markerData, contentStart);
public static void layoutContent(LayoutContext c, BlockBox box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); ...
pendingInlineLayers, markerData);
pendingInlineLayers, markerData, contentStart); if (currentLine.isFirstLine() && currentLine.height == 0 && markerData != null) { c.setCurrentMarkerData(markerData); }
public static void layoutContent(LayoutContext c, BlockBox box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); ...
List pendingInlineLayers, MarkerData markerData) {
List pendingInlineLayers, MarkerData markerData, int contentStart) {
private static void saveLine(final LineBox current, LineBox previous, final LayoutContext c, Box block, int minHeight, final int maxAvailableWidth, List elementStack, List pendingFloats, boolean hasFirstLinePCs, ...
if (!block.getStyle().isClearLeft()) { current.x += c.getBlockFormattingContext().getLeftFloatDistance(c, current, maxAvailableWidth); }
private static void saveLine(final LineBox current, LineBox previous, final LayoutContext c, Box block, int minHeight, final int maxAvailableWidth, List elementStack, List pendingFloats, boolean hasFirstLinePCs, ...
String selector = new GUID().toString();
String selector = "color = 'red'";
public void testCreateGetRemoveDurableSubscription() throws Exception { String topicName = new GUID().toString(); String clientID = new GUID().toString(); String subscriptionName = new GUID().toString(); String selector = new GUID().toString(); ServerManagement.deployTopic(topicName); ...
CoreDurableSubscription sub = channelMapper.createDurableSubscription(topicName,
DurableSubscription sub = channelMapper.createDurableSubscription(topicName,
public void testCreateGetRemoveDurableSubscription() throws Exception { String topicName = new GUID().toString(); String clientID = new GUID().toString(); String subscriptionName = new GUID().toString(); String selector = new GUID().toString(); ServerManagement.deployTopic(topicName); ...
CoreDurableSubscription sub_r = channelMapper.getDurableSubscription(clientID,
DurableSubscription sub_r = channelMapper.getDurableSubscription(clientID,
public void testCreateGetRemoveDurableSubscription() throws Exception { String topicName = new GUID().toString(); String clientID = new GUID().toString(); String subscriptionName = new GUID().toString(); String selector = new GUID().toString(); ServerManagement.deployTopic(topicName); ...
CoreDurableSubscription sub = channelMapper.createDurableSubscription(topicName,
DurableSubscription sub = channelMapper.createDurableSubscription(topicName,
public void testCreateGetRemoveDurableSubscriptionNullSelector() throws Exception { String topicName = new GUID().toString(); String clientID = new GUID().toString(); String subscriptionName = new GUID().toString(); ServerManagement.deployTopic(topicName); CoreDurableSubscription sub = cha...
CoreDurableSubscription sub_r = channelMapper.getDurableSubscription(clientID,
DurableSubscription sub_r = channelMapper.getDurableSubscription(clientID,
public void testCreateGetRemoveDurableSubscriptionNullSelector() throws Exception { String topicName = new GUID().toString(); String clientID = new GUID().toString(); String subscriptionName = new GUID().toString(); ServerManagement.deployTopic(topicName); CoreDurableSubscription sub = cha...
Thread.sleep(10000);
Thread.sleep(45000);
public void testCallbackFailure() throws Exception { if (!ServerManagement.isRemote()) return; //We need to disable exception listener otherwise it will clear up the connection itself ObjectName connectorName = ServiceContainer.REMOTING_OBJECT_NAME; ConnectionManager cm = loca...
public CascadedStyle getPseudoElementStyle(Element e, String pseudoElement);
public CascadedStyle getPseudoElementStyle(Node node, String pseudoElement);
public CascadedStyle getPseudoElementStyle(Element e, String pseudoElement);
int[] availableActions = getAvailableActions(id, inputs); boolean validAction = false;
public void doAction(long id, int actionId, Map inputs) throws WorkflowException { int[] availableActions = getAvailableActions(id, inputs); boolean validAction = false; WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry.getState() != Work...
if (entry.getState() != WorkflowEntry.ACTIVATED) { return; } for (int i = 0; i < availableActions.length; i++) { if (availableActions[i] == actionId) { validAction = true; break; } } if (!validAction) { throw new InvalidActionException("Action " + actionId + " is invalid"); }
public void doAction(long id, int actionId, Map inputs) throws WorkflowException { int[] availableActions = getAvailableActions(id, inputs); boolean validAction = false; WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry.getState() != Work...
if (inputs != null) { transientVars.putAll(inputs);
if (entry.getState() != WorkflowEntry.ACTIVATED) { return;
public void doAction(long id, int actionId, Map inputs) throws WorkflowException { int[] availableActions = getAvailableActions(id, inputs); boolean validAction = false; WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry.getState() != Work...
populateTransientMap(entry, transientVars, wf.getRegisters(), new Integer(actionId), currentSteps);
if (inputs != null) { transientVars.putAll(inputs); } populateTransientMap(entry, transientVars, wf.getRegisters(), new Integer(actionId), currentSteps); boolean validAction = isActionAvailable(action, transientVars, ps); if (!validAction) { throw new InvalidActionException("Action " + actionId + " is invalid"); }
public void doAction(long id, int actionId, Map inputs) throws WorkflowException { int[] availableActions = getAvailableActions(id, inputs); boolean validAction = false; WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry.getState() != Work...
if (action != null) { List availActions = getAvailableActionsForStep(wfDesc, step, transientVars, ps);
if (isActionAvailable(action, transientVars, ps)) { return step; }
private Step getCurrentStep(WorkflowDescriptor wfDesc, int actionId, List currentSteps, Map transientVars, PropertySet ps) throws WorkflowException { if (currentSteps.size() == 1) { return (Step) currentSteps.get(0); } for (Iterator iterator = currentSteps.iterator(); iterator.hasNex...
if (availActions.contains(new Integer(action.getId()))) { return step; } }
private Step getCurrentStep(WorkflowDescriptor wfDesc, int actionId, List currentSteps, Map transientVars, PropertySet ps) throws WorkflowException { if (currentSteps.size() == 1) { return (Step) currentSteps.get(0); } for (Iterator iterator = currentSteps.iterator(); iterator.hasNex...
int[] availableActions = getAvailableActions(entry.getId(), inputs); if (availableActions.length != 0) { for (int i = 0; i < theResults.length; i++) { ResultDescriptor theResult = theResults[i]; StepDescriptor toCheck = wf.getStep(theResult.getStep()); if (toCheck != null) { Iterator iter = toCheck.getActions().itera...
int[] availableAutoActions = getAvailableAutoActions(entry.getId(), inputs); for (int j = 0; j < availableAutoActions.length; j++) { int actionId = availableAutoActions[j]; doAction(entry.getId(), actionId, inputs); break;
private void transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Step step = getCurrentStep(wf, action.getId(), currentSteps, transientVars, ps); // val...
if (!Message.isInitialised()) { Message.init(new AntMessageImpl(getProject())); }
Message.init(new AntMessageImpl(getProject()));
protected void ensureMessageInitialised() { if (!Message.isInitialised()) { Message.init(new AntMessageImpl(getProject())); } }
this.drainDestination(cf, queue);
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue...
prod.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
public void testCopyAfterSend() throws Exception { if (ServerManagement.isRemote()) { return; } Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.AUTO...
log.trace("Got message " + tm.getText() + " count=" + count);
log.info("Got message " + tm.getText() + " count=" + count);
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.trace("Got message " + tm.getText() + " count=" + count); if (count == 1) { ...
log.trace("Expected a but was " + tm.getText());
log.info("Expected a but was " + tm.getText());
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.trace("Got message " + tm.getText() + " count=" + count); if (count == 1) { ...
log.trace("Expected b but was " + tm.getText());
log.info("Expected b but was " + tm.getText());
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.trace("Got message " + tm.getText() + " count=" + count); if (count == 1) { ...
log.trace("Expected c but was " + tm.getText());
log.info("Expected c but was " + tm.getText());
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.trace("Got message " + tm.getText() + " count=" + count); if (count == 1) { ...
log.trace("Rolling back");
log.info("Rolling back");
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.trace("Got message " + tm.getText() + " count=" + count); if (count == 1) { ...
log.trace("Redelivered flag not set");
log.info("Redelivered flag not set");
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.trace("Got message " + tm.getText() + " count=" + count); if (count == 1) { ...
log.trace("Committing");
log.info("Committing");
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.trace("Got message " + tm.getText() + " count=" + count); if (count == 1) { ...
WorkflowConfig config = new WorkflowConfig("file", null);
WorkflowConfig config = new WorkflowConfig(null, "file", null);
public void createWorkflow(String name) { WorkflowConfig config = new WorkflowConfig("file", null); config.descriptor = DescriptorFactory.getFactory().createWorkflowDescriptor(); config.descriptor.setName(name); ActionDescriptor initialAction = DescriptorFactory.getFactory().createActionDescriptor(); ...
WorkflowConfig config = new WorkflowConfig("file", name + ".xml");
WorkflowConfig config = new WorkflowConfig(null, "file", name + ".xml");
public void importDescriptor(String name, InputStream is) { WorkflowConfig config = new WorkflowConfig("file", name + ".xml"); try { File file = new File(workflowsXML.getParentFile(), name+".xml"); config.url = file.toURL(); config.lastModified = file.lastModified(); workflows.put(name, ...
public WorkflowConfig(String type, String location) {
public WorkflowConfig(String basedir, String type, String location) {
public WorkflowConfig(String type, String location) { if ("URL".equals(type)) { try { url = new URL(location); File file = new File(url.getFile()); if (file.exists()) { lastModified = file.lastModified(); ...
File file = new File(location);
File file = new File(basedir, location);
public WorkflowConfig(String type, String location) { if ("URL".equals(type)) { try { url = new URL(location); File file = new File(url.getFile()); if (file.exists()) { lastModified = file.lastModified(); ...