本文整理匯總了Java中org.apache.mesos.Protos.DiscoveryInfo.Visibility方法的典型用法代碼示例。如果您正苦於以下問題:Java DiscoveryInfo.Visibility方法的具體用法?Java DiscoveryInfo.Visibility怎麽用?Java DiscoveryInfo.Visibility使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.mesos.Protos.DiscoveryInfo
的用法示例。
在下文中一共展示了DiscoveryInfo.Visibility方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: PortSpec
import org.apache.mesos.Protos.DiscoveryInfo; //導入方法依賴的package包/類
@JsonCreator
public PortSpec(
@JsonProperty("value") Protos.Value value,
@JsonProperty("role") String role,
@JsonProperty("pre-reserved-role") String preReservedRole,
@JsonProperty("principal") String principal,
@JsonProperty("env-key") String envKey,
@JsonProperty("port-name") String portName,
@JsonProperty("visibility") DiscoveryInfo.Visibility visibility,
@JsonProperty("network-names") Collection<String> networkNames) {
super(Constants.PORTS_RESOURCE_TYPE, value, role, preReservedRole, principal);
this.envKey = envKey;
this.portName = portName;
this.visibility = visibility;
this.networkNames = networkNames;
}
示例2: NamedVIPSpec
import org.apache.mesos.Protos.DiscoveryInfo; //導入方法依賴的package包/類
@JsonCreator
public NamedVIPSpec(
@JsonProperty("value") Protos.Value value,
@JsonProperty("role") String role,
@JsonProperty("pre-reserved-role") String preReservedRole,
@JsonProperty("principal") String principal,
@JsonProperty("env-key") String envKey,
@JsonProperty("port-name") String portName,
@JsonProperty("protocol") String protocol,
@JsonProperty("visibility") DiscoveryInfo.Visibility visibility,
@JsonProperty("vip-name") String vipName,
@JsonProperty("vip-port") Integer vipPort,
@JsonProperty("network-names") Collection<String> networkNames) {
super(value, role, preReservedRole, principal, envKey, portName, visibility, networkNames);
this.protocol = protocol;
this.vipName = vipName;
this.vipPort = vipPort;
ValidationUtils.validate(this);
}
示例3: getVisibility
import org.apache.mesos.Protos.DiscoveryInfo; //導入方法依賴的package包/類
@JsonProperty("visibility")
public DiscoveryInfo.Visibility getVisibility() {
return visibility;
}