dos2unix formatting
This commit is contained in:
parent
ba8b35d698
commit
7366b359a0
10 changed files with 73 additions and 111 deletions
0
akka-comet/src/main/scala/AkkaServlet.scala
Executable file → Normal file
0
akka-comet/src/main/scala/AkkaServlet.scala
Executable file → Normal file
0
akka-core/src/main/scala/actor/ActorRegistry.scala
Executable file → Normal file
0
akka-core/src/main/scala/actor/ActorRegistry.scala
Executable file → Normal file
0
akka-core/src/main/scala/remote/RemoteServer.scala
Executable file → Normal file
0
akka-core/src/main/scala/remote/RemoteServer.scala
Executable file → Normal file
|
|
@ -1,38 +0,0 @@
|
|||
package se.scalablesolutions.akka.remote
|
||||
|
||||
import se.scalablesolutions.akka.actor.Actor
|
||||
|
||||
object ActorShutdownTest {
|
||||
def main(args: Array[String]) {
|
||||
|
||||
class MyActor extends Actor {
|
||||
def receive = {
|
||||
case "test" => println("received test")
|
||||
case m@_ => println("received unknown message " + m)
|
||||
}
|
||||
}
|
||||
|
||||
val myActor = new MyActor
|
||||
myActor.start
|
||||
myActor.send("test")
|
||||
myActor.stop
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// case 2
|
||||
|
||||
object RemoteServerAndClusterShutdownTest {
|
||||
def main(args: Array[String]) {
|
||||
val s1 = new RemoteServer
|
||||
val s2 = new RemoteServer
|
||||
val s3 = new RemoteServer
|
||||
s1.start("localhost", 9999)
|
||||
s2.start("localhost", 9998)
|
||||
s3.start("localhost", 9997)
|
||||
Thread.sleep(5000)
|
||||
s1.shutdown
|
||||
s2.shutdown
|
||||
s3.shutdown
|
||||
}
|
||||
}
|
||||
0
akka-rest/src/main/scala/ActorComponentProvider.scala
Executable file → Normal file
0
akka-rest/src/main/scala/ActorComponentProvider.scala
Executable file → Normal file
0
akka-rest/src/main/scala/ActorComponentProviderFactory.scala
Executable file → Normal file
0
akka-rest/src/main/scala/ActorComponentProviderFactory.scala
Executable file → Normal file
0
akka-rest/src/main/scala/AkkaServlet.scala
Executable file → Normal file
0
akka-rest/src/main/scala/AkkaServlet.scala
Executable file → Normal file
|
|
@ -1,28 +1,28 @@
|
|||
import _root_.org.mortbay.jetty.Connector
|
||||
import _root_.org.mortbay.jetty.Server
|
||||
import _root_.org.mortbay.jetty.webapp.WebAppContext
|
||||
|
||||
object RunWebApp extends Application {
|
||||
val server = new Server(8080)
|
||||
val context = new WebAppContext()
|
||||
context.setServer(server)
|
||||
context.setContextPath("/")
|
||||
context.setWar("src/main/webapp")
|
||||
|
||||
server.addHandler(context)
|
||||
|
||||
try {
|
||||
println(">>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP")
|
||||
server.start()
|
||||
while (System.in.available() == 0) {
|
||||
Thread.sleep(5000)
|
||||
}
|
||||
server.stop()
|
||||
server.join()
|
||||
} catch {
|
||||
case exc : Exception => {
|
||||
exc.printStackTrace()
|
||||
System.exit(100)
|
||||
}
|
||||
}
|
||||
}
|
||||
import _root_.org.mortbay.jetty.Connector
|
||||
import _root_.org.mortbay.jetty.Server
|
||||
import _root_.org.mortbay.jetty.webapp.WebAppContext
|
||||
|
||||
object RunWebApp extends Application {
|
||||
val server = new Server(8080)
|
||||
val context = new WebAppContext()
|
||||
context.setServer(server)
|
||||
context.setContextPath("/")
|
||||
context.setWar("src/main/webapp")
|
||||
|
||||
server.addHandler(context)
|
||||
|
||||
try {
|
||||
println(">>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP")
|
||||
server.start()
|
||||
while (System.in.available() == 0) {
|
||||
Thread.sleep(5000)
|
||||
}
|
||||
server.stop()
|
||||
server.join()
|
||||
} catch {
|
||||
case exc : Exception => {
|
||||
exc.printStackTrace()
|
||||
System.exit(100)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
0
akka-util/src/main/scala/HashCode.scala
Executable file → Normal file
0
akka-util/src/main/scala/HashCode.scala
Executable file → Normal file
|
|
@ -1,45 +1,45 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Atmosphere Scala REST Chat</title>
|
||||
<link rel="stylesheet" href="stylesheets/default.css" type="text/css" />
|
||||
<script type="text/javascript" src="javascripts/prototype.js"></script>
|
||||
<script type="text/javascript" src="javascripts/behaviour.js"></script>
|
||||
<script type="text/javascript" src="javascripts/moo.fx.js"></script>
|
||||
<script type="text/javascript" src="javascripts/moo.fx.pack.js"></script>
|
||||
<script type="text/javascript" src="javascripts/application.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<div id="container-inner">
|
||||
<div id="header">
|
||||
<h1>Atmosphere REST Chat</h1>
|
||||
</div>
|
||||
<div id="main">
|
||||
<div id="display">
|
||||
</div>
|
||||
<div id="form">
|
||||
<div id="system-message">Please input your name:</div>
|
||||
<div id="login-form">
|
||||
<input id="login-name" type="text" />
|
||||
<br />
|
||||
<input id="login-button" type="button" value="Login" />
|
||||
</div>
|
||||
<div id="message-form" style="display: none;">
|
||||
<div>
|
||||
<textarea id="message" name="message" rows="2" cols="40"></textarea>
|
||||
<br />
|
||||
<input id="post-button" type="button" value="Post Message" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<iframe id="comet-frame" style="display: none;"></iframe>
|
||||
</body>
|
||||
</html>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Atmosphere Scala REST Chat</title>
|
||||
<link rel="stylesheet" href="stylesheets/default.css" type="text/css" />
|
||||
<script type="text/javascript" src="javascripts/prototype.js"></script>
|
||||
<script type="text/javascript" src="javascripts/behaviour.js"></script>
|
||||
<script type="text/javascript" src="javascripts/moo.fx.js"></script>
|
||||
<script type="text/javascript" src="javascripts/moo.fx.pack.js"></script>
|
||||
<script type="text/javascript" src="javascripts/application.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<div id="container-inner">
|
||||
<div id="header">
|
||||
<h1>Atmosphere REST Chat</h1>
|
||||
</div>
|
||||
<div id="main">
|
||||
<div id="display">
|
||||
</div>
|
||||
<div id="form">
|
||||
<div id="system-message">Please input your name:</div>
|
||||
<div id="login-form">
|
||||
<input id="login-name" type="text" />
|
||||
<br />
|
||||
<input id="login-button" type="button" value="Login" />
|
||||
</div>
|
||||
<div id="message-form" style="display: none;">
|
||||
<div>
|
||||
<textarea id="message" name="message" rows="2" cols="40"></textarea>
|
||||
<br />
|
||||
<input id="post-button" type="button" value="Post Message" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<iframe id="comet-frame" style="display: none;"></iframe>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue