-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
51 additions
and
19 deletions.
There are no files selected for viewing
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
5 changes: 1 addition & 4 deletions
5
...rc/main/scala/kyo/scheduler/package.scala → ...rc/main/scala/kyo/scheduler/package.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
package kyo | ||
|
||
import java.util.logging.* | ||
import kyo.stats.internal.StatsRegistry | ||
|
||
package object scheduler { | ||
|
||
private[scheduler] val log = Logger.getLogger("kyo.scheduler") | ||
|
||
private[scheduler] def statsScope = | ||
StatsRegistry.scope("kyo", "scheduler") | ||
|
||
private[scheduler] def bug(msg: String, ex: Throwable) = | ||
log.log(Level.SEVERE, s"🙈 !!Kyo Scheduler Bug!!", new Exception(msg, ex)) | ||
new Exception(s"🙈 !!Kyo Scheduler Bug!! " + msg, ex).printStackTrace() | ||
|
||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
kyo-scheduler/native/src/main/scala/kyo/scheduler/top/Reporter.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package kyo.scheduler.top | ||
|
||
import java.lang.management.ManagementFactory | ||
import javax.management.MBeanServer | ||
import javax.management.ObjectName | ||
import javax.management.StandardMBean | ||
import kyo.scheduler.InternalTimer | ||
import scala.concurrent.duration.* | ||
|
||
class Reporter( | ||
status: () => Status, | ||
enableTopJMX: Boolean, | ||
enableTopConsoleMs: Int, | ||
timer: InternalTimer | ||
) extends TopMBean { | ||
|
||
def getStatus() = status() | ||
|
||
def close(): Unit = () | ||
} | ||
|
||
trait TopMBean { | ||
def getStatus(): Status | ||
} |
11 changes: 11 additions & 0 deletions
11
kyo-scheduler/native/src/main/scala/kyo/scheduler/util/LoomSupport.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package kyo.scheduler.util | ||
|
||
import java.util.concurrent.Executor | ||
import java.util.concurrent.Executors | ||
import java.util.concurrent.ThreadFactory | ||
import java.util.logging.Logger | ||
import scala.util.control.NonFatal | ||
|
||
object LoomSupport { | ||
def tryVirtualize(enabled: Boolean, exec: Executor): Executor = exec | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.