Skip to content

Commit 14fba0a

Browse files
committed
Merged scala 2.10 upgrade
2 parents ec5db7d + bdd947a commit 14fba0a

File tree

155 files changed

+370
-236
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+370
-236
lines changed

admin-shell/src/main/scala/org/totalgrid/reef/shell/admin/AdminCommands.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class ResetDatabaseCommand extends ReefCommandSupport {
100100
}
101101
}
102102
} catch {
103-
case ex => println("Reset failed: " + ex.toString)
103+
case ex: Throwable => println("Reset failed: " + ex.toString)
104104
}
105105

106106
mstore.disconnect()

application-framework/src/main/scala/org/totalgrid/reef/app/ConnectionCloseManagerEx.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
package org.totalgrid.reef.app
2020

21-
import com.weiglewilczek.slf4s.Logging
21+
import com.typesafe.scalalogging.slf4j.Logging
2222
import net.agileautomata.executor4s._
2323
import org.totalgrid.reef.broker.{ BrokerConnectionFactory }
2424
import org.totalgrid.reef.client.settings.AmqpSettings

application-framework/src/main/scala/org/totalgrid/reef/app/KeyedMap.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
package org.totalgrid.reef.app
2020

21-
import com.weiglewilczek.slf4s.Logging
21+
import com.typesafe.scalalogging.slf4j.Logging
2222

2323
/**
2424
* simple interface that KeyedMap implements to hide implementation details from consumers

application-framework/src/main/scala/org/totalgrid/reef/app/ServiceContext.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import net.agileautomata.executor4s.Cancelable
2222

2323
import org.totalgrid.reef.client.proto.Envelope.SubscriptionEventType
2424

25-
import com.weiglewilczek.slf4s.Logging
25+
import com.typesafe.scalalogging.slf4j.Logging
2626
import org.totalgrid.reef.client.{ SubscriptionResult, SubscriptionEvent, SubscriptionEventAcceptor }
2727

2828
object ServiceContext {

application-framework/src/main/scala/org/totalgrid/reef/app/impl/LoginProcessTree.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import org.totalgrid.reef.app.process._
2424
import org.totalgrid.reef.client.service.proto.Application.ApplicationConfig
2525
import org.totalgrid.reef.app.ConnectedApplication
2626
import net.agileautomata.executor4s._
27-
import com.weiglewilczek.slf4s.Logging
27+
import com.typesafe.scalalogging.slf4j.Logging
2828

2929
/**
3030
* Handles the multi stage application login process.

application-framework/src/main/scala/org/totalgrid/reef/app/impl/SimpleConnectedApplicationManager.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
package org.totalgrid.reef.app.impl
2020

2121
import org.totalgrid.reef.client.settings.{ NodeSettings, UserSettings }
22-
import com.weiglewilczek.slf4s.Logging
22+
import com.typesafe.scalalogging.slf4j.Logging
2323
import org.totalgrid.reef.client.Connection
2424
import org.totalgrid.reef.app.{ ConnectedApplication, ConnectionConsumer, ConnectedApplicationManager, ConnectionProvider }
2525
import net.agileautomata.executor4s.{ Cancelable, Executor }

application-framework/src/main/scala/org/totalgrid/reef/app/process/TaskState.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
package org.totalgrid.reef.app.process
2020

21-
import com.weiglewilczek.slf4s.Logging
21+
import com.typesafe.scalalogging.slf4j.Logging
2222

2323
import net.agileautomata.executor4s._
2424
import scala.collection.immutable.Queue

application-framework/src/main/scala/org/totalgrid/reef/procstatus/ProcessHeartbeatActor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package org.totalgrid.reef.procstatus
2121
import org.totalgrid.reef.client.service.proto.ProcessStatus.StatusSnapshot
2222

2323
import org.totalgrid.reef.client.service.proto.Application.HeartbeatConfig
24-
import com.weiglewilczek.slf4s.Logging
24+
import com.typesafe.scalalogging.slf4j.Logging
2525

2626
import org.totalgrid.reef.client.sapi.rpc.ApplicationService
2727
import org.totalgrid.reef.client.exception.ReefServiceException

application-whiteboard/src/main/scala/org/totalgrid/reef/app/whiteboard/AppWhiteboardActivator.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ package org.totalgrid.reef.app.whiteboard
2020

2121
import org.osgi.framework.BundleContext
2222
import net.agileautomata.executor4s.Executor
23-
import com.weiglewilczek.scalamodules._
23+
import org.totalgrid.reef.osgi.Helpers._
2424
import org.totalgrid.reef.app._
2525

2626
/**
@@ -31,13 +31,13 @@ import org.totalgrid.reef.app._
3131
class AppWhiteboardActivator extends ConnectedApplicationBundleActivator {
3232

3333
def addApplication(context: BundleContext, connectionManager: ConnectionProvider, appManager: ConnectedApplicationManager, executor: Executor) {
34-
context watchServices withInterface[ConnectionConsumer] andHandle {
35-
case AddingService(p, _) => connectionManager.addConsumer(p)
34+
context.watchServices(classOf[ConnectionConsumer]) {
35+
case ServiceAdded(p, _) => connectionManager.addConsumer(p)
3636
case ServiceRemoved(p, _) => connectionManager.removeConsumer(p)
3737
}
3838

39-
context watchServices withInterface[ConnectedApplication] andHandle {
40-
case AddingService(p, _) => appManager.addConnectedApplication(p)
39+
context.watchServices(classOf[ConnectedApplication]) {
40+
case ServiceAdded(p, _) => appManager.addConnectedApplication(p)
4141
case ServiceRemoved(p, _) => appManager.removeConnectedApplication(p)
4242
}
4343
}

application-whiteboard/src/main/scala/org/totalgrid/reef/app/whiteboard/ConnectedApplicationBundleActivator.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
package org.totalgrid.reef.app.whiteboard
2020

2121
import org.totalgrid.reef.osgi.ExecutorBundleActivator
22-
import com.weiglewilczek.slf4s.Logging
22+
import com.typesafe.scalalogging.slf4j.Logging
2323
import org.osgi.framework.BundleContext
2424
import net.agileautomata.executor4s.Executor
2525
import org.totalgrid.reef.osgi.OsgiConfigReader

0 commit comments

Comments
 (0)