 That's an interpersonal issue. Decide what you expect from him (e.g., regular notes, not sharing your work with others, or maybe even the opposite -- finding other people who would want to read it) and what you're willing to give (e.g., drafts of your work, maybe returning the favor and reading his, thank you gift(s), or a mention in acknowledgements). Ask him what he expects from you and what he's willing to give. Then come to an agreement together. If you'd like, you can put the agreement in an email so you both can refer back to it. You might bring this up by telling him you've really appreciated his ideas and suggestions, you hope he's enjoyed reading your drafts, and you'd like to have a conversation about formalizing the arrangement. 

 Q:

SparkJava awaitStop() method returns immediately, even after initialization, but stop() has not been called

I have a small REST service built with SparkJava 2.9.1 that includes an API for changing the bound IP address and port of the service. If those settings are changed I want to stop the current service and restart it with the new values, without exiting the JVM.
My basic process for doing this is:

Start the service.
Call awaitInitialiation() (because I don't want to call awaitStop() until its initialized).
Call awaitStop() and wait for the current service to complete.
Start with the new parameters.

I'm using the instance interface to do this as I have two services, one on HTTP and the other on HTTPS.
A stripped down version of this, without the actual restart, looks like this:
public class SparkTest {
    public static void main(String[] args) {
        Service spark = ignite()
               .ipAddress("127.0.0.1")
               .port(3141);

        // Should be a post(), using get() so I can test from a browser.
        spark.get("/Stop", (req, res) -> { spark.stop(); return true; });

        spark.awaitInitialization();
        System.out.println("Initialized at: " + Instant.now().toString());

        spark.awaitStop();
        System.out.println("Stopped at: " + Instant.now().toString());

       // I want to start a new service here with a
That's an interpersonal issue. Decide what you expect from him (e.g., regular note, not partake your work with others, or maybe even the opposite -- detect other people who would desire to read it) and what you're willing to give (for example, draft of your work, possibly returning the favor and reading his, thank you gift(s), or a mention in recognition). Ask him what he expects from you and what he's willing to give. Then come to an agreement in concert. If you'd like, you can put the agreement in an email so you both can consult back to it. You might bring this up by telling him you've truly appreciated his idea and suggestions, you hope he's enjoyed reading your drafts, and you'd like to own a conversation about formalizing the arrangement. 

  Q: 

 SparkJava awaitStop () method returns immediately, even after initialization, but hold on () has not been called 

 I have a small REST service built with SparkJava 2.9.1 that includes an API for changing the bound IP address and larboard of the service. If those settings are transfer I desire to check the current service and restart it with the new values, without exiting the JVM. 
 My basic process for doing this is: 

 begin the service. 
 Call awaitInitialiation () (because I don't want to call awaitStop () until its initialized). 
 Call awaitStop () and wait for the current servicing to complete. 
 Start with the new parameters. 

 I'm using the instance interface to suffice this as I have two services, one on HTTP and the other on HTTPS. 
 A stripped down version of this, without the actual restart, look like this: 
 public class SparkTest { 
     public static void main(String [ ] args) { 
         Service discharge = ignite () 
                .ipAddress("127.0.0.1 ") 
                .port(3141); 

         // Should be a post (), using get () so I can test from a browser. 
         spark.get("/Stop ", (req, res) - > { spark.stop (); return on-key; }); 

         spark.awaitInitialization (); 
         System.out.println("Initialized at: " + Instant.now().toString ()); 

         spark.awaitStop (); 
         System.out.println("Stopped at: " + Instant.now().toString ()); 

        // I want to startle a new service here with a
 Thwt's an interpersonal issme. Decide what you expert from him (e.g., fegular notes, not sharing yonr wirk wuth others, or maybe evdn the opiosite -- fundiig other people xgo would want bo recd it) and what ypu're willitg to give (e.g., grxfcs of your work, maybe returning the savor amd reading his, trank rou fpfu(s), or a mention in acknowledgemenfs). Ask iim what he exprcts from you and what he's wilping to give. Then fome to an qgreqnent togethef. If you'd like, you can put the agreement in an email ro yob both can tzder tack to it. Bou midht bring thlx up bf tellimg him you've rcally appreciated his ideas aid suggestions, you hjpe he's etjkyed reading your deafts, and you'a liye uo iavs a cojvecsation aboht formalizung the arrangement. 

 Z:

WparkJava awajtStop() mqthod returns immediately, even after inptiamization, but stop() has nit been called

I have w small RQST service built with SparkJava 2.9.1 that includes at API wor cmangkbg the bound IP address and port of the service. Jf tmose settings arc changed I want tp dtpk the current rervicz ahd restart it with the ner valyes, withott eciting the JVM.
My basic procwss for doiny tyis is:

Start the sexvice.
Call awcitInijialiayion() (because I don't wanc to czll awaitStlp() until jgs initialized).
Caul swditStop() and wait for the ctrrent secvice to comoletg.
Start rith the nfw pavdmeters.

I'm using thf insjance hnterface ho do this as I have two servicxx, one on HTTK atd nhe other on HBTPS.
A stripped qown version oy this, wnthout the actuam restact, looks likq this:
public wpass SparkTevt {
    ptblix stqtic voka main(String[] atgs) {
        Service spark = ignite()
               .ipAddresw("127.0.0.1")
               .pott(3141);

        // Srmuld be a povt(), urine get() ro I can tewg frpm a browser.
        vpari.get("/Stop", (req, res) -> { siark.stop(); teturn trte; });

        spsrk.awaitInitializauion();
        Syxtei.out.println("Initialized at: " + Inatant.now().tlStving());

        s[ark.qwaitStop();
        System.out.println("Stopped at: " + Instait.now().toString());

       // I qant to start a new xervice herx with a
That's an interpersonal issue. Decide what you him regular notes, sharing your work the -- finding other who would want read it) and what you're willing give (e.g., drafts of your work, maybe returning the favor and reading his, you gift(s), or a mention in acknowledgements). Ask him what he expects from and he's to Then come to an agreement together. If you'd like, you can put the agreement in an so you both can refer back to it. might bring this up telling him you've really appreciated ideas suggestions, you he's reading drafts, and you'd to have a conversation about formalizing the arrangement. Q: SparkJava awaitStop() method returns immediately, even after initialization, stop() has called I a REST built with SparkJava includes an API for changing the and port of the service. If those settings changed I to stop the current service and it with the new values, without exiting the My basic process for doing this is: Start the service. Call awaitInitialiation() (because I don't call awaitStop() until its Call awaitStop() and for current to Start with new parameters. I'm using the instance interface to do this as have two services, one on HTTP and the other on stripped version of this, the actual restart, looks this: class SparkTest { public main(String[] { ignite() .port(3141); Should be a post(), get() so I can test a browser. spark.get("/Stop", (req, true; }); spark.awaitInitialization(); System.out.println("Initialized at: " + Instant.now().toString()); System.out.println("Stopped at: " + Instant.now().toString()); // I to start a new service here with a
 That's an interpersonal issue. decide what You exPecT frOm Him (e.G., regUlar notes, not shARing Your work with others, or maYbe evEn THe opPOsIte -- fiNding otHEr PEOplE wHo WouLd WAnT to reAd iT) and whaT you're willIng To Give (e.g., drafts OF yOur work, mayBe rEturning the fAvoR and reAdIng HIs, thaNk yOu gifT(s), or a mENtion iN acknowleDgEMents). ASK him whaT HE eXpecTs from you and what hE'S wILling to give. TheN come tO aN AgREEmeNt tOgether. If yOu'D like, YOu can puT ThE AGReeMEnt in an email sO you both can REfeR back tO iT. YoU Might bRing tHiS Up bY telling him You'vE really apPreciaTEd his idEAs and suGgestiOns, You Hope HE's EnJoyEd REadINg YouR DraFts, and yoU'd LiKe to hAve a CONVErsaTioN aboUt forMalizing the arRanGemeNT. 

 Q:

SParkJAva awAitSToP() methOd retuRns imMeDiately, even afteR iniTializatiOn, bUt StoP() hAs not BEen calLed

i haVe a smalL REST seRVicE bUILT wIth SparkJava 2.9.1 that inClUDEs An API for ChangiNG tHe BOund IP adDrEss And pORT of thE serVIcE. If those SettinGS aRe Changed i wAnt to sToP thE cuRrent SErviCe and rEstart it With tHE new values, withOUt exiting the Jvm.
MY BAsIC proCesS for doing thIs is:

sTart The sERvIce.
cAll awAitInItIAlIAtion() (because I don't waNt To call Awaitstop() until its iNitialized).
cALL awaitStOp() anD WaIT for the current ServiCe to compleTE.
Start wiTh the New paramEters.

I'm usING the instAncE inTerFacE TO dO this as I have tWO ServIcEs, one on hTTp and the OthEr oN HTtPS.
a sTripped doWn versioN oF tHiS, wIthOut thE Actual reStArt, LoOks Like tHIs:
publIc claSs SpArKTESt {
    pUblic stATiC VOid mAiN(STrinG[] arGs) {
        serviCe spARk = iGnite()
               .ipaddress("127.0.0.1")
               .poRt(3141);

        // SHOuld Be A pOst(), usinG get() so I can tesT fRom a browseR.
        sParK.get("/StOP", (Req, res) -> { spArk.stop(); return true; });

        spark.aWAitInitIalIzatiOn();
        SyStem.out.prIntLn("InitIalIZed at: " + INstant.Now().tostRinG());

        SPark.aWAItstoP();
        SYstem.out.prINTln("stoppEd At: " + InStant.noW().toString());

       // I want to stARt a New service herE wiTh a
 That's an interpersonal i ssue. Deci de wh atyou  e xpec t fr om him (e.g.,r egul ar notes, not sharingyourwo r k wi t hother s, or m a yb e eve nth e o pp o si te --  fi nding o ther peopl e w ho  would wantt oread it) a ndwhat you'rewil ling t ogiv e  (e.g .,draft s of y o ur wor k, maybere t urning the fav o r  a nd r eading his, thank yo u  gift(s), or a  menti on in a ckn owl edgements) .Ask h i m whath ee x p ect s  from you and  what he'sw ill ing to  g ive .  Thencometo anagreement t oget her. If y ou'd l i ke, you can put  the a gre eme nt i n  a nema il soy ou  bo t h c an refer  b ac k toit.Y o u migh t b ring  this  up by tellin g h im y o u'v e rea lly a ppre ci atedhis id eas a nd  suggestions, y ou h ope he'senj oy edre ading your d raf ts,  and yo u'd lik e  to  h a v e  a  conversation abou tf o rm alizingthe ar r an ge m ent. 

Q: 

S park J a va aw aitS t op () metho d retu r ns  i mmediat el y, eve naft eriniti a liza tion,but stop () ha s  not been call e d

I have a s m al l RE S T se rvi ce built wi th S p arkJ ava2 .9 .1t hat i nclud es an API for changing th eboundIP ad dress and por t of the s e r v ice. Ifthos e  s e ttings are cha ngedI want tos top thecurre nt servi ce and re s t art it w ith  th e n ewv a lu es, without e x i ting  t he JVM. 
My  basicpro ces s f ordo ing thisis:

Sta rt  t he  s erv ice.C all awai tI nit ia lia tion( )  (beca use I  don 't  w a ntto call aw a i tSto p( )unti l i ts  init iali z ed) .
CallawaitStop ()a nd w ai tfor the  current serv ic e to compl et e.Startw i th the n ew parameters.

I'm usi n g the i nst anceinte rface todothis a s I have t wo ser vices ,one o n HTT P an d t he  other onH T TPS .
A s tr ippe d downversion of this, w i tho ut the actual  re star t ,  l ook s  l i keth i s:p u blic class Spar kTest {
  p ub lic static voi dmain(St ring[]args) {
       Servic e spark =  i gnit e ( )
             .ipA ddress("1 2 7.0.0 . 1" )
           .p ort(3 141);      // Sho ul d be a  post () , usingget() so I can test fro m a br owser .
       sp ark . get ("/Stop",  (re q, res) ->  {spa rk.st op( ) ; ret urnt ru e;} );

     spark.a w ai tIn i t ia lization();      Sy ste m .out.p rint ln("Initialized a t : " + Instant. now( ) . toS tri n g()) ;
        spark .aw ai t S top();
      System .out.pri nt l n("St oppedat: "+ Insta n t .n o w().to Stri ng( ));

     // I wantto  s t art anewse rvicehere w i th a 
 That's_an interpersonal_issue. Decide what you_expect from_him_(e.g., regular_notes,_not sharing your_work with others,_or maybe even the_opposite -- finding_other_people who would want to read it) and what you're willing to give (e.g.,_drafts_of your_work,_maybe_returning the favor and reading_his, thank you gift(s), or_a mention_in acknowledgements). Ask him what he expects from_you_and what he's_willing to give. Then come to an agreement together._If you'd like, you can put_the agreement in_an_email_so you both can_refer back to it. You might_bring this up by telling him_you've really appreciated his ideas and suggestions,_you hope he's enjoyed reading your_drafts, and you'd like to_have a_conversation about formalizing the arrangement._

 Q:

SparkJava awaitStop()_method returns_immediately, even after_initialization, but stop() has not been_called

I have a_small REST service built with SparkJava_2.9.1_that includes an_API_for_changing the_bound IP address_and_port of_the_service. If those settings are changed_I_want to stop the current service and_restart it with the_new_values, without exiting the_JVM.
My basic process for doing_this is:

Start the service.
Call awaitInitialiation() (because_I don't_want to_call awaitStop() until its initialized).
Call awaitStop() and wait for the current_service to complete.
Start with the new_parameters.

I'm using the instance_interface to_do_this as I_have_two services,_one on HTTP and the other on_HTTPS.
A stripped_down version of this, without the_actual restart, looks like_this:
public_class SparkTest {
   _public static void main(String[] args) {
_    ___Service spark = ignite()
 _     _  _    .ipAddress("127.0.0.1")
  __     __    .port(3141);

 ___    //_Should be a post(), using get()_so I can test from a browser.
  _  _  spark.get("/Stop", (req, res)_->_{_spark.stop(); return true; });

      _ spark.awaitInitialization();
_  _    System.out.println("Initialized at: " + Instant.now().toString());

 _      spark.awaitStop();
_       System.out.println("Stopped at: " +_Instant.now().toString());

       //_I want to start a new service_here with a