{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5565","repository_url":"https://api.github.com/repos/orientechnologies/orientdb","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5565/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5565/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5565/events","html_url":"https://github.com/orientechnologies/orientdb/issues/5565","id":125482451,"number":5565,"title":"Embedded distributed Orient server - add hooks for exception handling","user":{"login":"ygoraly","id":2392046,"avatar_url":"https://avatars.githubusercontent.com/u/2392046?v=3","gravatar_id":"","url":"https://api.github.com/users/ygoraly","html_url":"https://github.com/ygoraly","followers_url":"https://api.github.com/users/ygoraly/followers","following_url":"https://api.github.com/users/ygoraly/following{/other_user}","gists_url":"https://api.github.com/users/ygoraly/gists{/gist_id}","starred_url":"https://api.github.com/users/ygoraly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ygoraly/subscriptions","organizations_url":"https://api.github.com/users/ygoraly/orgs","repos_url":"https://api.github.com/users/ygoraly/repos","events_url":"https://api.github.com/users/ygoraly/events{/privacy}","received_events_url":"https://api.github.com/users/ygoraly/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/bug","name":"bug","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-01-07T20:54:20Z","updated_at":"2016-05-12T06:45:25Z","closed_at":"2016-05-12T06:45:25Z","body":"I am using Orient in embedded distributed mode, and would like to be able to handle exceptions.\r\nI had to override OHazelcastPlugin.startup in order to change System.exit() calls, and don't have a solution for exceptions that happen after startup.\r\n1) Add a callback/hook/configuration so an exception will be thrown instead of System.exit\r\n2) Support listeners for distributed-related exceptions that happen after startup"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/218673638","html_url":"https://github.com/orientechnologies/orientdb/issues/5565#issuecomment-218673638","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5565","id":218673638,"user":{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T06:45:25Z","updated_at":"2016-05-12T06:45:25Z","body":"We already have this in v2.2:\r\n\r\n      ENVIRONMENT_ALLOW_JVM_SHUTDOWN(\"environment.allowJVMShutdown\", \"Allows the shutdown of the JVM, if needed/requested\",\r\n      Boolean.class, true, true),\r\n\r\nYou can set this property to false to avoid shutting down the JVM in this case."}}