- java may decide to jit and will generally use execution data to aid optimisation
- .net always uses jit and on first access, so can't use execution data to aid optimisation, so can at best be only as good as a c compiler (static compilation)
This file contains 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
/** | |
* Base utils for building ExecutionContexts | |
*/ | |
public abstract class BaseExecutionContextBuilder<T extends BaseExecutionContextBuilder> { | |
private BitSet whatsSet = new BitSet(MAX_BASE_BITS+getNumSpecificComponents()); | |
protected GeoLocationDetails location; | |
protected RequestUUID uuid; | |
protected Date receivedTime; |
This file contains 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
1 | 2010-01-01 | 2010-01-31 | 2010-02-31 | |
---|---|---|---|---|
2 | 2011-01-01 | 2011-01-31 | 2010-02-31 | |
3 | 2012-01-01 | 2012-01-31 | 2010-02-31 | |
11 | 2010-01-01 | 2010-01-31 | 2010-02-31 | |
12 | 2011-01-01 | 2011-01-31 | 2011-02-31 | |
13 | 2012-01-01 | 2012-01-31 | 2012-02-31 |
This file contains 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
... | |
<!-- add a path alias to the jetty transport --> | |
<bean parent="cougar.transport.HttpPathAliasIntroducer"> | |
<constructor-arg index="1" value="/webping"/> | |
<constructor-arg index="2" value="/www/healthcheck/v3/summary"/> | |
</bean> | |
... |
Some stuff
This file contains 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 RejectCalls implements ExecutionPreProcessor { | |
private Set<String> toReject = new HashSet<String>(); | |
public void setToReject(String s) { | |
for (String r : s.split(",")) { | |
toReject.add(r.trim()); | |
} | |
} | |
This file contains 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
require 'celluloid' | |
require 'celluloid/future' | |
def pusher(future) | |
sleep 5 | |
future.signal 'Wibble' | |
end | |
def puller(future) | |
puts "Pulled: #{future.value}" |