{"action":"created","issue":{"url":"https://api.github.com/repos/hazelcast/hazelcast/issues/12999","repository_url":"https://api.github.com/repos/hazelcast/hazelcast","labels_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/12999/labels{/name}","comments_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/12999/comments","events_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/12999/events","html_url":"https://github.com/hazelcast/hazelcast/issues/12999","id":318397113,"number":12999,"title":"Shutting Hazelcast instance by name","user":{"login":"pavan2017","id":27854314,"avatar_url":"https://avatars1.githubusercontent.com/u/27854314?v=4","gravatar_id":"","url":"https://api.github.com/users/pavan2017","html_url":"https://github.com/pavan2017","followers_url":"https://api.github.com/users/pavan2017/followers","following_url":"https://api.github.com/users/pavan2017/following{/other_user}","gists_url":"https://api.github.com/users/pavan2017/gists{/gist_id}","starred_url":"https://api.github.com/users/pavan2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavan2017/subscriptions","organizations_url":"https://api.github.com/users/pavan2017/orgs","repos_url":"https://api.github.com/users/pavan2017/repos","events_url":"https://api.github.com/users/pavan2017/events{/privacy}","received_events_url":"https://api.github.com/users/pavan2017/received_events","type":"User","site_admin":false},"labels":[{"id":793782133,"url":"https://api.github.com/repos/hazelcast/hazelcast/labels/Source:%20Community","name":"Source: Community","color":"3afc37","default":false},{"id":137752575,"url":"https://api.github.com/repos/hazelcast/hazelcast/labels/Team:%20Core","name":"Team: Core","color":"109def","default":false},{"id":1740692,"url":"https://api.github.com/repos/hazelcast/hazelcast/labels/Type:%20Enhancement","name":"Type: Enhancement","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/hazelcast/hazelcast/milestones/37","html_url":"https://github.com/hazelcast/hazelcast/milestone/37","labels_url":"https://api.github.com/repos/hazelcast/hazelcast/milestones/37/labels","id":531321,"number":37,"title":"Backlog","description":"This milestone is for grouping the issues which we want to consider in the far future","creator":{"login":"gurbuzali","id":1741680,"avatar_url":"https://avatars3.githubusercontent.com/u/1741680?v=4","gravatar_id":"","url":"https://api.github.com/users/gurbuzali","html_url":"https://github.com/gurbuzali","followers_url":"https://api.github.com/users/gurbuzali/followers","following_url":"https://api.github.com/users/gurbuzali/following{/other_user}","gists_url":"https://api.github.com/users/gurbuzali/gists{/gist_id}","starred_url":"https://api.github.com/users/gurbuzali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurbuzali/subscriptions","organizations_url":"https://api.github.com/users/gurbuzali/orgs","repos_url":"https://api.github.com/users/gurbuzali/repos","events_url":"https://api.github.com/users/gurbuzali/events{/privacy}","received_events_url":"https://api.github.com/users/gurbuzali/received_events","type":"User","site_admin":false},"open_issues":251,"closed_issues":186,"state":"open","created_at":"2014-01-09T13:44:04Z","updated_at":"2018-05-30T12:26:56Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-04-27T12:48:49Z","updated_at":"2018-05-30T12:28:11Z","closed_at":null,"author_association":"NONE","body":"I am trying to shutdown a running hazelcast instance programmatically \r\nHere is what i have tried\r\n```java\r\n  public static void main(String[] args) {\r\n        Config config = new Config();\r\n        config.setInstanceName(\"pavan\");\r\n        HazelcastInstance hazelcastInstance = Hazelcast.newHazelcastInstance(config);\r\n        System.out.println(hazelcastInstance.getName());\r\n    }\r\n```\r\n\r\n```java\r\npublic static void main(String[] args) {\r\n        Config config = new Config();\r\n        config.setInstanceName(\"pavan\");\r\n        HazelcastInstance instance = Hazelcast.newHazelcastInstance(config);\r\n        instance.shutdown();\r\n    }\r\n```\r\nThis shutdowns server but before shutting down it joins the cluster and then shutdown the instance.\r\nIs there any way just to stop running instance just by connecting like client ?\r\n"},"comment":{"url":"https://api.github.com/repos/hazelcast/hazelcast/issues/comments/393142728","html_url":"https://github.com/hazelcast/hazelcast/issues/12999#issuecomment-393142728","issue_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/12999","id":393142728,"user":{"login":"mmedenjak","id":17194871,"avatar_url":"https://avatars0.githubusercontent.com/u/17194871?v=4","gravatar_id":"","url":"https://api.github.com/users/mmedenjak","html_url":"https://github.com/mmedenjak","followers_url":"https://api.github.com/users/mmedenjak/followers","following_url":"https://api.github.com/users/mmedenjak/following{/other_user}","gists_url":"https://api.github.com/users/mmedenjak/gists{/gist_id}","starred_url":"https://api.github.com/users/mmedenjak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmedenjak/subscriptions","organizations_url":"https://api.github.com/users/mmedenjak/orgs","repos_url":"https://api.github.com/users/mmedenjak/repos","events_url":"https://api.github.com/users/mmedenjak/events{/privacy}","received_events_url":"https://api.github.com/users/mmedenjak/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T12:28:11Z","updated_at":"2018-05-30T12:28:11Z","author_association":"CONTRIBUTOR","body":"Hi @pavan2017 ! There is currently no method exposed to shut down a member remotely - you must have a reference to the hazelcast instance to shut it down. We might add that method in the future but I don't know when.\r\n\r\nBut Ahmet's suggestion definitely does what you need so please try it out."}}
{"actor":{"display_login":"mmedenjak"}}