Skip to content

Instantly share code, notes, and snippets.

@jamesgolick
Created September 15, 2010 20:24
Show Gist options
  • Select an option

  • Save jamesgolick/581416 to your computer and use it in GitHub Desktop.

Select an option

Save jamesgolick/581416 to your computer and use it in GitHub Desktop.
package timelineservice
// snip
class LoadBalancedTimelineServiceClientFactory(hosts: Seq[String], port: Int = 7480) {
def apply(): TimelineServiceClient = {
// snip
}
}
require 'java'
Dir["{lib_managed/scala_2.8.0/compile/,lib/,project/boot/scala-2.8.0/lib/,target/scala_2.8.0/}*.jar"].each { |j| require j}
f = java_import 'timelineservice.LoadBalancedTimelineServiceClientFactory'
fac = f.new(["localhost"], 7480)
fac.apply()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment