當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。