public RegistryRunner() throws RemoteException {
}
/** *Asktheregistrytoexitinsteadofforcingitdoso;this *worksbetteronwindows...
*/ publicvoid exit() throws RemoteException { // REMIND: create a thread to do this to avoid // a remote exception?
System.err.println("received call to exit");
System.exit(0);
}
/** *RegistryVM.start()willfiltertheoutputofregistrysubprocess, *whenvalidportisdetected,RegistryVM.start()returns. *So,forsubclass,it'simportanttocallthismethodafterregistry *isinitializedandnecessaryremoteobjectshavebeenbound. * *@paramporttheportonwhichregistryacceptsrequests
*/ protectedstaticvoid notify(int port) { // this output is important for RegistryVM to get the port // where rmiregistry is serving
System.out.println(PORT_LABEL_START + port + PORT_LABEL_END);
System.out.flush();
}
publicstaticvoid main(String[] args) { int port = init(args);
notify(port);
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.