suspect manager
This commit is contained in:
parent
45495d8692
commit
c9593331bd
3 changed files with 384 additions and 0 deletions
|
|
@ -112,6 +112,12 @@ public class RouteServer extends Thread
|
|||
return;
|
||||
}
|
||||
}
|
||||
else if ( url.startsWith( "/brouter/suspects" ) )
|
||||
{
|
||||
writeHttpHeader(bw, "text/html");
|
||||
SuspectManager.process( url, bw );
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new IllegalArgumentException( "unknown request syntax: " + getline );
|
||||
|
|
@ -119,6 +125,11 @@ public class RouteServer extends Thread
|
|||
RoutingContext rc = handler.readRoutingContext();
|
||||
List<OsmNodeNamed> wplist = handler.readWayPointList();
|
||||
|
||||
if ( wplist.size() < 10 )
|
||||
{
|
||||
NearRecentWps.add( wplist );
|
||||
}
|
||||
|
||||
cr = new RoutingEngine( null, null, serviceContext.segmentDir, wplist, rc );
|
||||
cr.quite = true;
|
||||
cr.doRun( maxRunningTime );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue