本文整理匯總了Java中org.wildfly.swarm.topology.consul.ConsulTopologyFraction類的典型用法代碼示例。如果您正苦於以下問題:Java ConsulTopologyFraction類的具體用法?Java ConsulTopologyFraction怎麽用?Java ConsulTopologyFraction使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ConsulTopologyFraction類屬於org.wildfly.swarm.topology.consul包,在下文中一共展示了ConsulTopologyFraction類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getServiceActivators
import org.wildfly.swarm.topology.consul.ConsulTopologyFraction; //導入依賴的package包/類
@Override
public List<ServiceActivator> getServiceActivators(ConsulTopologyFraction fraction) {
List<ServiceActivator> activators = new ArrayList<>();
activators.add(new AgentActivator(fraction.url()));
activators.add(new ConsulTopologyConnectorActivator());
return activators;
}
開發者ID:wildfly-swarm-archive,項目名稱:wildfly-swarm-topology-consul,代碼行數:8,代碼來源:ConsulTopologyConfiguration.java
示例2: ConsulTopologyConfiguration
import org.wildfly.swarm.topology.consul.ConsulTopologyFraction; //導入依賴的package包/類
public ConsulTopologyConfiguration() {
super(ConsulTopologyFraction.class);
}
開發者ID:wildfly-swarm-archive,項目名稱:wildfly-swarm-topology-consul,代碼行數:4,代碼來源:ConsulTopologyConfiguration.java
示例3: getServiceActivators
import org.wildfly.swarm.topology.consul.ConsulTopologyFraction; //導入依賴的package包/類
@Override
public List<ServiceActivator> getServiceActivators(ConsulTopologyFraction fraction) {
List<ServiceActivator> activators = new ArrayList<>();
activators.add(new ConsulTopologyConnectorActivator(fraction.url()));
return activators;
}