<div dir="ltr">Thanks Peter, I wish my Java skills were up to scratch and I would do it. Killing process from windows is HARD and is generally not a good idea so to be able to trigger an elegant shutdown is rather nice ..<div>
<br></div><div><div>I'll make you a new logo if you do it (hee hee, just kidding :) ..)</div></div><div><br></div><div>Cheers</div><div><br></div><div>mark</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">
<div><br></div><div>Regards</div><div><br></div><div>Mark Cupitt</div><div><br></div><div><div>"If we change the world, let it bear the mark of our intelligence"</div><div><br></div><div><a href="https://www.openstreetmap.org/user/Mark_Cupitt" target="_blank">See me on Open Street Map</a><br>
</div><div><a></a><div><br></div></div><div><a href="http://ph.linkedin.com/in/markcupitt" target="_blank">See me on LinkedIn</a><br><img src="http://s.c.lnkd.licdn.com/scds/common/u/img/webpromo/btn_myprofile_160x33.png"><br>
</div><span style="font-family:arial black,sans-serif"><div><span style="font-family:arial black,sans-serif"><br></span></div><b><a href="http://gis.stackexchange.com/users/17846/mark-c" target="_blank">See me on StackExchange</a><br>
</b></span><img src="http://gis.stackexchange.com/users/flair/17846.png"><br></div><div>===============================================================================================</div><div>The contents of this email are intended only for the individual(s) to whom it is addressed and may contain</div>
<div>confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute,</div><div>or use the contents of this email. If you have received this email in error, please notify the sender immediately and</div>
<div>delete the email and any attachments.<br></div><div>
===============================================================================================
</div></div></div>
<br><br><div class="gmail_quote">On Wed, May 14, 2014 at 8:15 PM, Peter K <span dir="ltr"><<a href="mailto:peathal@yahoo.de" target="_blank">peathal@yahoo.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hey Mark,<br>
<br>
this is not hard to implement. Providing this via API call is a
good idea. Also have a look into:<br>
<a href="https://github.com/graphhopper/graphhopper/issues/112" target="_blank">https://github.com/graphhopper/graphhopper/issues/112</a><br>
<br>
Regards,<br>
Peter.<br>
<br>
<br>
</div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">Peter, another thought, would it be difficult to
have the java instance poll for a semaphore file or someother
mechanism to force a shutdown?
<div><br>
</div>
<div>In this way, I could run the update process in another JVM,
then write the trigger to shutdown the main instance, then
fire it back up again with a new command line pointing to the
new graphs and pbf files</div>
<div><br>
</div>
<div>Possibly an api call on the web interface. I am not a Java
person, so it is a little beyond my skills</div>
<div><br>
</div>
<div>Cheers</div>
<div>Mark</div>
<div><br>
</div>
</div>
<div class="gmail_extra">
<br clear="all">
<div>
<div dir="ltr">
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div>Mark Cupitt</div>
<div><br>
</div>
<div>
<div>"If we change the world, let it bear the mark of our
intelligence"</div>
<div><br>
</div>
<div><a href="https://www.openstreetmap.org/user/Mark_Cupitt" target="_blank">See me on Open Street Map</a><br>
</div>
<div>
<div><br>
</div>
</div>
<div><a href="http://ph.linkedin.com/in/markcupitt" target="_blank">See me on LinkedIn</a><br>
<img src="http://s.c.lnkd.licdn.com/scds/common/u/img/webpromo/btn_myprofile_160x33.png"><br>
</div>
<span style="font-family:arial black,sans-serif">
<div><span style="font-family:arial black,sans-serif"><br>
</span></div>
<b><a href="http://gis.stackexchange.com/users/17846/mark-c" target="_blank">See me on StackExchange</a><br>
</b></span><img src="http://gis.stackexchange.com/users/flair/17846.png"><br>
</div>
<div>===============================================================================================</div>
<div>The contents of this email are intended only for the
individual(s) to whom it is addressed and may contain</div>
<div>confidential or privileged information. If you are not
the intended recipient, you must not disclose, copy,
distribute,</div>
<div>or use the contents of this email. If you have received
this email in error, please notify the sender immediately
and</div>
<div>delete the email and any attachments.<br>
</div>
<div>
===============================================================================================
</div>
</div>
</div>
<br>
<br>
<div class="gmail_quote">On Wed, May 14, 2014 at 3:11 PM,
Markware Software Services <span dir="ltr"><<a href="mailto:markwaresoftware@gmail.com" target="_blank">markwaresoftware@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Peter,
<div><br>
</div>
<div>Ok cool, Possibly running another instance of
Graphhopper to prepare the graphs, then just bring the
main instance down for a minute or so might also work. I
might use this method on the Philippines as I have a 4
Gig 32Bit Win Server Machine but Java only uses 1G
anyway. :)
<div>
<br>
</div>
<div>Cheers</div>
<div><br>
</div>
<div>Mark</div>
</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div dir="ltr">
<div><br>
</div>
<div>Regards</div>
<div>
<div><br>
</div>
<div>Mark Cupitt</div>
<div><br>
</div>
<div>
<div>
"If we change the world, let it bear the mark of
our intelligence"</div>
<div><br>
</div>
<div><a href="https://www.openstreetmap.org/user/Mark_Cupitt" target="_blank">See me on Open Street Map</a><br>
</div>
<div>
<div>
<br>
</div>
</div>
<div><a href="http://ph.linkedin.com/in/markcupitt" target="_blank">See me on LinkedIn</a><br>
<img src="http://s.c.lnkd.licdn.com/scds/common/u/img/webpromo/btn_myprofile_160x33.png"><br>
</div>
<span style="font-family:arial black,sans-serif">
<div>
<span style="font-family:arial black,sans-serif"><br>
</span></div>
<b><a href="http://gis.stackexchange.com/users/17846/mark-c" target="_blank">See me on StackExchange</a><br>
</b></span><img src="http://gis.stackexchange.com/users/flair/17846.png"><br>
</div>
<div>===============================================================================================</div>
<div>The contents of this email are intended only
for the individual(s) to whom it is addressed and
may contain</div>
<div>confidential or privileged information. If you
are not the intended recipient, you must not
disclose, copy, distribute,</div>
<div>or use the contents of this email. If you have
received this email in error, please notify the
sender immediately and</div>
<div>delete the email and any attachments.<br>
</div>
<div>
===============================================================================================
</div>
</div>
</div>
</div>
<div>
<div>
<br>
<br>
<div class="gmail_quote">On Wed, May 14, 2014 at 3:03
PM, Peter K <span dir="ltr"><<a href="mailto:peathal@yahoo.de" target="_blank">peathal@yahoo.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hey Mark,<br>
<br>
restarting could be done in several
'flavours'. One use case would be to refresh
the files in-memory and just swap the
GraphHopper instances which requires CPU and
RAM on the same machine but involves no
down-time - so very nice but only for rather
small areas. Another usecase could be as you
describe but the problem is that the import
and preparation could be too long to be
acceptable.<br>
<br>
So I currently don't think this can be handled
within GraphHopper itself and is easily
implemented outside of it.<br>
<br>
Regards,<br>
Peter.<br>
<br>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">Hi Peter, I am just
installing the new Graphhopper in a
windows Server environment and it works
well under cygwin
<div><br>
</div>
<div>I intend to update the graphs on a
weekly basis (2G Asia pbf) and a
simple question, </div>
<div><br>
</div>
<div>If I download the new pbf file and
overwrite the old file, will
graphhopper automatically detect the
new file (date stamp diff) or do I
need to stop graphhopper, delete the
graphs and restart graphhopper to
trigger the rebuild?</div>
<div><br>
</div>
<div>If it is the second case, I guess
at some stage in the future it may be
useful to have some kind of semaphore
file or other trigger that could cause
the rebuild of the graph without
having ot kill graphhopper to help
with the background automatic
updating? Of course, the system woudl
have to return Not Available to any
calls whilst the graph was being
rebuilt.<br clear="all">
<div>
<div dir="ltr">
<div><br>
</div>
<div>Am interested in your
thoughts on the best way to go.</div>
<div><br>
</div>
<div>Cheers</div>
<div><br>
</div>
<div>Mark Cupitt</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br></blockquote></div><br></div>