Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (日本語) » Mobile Link - サーバ管理 » Mobile Link サーバ API » Java による同期スクリプトの作成 » Java 用 Mobile Link サーバ API リファレンス » DBConnectionContext インタフェース

 

getServerContext メソッド

構文
public ServerContext getServerContext( )
備考

この Mobile Link サーバの ServerContext を返します。

戻り値

この Mobile Link サーバの ServerContext

参照

次の例は、DBConnectionContext の ServerContext インスタンスを取得して、サーバを停止する方法を示します。

注意

この例は、_cc という DBConnectionContext インスタンスがあることを前提としています。

// A method that uses an instance of the ServerContext to shut down the server
public void shutDownServer() {
    ServerContext context = _cc.getServerContext();
    context.shutdown();
}