本文整理汇总了Java中com.cloud.host.dao.HostDao类的典型用法代码示例。如果您正苦于以下问题:Java HostDao类的具体用法?Java HostDao怎么用?Java HostDao使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HostDao类属于com.cloud.host.dao包,在下文中一共展示了HostDao类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: BigSwitchBcfUtils
import com.cloud.host.dao.HostDao; //导入依赖的package包/类
public BigSwitchBcfUtils(NetworkDao networkDao,
NicDao nicDao, VMInstanceDao vmDao, HostDao hostDao,
VpcDao vpcDao, BigSwitchBcfDao bigswitchBcfDao,
AgentManager agentMgr, VlanDao vlanDao, IPAddressDao ipAddressDao,
FirewallRulesDao fwRulesDao, FirewallRulesCidrsDao fwCidrsDao,
NetworkACLItemDao aclItemDao, NetworkACLItemCidrsDao aclItemCidrsDao,
NetworkModel networkModel){
_networkDao = networkDao;
_nicDao = nicDao;
_vmDao = vmDao;
_hostDao = hostDao;
_vpcDao = vpcDao;
_bigswitchBcfDao = bigswitchBcfDao;
_agentMgr = agentMgr;
_vlanDao = vlanDao;
_ipAddressDao = ipAddressDao;
_fwRulesDao = fwRulesDao;
_fwCidrsDao = fwCidrsDao;
_aclItemDao = aclItemDao;
_aclItemCidrsDao = aclItemCidrsDao;
_networkModel = networkModel;
}
示例2: setUp
import com.cloud.host.dao.HostDao; //导入依赖的package包/类
@Before
public void setUp() {
_element._configDao = mock(ConfigurationDao.class);
_element._dcDao = mock(DataCenterDao.class);
_element._hostDao = mock(HostDao.class);
_element._networkMgr = mock(NetworkOrchestrationService.class);
_element._networkModel = mock(NetworkModel.class);
_element._nicDao = mock(NicDao.class);
_element._physicalNetworkDao = mock(PhysicalNetworkDao.class);
_element._physicalNetworkServiceProviderDao = mock(PhysicalNetworkServiceProviderDao.class);
_element._resourceMgr = mock(ResourceManager.class);
_element._ntwkSrvcDao = mock(NetworkServiceMapDao.class);
_element._sspCredentialDao = mock(SspCredentialDao.class);
_element._sspTenantDao = mock(SspTenantDao.class);
_element._sspUuidDao = mock(SspUuidDao.class);
}
示例3: setUp
import com.cloud.host.dao.HostDao; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
host = new HostVO("some-Uuid");
host.setDataCenterId(1L);
cmds = new StartupCommand[]{new StartupRoutingCommand()};
attache = new ConnectedAgentAttache(null, 1L, "kvm-attache", null, false);
hostDao = Mockito.mock(HostDao.class);
storagePoolMonitor = Mockito.mock(Listener.class);
mgr._hostDao = hostDao;
mgr._hostMonitors = new ArrayList<>();
mgr._hostMonitors.add(new Pair<>(0, storagePoolMonitor));
}
示例4: getLongZoneHostInfoMap
import com.cloud.host.dao.HostDao; //导入依赖的package包/类
protected static Map<Long, ZoneHostInfo> getLongZoneHostInfoMap(final HostDao _hostDao) {
final Date cutTime = DateUtil.currentGMTTime();
final List<RunningHostCountInfo> l = _hostDao.getRunningHostCounts(new Date(cutTime.getTime() - ClusterManager.HeartbeatThreshold.value()));
final RunningHostInfoAgregator aggregator = new RunningHostInfoAgregator();
if (l.size() > 0) {
for (final RunningHostCountInfo countInfo : l) {
aggregator.aggregate(countInfo);
}
}
return aggregator.getZoneHostInfoMap();
}
示例5: AgentHookBase
import com.cloud.host.dao.HostDao; //导入依赖的package包/类
public AgentHookBase(final VMInstanceDao instanceDao, final HostDao hostDao, final ConfigurationDao cfgDao, final KeystoreManager ksMgr, final AgentManager agentMgr, final
KeysManager keysMgr) {
_instanceDao = instanceDao;
_hostDao = hostDao;
_agentMgr = agentMgr;
_configDao = cfgDao;
_ksMgr = ksMgr;
_keysMgr = keysMgr;
}
示例6: AgentHookBase
import com.cloud.host.dao.HostDao; //导入依赖的package包/类
public AgentHookBase(VMInstanceDao instanceDao, HostDao hostDao, ConfigurationDao cfgDao, KeystoreManager ksMgr, AgentManager agentMgr, KeysManager keysMgr) {
_instanceDao = instanceDao;
_hostDao = hostDao;
_agentMgr = agentMgr;
_configDao = cfgDao;
_ksMgr = ksMgr;
_keysMgr = keysMgr;
}
示例7: hostDao
import com.cloud.host.dao.HostDao; //导入依赖的package包/类
@Override
@Bean
public HostDao hostDao() {
HostDao dao = super.hostDao();
HostDao nDao = Mockito.spy(dao);
return nDao;
}
示例8: hostDao
import com.cloud.host.dao.HostDao; //导入依赖的package包/类
@Bean
public HostDao hostDao() {
return Mockito.mock(HostDao.class);
}
示例9: SshKeysDistriMonitor
import com.cloud.host.dao.HostDao; //导入依赖的package包/类
public SshKeysDistriMonitor(final AgentManager mgr, final HostDao host, final ConfigurationDao config) {
this._agentMgr = mgr;
_hostDao = host;
_configDao = config;
}
示例10: VmBasedAgentHook
import com.cloud.host.dao.HostDao; //导入依赖的package包/类
public VmBasedAgentHook(final VMInstanceDao instanceDao, final HostDao hostDao, final ConfigurationDao cfgDao, final KeystoreManager ksMgr, final AgentManager agentMgr,
final KeysManager keysMgr) {
super(instanceDao, hostDao, cfgDao, ksMgr, agentMgr, keysMgr);
}
示例11: AgentBasedAgentHook
import com.cloud.host.dao.HostDao; //导入依赖的package包/类
public AgentBasedAgentHook(final VMInstanceDao instanceDao, final HostDao hostDao, final ConfigurationDao cfgDao, final KeystoreManager ksMgr, final AgentManager
agentMgr, final KeysManager keysMgr) {
super(instanceDao, hostDao, cfgDao, ksMgr, agentMgr, keysMgr);
}
示例12: hostDao
import com.cloud.host.dao.HostDao; //导入依赖的package包/类
@Bean
public HostDao hostDao() {
return Mockito.spy(new HostDaoImpl());
}
示例13: CABackgroundTask
import com.cloud.host.dao.HostDao; //导入依赖的package包/类
public CABackgroundTask(final CAManager caManager, final HostDao hostDao) {
this.caManager = caManager;
this.hostDao = hostDao;
}
示例14: SshKeysDistriMonitor
import com.cloud.host.dao.HostDao; //导入依赖的package包/类
public SshKeysDistriMonitor(AgentManager mgr, HostDao host, ConfigurationDao config) {
_agentMgr = mgr;
_configDao = config;
}
示例15: VmBasedAgentHook
import com.cloud.host.dao.HostDao; //导入依赖的package包/类
public VmBasedAgentHook(VMInstanceDao instanceDao, HostDao hostDao, ConfigurationDao cfgDao, KeystoreManager ksMgr, AgentManager agentMgr, KeysManager keysMgr) {
super(instanceDao, hostDao, cfgDao, ksMgr, agentMgr, keysMgr);
}