本文整理汇总了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;
}