当Azure中关闭的云服务实例(例如,当主机操作系统重启,或自动缩放下来的时候),它触发停止方法,因此应用程序有机会从容关掉。如何实现Azure的云服务的RoleEntryPoint.OnStop方法在Java中
我能找到的文档如何做到这一点在.NET:http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.serviceruntime.roleentrypoint.onstop.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1但我无法找到如何从Java做的任何文件。
我该如何在Java中做到这一点?