This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Test | |
| public void perThread(@Varying(name = "thread", axis = Axis.X, from = 1, to = 10, step = 1) final int threadCount) throws Exception { | |
| // First define the task that needs to be done. | |
| // This task writes a million 'a' characters to a file: | |
| Runnable task = new Runnable() { | |
| @Override | |
| public void run() { | |
| // create temporary file with extension suffix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h3>** Attention Intrepid Java Enthusiasts **</h3> | |
| <p> | |
| If you wade through the slush to tomorrow night's meeting, your heroic efforts will not go | |
| unrewarded. We have two talks on cutting edge open-source Java performance monitoring tools! | |
| <p> | |
| First, we'll hear from Lucas Berk, a Red Hatter who works on Java tracing and profiling | |
| support within SystemTap[1]. SystemTap is a dynamic, scriptable kernel-space and user-space | |
| probing system for Linux. It can be used directly by end users, or as a back-end for higher | |
| level performance tools. | |
| <p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h3>** Attention Intrepid Java Enthusiasts **</h3> | |
| <p> | |
| If you wade through the slush to tomorrow night's meeting, your heroic efforts will not go | |
| unrewarded. We have two talks on cutting edge open-source Java performance monitoring tools! | |
| <p> | |
| First, we'll hear from Lucas Berk, a Red Hatter who works on Java tracing and profiling | |
| support within SystemTap[1]. SystemTap is a dynamic, scriptable kernel-space and user-space | |
| probing system for Linux. It can be used directly by end users, or as a back-end for higher | |
| level performance tools. | |
| <p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ** Attention Intrepid Java Enthusiasts ** | |
| If you wade through the slush to tomorrow night's meeting, your heroic efforts will not go | |
| unrewarded. We have two talks on cutting edge open-source Java performance monitoring tools! | |
| First, we'll hear from Lucas Berk, a Red Hatter who works on Java tracing and profiling | |
| support within SystemTap[1]. SystemTap is a dynamic, scriptable kernel-space and user-space | |
| probing system for Linux. It can be used directly by end users, or as a back-end for higher | |
| level performance tools. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ** Attention Intrepid Java Enthusiasts ** | |
| If you wade through the slush to tomorrow night's meeting, your heroic efforts will not go | |
| unrewarded. We have two talks on cutting edge open-source Java performance monitoring tools! | |
| First, we'll hear from Lucas Berk, a Red Hatter who works on Java tracing and profiling | |
| support within SystemTap[1]. SystemTap is a dynamic, scriptable kernel-space and user-space | |
| probing system for Linux. It can be used directly by end users, or as a back-end for higher | |
| level performance tools. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| java.util.zip.ZipException: ZIP file must have at least one entry | |
| at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:304) | |
| at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:140) | |
| at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:321) | |
| at org.jboss.ide.eclipse.as.core.server.xpl.ModulePackager.finished(ModulePackager.java:59) | |
| at org.jboss.ide.eclipse.as.core.publishers.PublishUtil.packModuleIntoJar(PublishUtil.java:230) | |
| at org.jboss.ide.eclipse.as.core.publishers.AbstractServerToolsPublisher.createForceZippedChild(AbstractServerToolsPublisher.java:274) | |
| at org.jboss.ide.eclipse.as.core.publishers.AbstractServerToolsPublisher.transferForceZippedChild(AbstractServerToolsPublisher.java:321) | |
| at org.jboss.ide.eclipse.as.core.publishers.AbstractServerToolsPublisher.fullPublish(AbstractServerToolsPublisher.java:235) | |
| at org.jboss.ide.eclipse.as.core.publishers.AbstractServerToolsPublisher.publishModule(AbstractServerToolsPublisher.java:106) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.jboss.errai.ui.shared; | |
| import javax.enterprise.context.ApplicationScoped; | |
| @ApplicationScoped | |
| public class ExampleThingDeleteMe { | |
| public ExampleThingDeleteMe() { | |
| System.out.println("\n\n\n\n\n\n\n============== WOOOOOOOOOOOOOOO\n\n\n\n\n\n\n\n"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DoubleTrouble { | |
| public static void main(String[] args) { | |
| long actualValue = 10000000000000001L; | |
| //long actualValue = 9999999999999999L; | |
| //long actualValue = Long.MAX_VALUE; | |
| double d = actualValue; | |
| System.out.println("Exact value: " + actualValue); | |
| System.out.println("Nearest double: " + (long) d); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class SessionsContainer implements Serializable { | |
| private final Map<String, Object> sharedAttributes = new HashMap<String, Object>(); | |
| private final Map<String, QueueSession> queueSessions = new HashMap<String, QueueSession>(); | |
| public QueueSession createSession(final String httpSessionId, final String remoteQueueId) { | |
| final QueueSession qs = new HttpSessionWrapper(this, httpSessionId, remoteQueueId); | |
| queueSessions.put(remoteQueueId, qs); | |
| return qs; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static class TraceableMap<K,V> implements Map<K,V> { | |
| private final Map<K, V> backingMap; | |
| private final String name; | |
| TraceableMap(String name, Map<K,V> backingMap) { | |
| this.backingMap = Assert.notNull(backingMap); | |
| this.name = Assert.notNull(name); | |
| } | |
| public void clear() { |