データベースディレクトリを含むクラスタの名前を返します。
パラメータ | 説明 |
---|---|
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;
}