{"id":21906425,"url":"https://github.com/steffunky/m2gi.javanaise","last_synced_at":"2025-03-22T07:25:19.780Z","repository":{"id":75798767,"uuid":"105506206","full_name":"steffunky/m2gi.Javanaise","owner":"steffunky","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-01T20:24:13.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-27T07:42:50.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steffunky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-02T06:58:50.000Z","updated_at":"2017-10-02T07:00:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"20f6c4ef-6055-481d-8c51-f8f78410876f","html_url":"https://github.com/steffunky/m2gi.Javanaise","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steffunky%2Fm2gi.Javanaise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steffunky%2Fm2gi.Javanaise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steffunky%2Fm2gi.Javanaise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steffunky%2Fm2gi.Javanaise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steffunky","download_url":"https://codeload.github.com/steffunky/m2gi.Javanaise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244921423,"owners_count":20532253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T16:49:13.342Z","updated_at":"2025-03-22T07:25:19.754Z","avatar_url":"https://github.com/steffunky.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Javanaise\n\n**Version courante :** Javanaise 2.0\n\n**Etat du projet :** Le coordinateur et les clients IRC fonctionnent correctement. La gestion des verrous est transparente pour les programmeurs. Actuellement, l'obtention ou la création de l'objet à placer dans le coordinateur distant est pris en charge par le proxy.\n\n### Installation\n#### Compiler le projet\n```sh\nmkdir build\njavac -d build/ $(find ./src -name \"*.java\")\n```\n\n\n#### Lancement du registre RMI\n```sh\ncd build\nrmiregistry -J-Djava.rmi.server.useCodebaseOnly=false \u0026\n```\n\n#### Lancement du coordinateur\n```sh\ncd build\njava jvn.coordinator.Program \u0026\n```\n\n#### Lancement du client IRC\n```sh\ncd build\njava irc.Irc \u0026\n```\n\n### Exemple d'utilisation\n#### Interface ISentence\n```java\npublic interface ISentence \n{\n\t@JvnAction(actionType=ActionType.WRITE)\n\tpublic void write(String text);\n\t\n\t@JvnAction(actionType=ActionType.READ)\n\tpublic String read();\n}\n```\n#### Client IRC\n```java\n// Obtient ou créer un objet sentence avec la clé RMI \"IRC\" (objet géré en arrière plan par un JvnObject)\nISentence s = (ISentence) JvnProxy.newInstance(new Sentence(), \"IRC\");\n\n// Obtient le texte de l'objet Sentence (LockRead réalisé avant invocation, Unlock réalisé après invocation de la méthode \"read\")\nString text = s.read();\n\n// Met à jour le texte de l'objet Sentence (LockWrite avant invocation et Unlock après invocation de la méthode \"write\")\ns.write(\"Message\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteffunky%2Fm2gi.javanaise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteffunky%2Fm2gi.javanaise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteffunky%2Fm2gi.javanaise/lists"}