getClusterName (NotesDbDirectory - JavaScript)

データベースディレクトリを含むクラスタの名前を返します。

定義場所

NotesDbDirectory

構文

getClusterName() : string

getClusterName(servername:string) : string

パラメータ 説明
servername サーバーの完全な階層名です (省略可)。デフォルトでは現在のサーバーです。
戻り値 説明
string クラスタの名前。

以下の計算結果フィールドには、ページの別の個所に設定されたデータベースディレクトリのクラスタ名が表示されます。
if (sessionScope.dbdir != null) {
	var dbdir:NotesDbDirectory = sessionScope.dbdir;
	var cluster:string = dbdir.getClusterName("Sales/Acme"); // specifies a server
//	var cluster:string = dbdir.getClusterName(); // uses the current server
	if (cluster.isEmpty()) {
		cluster = "No cluster";
	}
	return "Cluster name: " + cluster;
}