Skip to content

Commit

Permalink
Code rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
sosoll7 committed Nov 3, 2022
1 parent 8c8e336 commit f24cb33
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion piflow-core/src/main/scala/cn/piflow/main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -802,9 +802,12 @@ class ProcessImpl(flow: Flow, runnerContext: Context, runner: Runner, parentProc
outputs.saveData(debugPath)
}

/*
//monitor the throughput
if(null != PropertyUtil.getPropertyValue("monitor.throughput") && PropertyUtil.getPropertyValue("monitor.throughput").toBoolean == true)
if(null != PropertyUtil.getPropertyValue("monitor.throughput") && PropertyUtil.getPropertyValue("monitor.throughput").toBoolean == true) {
runnerListener.monitorJobCompleted(pe.getContext(), outputs : JobOutputStream)
}
*/

runnerListener.onJobCompleted(pe.getContext());

Expand Down
3 changes: 2 additions & 1 deletion piflow-server/src/main/scala/cn/piflow/api/API.scala
Original file line number Diff line number Diff line change
Expand Up @@ -512,13 +512,14 @@ object API {
"""{"stopWithGroup":"""" + resultList.mkString(",") + """"}"""
}

/*
def getThroughput(appId:String, stopName:String, portName:String):String = {
//test
//H2Util.addThroughput("a","b","c",100)
H2Util.getThroughput(appId, stopName, portName)
// "out 200"
}
*/

private def getLogFile(uuid : String, appName : String) : (File,File) = {
val now : Date = new Date()
Expand Down
2 changes: 2 additions & 0 deletions piflow-server/src/main/scala/cn/piflow/api/HTTPService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,7 @@ object HTTPService extends DefaultJsonProtocol with Directives with SprayJsonSup
}

}
/*
case HttpRequest(GET, Uri.Path("/monitor/throughout"), headers, entity, protocol) => {
val appId = req.getUri().query().getOrElse("appId", "")
Expand All @@ -714,6 +715,7 @@ object HTTPService extends DefaultJsonProtocol with Directives with SprayJsonSup
}
}
}
*/

case HttpRequest(GET, Uri.Path("/visualDataDirectory/data"), headers, entity, protocol) =>{
try{
Expand Down

0 comments on commit f24cb33

Please sign in to comment.