blob: 31e77f5661499ef37ea7c0b485ae6c6f1dcb5880 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.utils.staterestapi.errors;
public class OtherMasterException extends NotMasterException {
private final String masterHost;
private final int masterPort;
public OtherMasterException(String masterHost, int masterPort) {
super("Cluster controller not master. Use master at " + masterHost + ":" + masterPort + ".");
this.masterHost = masterHost;
this.masterPort = masterPort;
}
public String getHost() { return masterHost; }
public int getPort() { return masterPort; }
}
|