Besonderhede van voorbeeld: 9212577515320938987

Metadata

Data

English[en]
When the session manager requests a client to save its state, the application proceeds as follows: it saves its state in such a way that the states of two different instances can be distinguished; this can be obtained for example by saving the state in a file whose name contains its identifier it stores the specification of how it has to be started again in the RestartCommand property; this property must contain the client identifier because: the application must retain its identifier when started again the identifier is needed to restore the state (for example, it is needed to find the file where its state is stored) The session manager maintains other properties beside RestartCommand.
Chinese[zh]
当会话管理器需要客户端保存其状态时,程序按以下步骤运行: 以一种方式保存其状态,两个不同实例的状态必须区分;保存状态的文件的名字以它的标识符构成,这样就可区分不同实例 在RestartCommand属性中保存重启该程序的方法;该属性必须包含客户端标识符,因为: 程序必须在重启时保持其标识符 保存状态时需要用到标识符(例如,使用标识符寻找状态保存在哪个文件) 除了RestartCommand,会话管理器还维护其他属性。

History

Your action: