当前位置: 首页>>代码示例>>Java>>正文


Java HostDao类代码示例

本文整理汇总了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;
}
 
开发者ID:apache,项目名称:cloudstack,代码行数:23,代码来源:BigSwitchBcfUtils.java

示例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);
}
 
开发者ID:apache,项目名称:cloudstack,代码行数:18,代码来源:SspElementTest.java

示例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));
}
 
开发者ID:MissionCriticalCloud,项目名称:cosmic,代码行数:15,代码来源:AgentManagerImplTest.java

示例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();
}
 
开发者ID:MissionCriticalCloud,项目名称:cosmic,代码行数:14,代码来源:SystemVmManagerBase.java

示例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;
}
 
开发者ID:MissionCriticalCloud,项目名称:cosmic,代码行数:10,代码来源:AgentHookBase.java

示例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;
}
 
开发者ID:apache,项目名称:cloudstack,代码行数:9,代码来源:AgentHookBase.java

示例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;
}
 
开发者ID:apache,项目名称:cloudstack,代码行数:8,代码来源:ChildTestConfiguration.java

示例8: hostDao

import com.cloud.host.dao.HostDao; //导入依赖的package包/类
@Bean
public HostDao hostDao() {
    return Mockito.mock(HostDao.class);
}
 
开发者ID:MissionCriticalCloud,项目名称:cosmic,代码行数:5,代码来源:VMSnapshotStrategyTest.java

示例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;
}
 
开发者ID:MissionCriticalCloud,项目名称:cosmic,代码行数:6,代码来源:SshKeysDistriMonitor.java

示例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);
}
 
开发者ID:MissionCriticalCloud,项目名称:cosmic,代码行数:5,代码来源:ConsoleProxyManagerImpl.java

示例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);
}
 
开发者ID:MissionCriticalCloud,项目名称:cosmic,代码行数:5,代码来源:AgentBasedConsoleProxyManager.java

示例12: hostDao

import com.cloud.host.dao.HostDao; //导入依赖的package包/类
@Bean
public HostDao hostDao() {
    return Mockito.spy(new HostDaoImpl());
}
 
开发者ID:apache,项目名称:cloudstack,代码行数:5,代码来源:ChildTestConfiguration.java

示例13: CABackgroundTask

import com.cloud.host.dao.HostDao; //导入依赖的package包/类
public CABackgroundTask(final CAManager caManager, final HostDao hostDao) {
    this.caManager = caManager;
    this.hostDao = hostDao;
}
 
开发者ID:apache,项目名称:cloudstack,代码行数:5,代码来源:CAManagerImpl.java

示例14: SshKeysDistriMonitor

import com.cloud.host.dao.HostDao; //导入依赖的package包/类
public SshKeysDistriMonitor(AgentManager mgr, HostDao host, ConfigurationDao config) {
    _agentMgr = mgr;
    _configDao = config;
}
 
开发者ID:apache,项目名称:cloudstack,代码行数:5,代码来源:SshKeysDistriMonitor.java

示例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);
}
 
开发者ID:apache,项目名称:cloudstack,代码行数:4,代码来源:ConsoleProxyManagerImpl.java


注:本文中的com.cloud.host.dao.HostDao类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。