NetworkOffering.getName
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using com.cloud.offering.NetworkOffering.getName (Showing top 7 results out of 315)

origin: apache/cloudstack

@Override
public boolean implement(Network network, NetworkOffering offering, DeployDestination dest, ReservationContext context) throws ConcurrentOperationException,
  ResourceUnavailableException, InsufficientCapacityException {
  if (offering.isSystemOnly() || !canHandle(dest, offering.getTrafficType(), network.getGuestType())) {
    s_logger.debug("BaremetalDhcpElement can not handle networkoffering: " + offering.getName());
    return false;
  }
  return true;
}
origin: apache/cloudstack

@Override
public boolean implement(Network network, NetworkOffering offering, DeployDestination dest, ReservationContext context) throws ConcurrentOperationException,
  ResourceUnavailableException, InsufficientCapacityException {
  if (dest.getDataCenter().getNetworkType() == DataCenter.NetworkType.Advanced){
    return true;
  }
  if (offering.isSystemOnly() || !canHandle(dest, offering.getTrafficType(), network.getGuestType())) {
    s_logger.debug("BaremetalPxeElement can not handle network offering: " + offering.getName());
    return false;
  }
  return true;
}
origin: apache/cloudstack

List<? extends NetworkOffering> offerList = _configService.listNetworkOfferings(TrafficType.Guest, false);
for (NetworkOffering offer : offerList) {
  if (offer.getName().equals(offeringName)) {
    if (offer.getState() != NetworkOffering.State.Enabled) {
      return EnableNetworkOffering(offer.getId());
origin: apache/cloudstack

List<? extends NetworkOffering> offerList = _configService.listNetworkOfferings(TrafficType.Public, false);
for (NetworkOffering offer: offerList) {
  if (offer.getName().equals(offeringName)) {
    if (offer.getState() != NetworkOffering.State.Enabled) {
      return EnableNetworkOffering(offer.getId());
origin: apache/cloudstack

NetworkOfferingResponse response = new NetworkOfferingResponse();
response.setId(offering.getUuid());
response.setName(offering.getName());
response.setDisplayText(offering.getDisplayText());
response.setTags(offering.getTags());
origin: apache/cloudstack

@Override
@DB
public void addRouterToGuestNetwork(final VirtualRouter router, final Network guestNetwork) {
  if (_routerNetworkDao.findByRouterAndNetwork(router.getId(), guestNetwork.getId()) == null) {
    final NetworkOffering off = _offDao.findById(guestNetwork.getNetworkOfferingId());
    if (!off.getName().equalsIgnoreCase(NetworkOffering.SystemPrivateGatewayNetworkOffering)) {
      final TransactionLegacy txn = TransactionLegacy.currentTxn();
      txn.start();
      //1) add router to network
      final RouterNetworkVO routerNtwkMap = new RouterNetworkVO(router.getId(), guestNetwork.getId(), guestNetwork.getGuestType());
      _routerNetworkDao.persist(routerNtwkMap);
      //2) create user stats entry for the network
      UserStatisticsVO stats =
          _userStatsDao.findBy(router.getAccountId(), router.getDataCenterId(), guestNetwork.getId(), null, router.getId(), router.getType().toString());
      if (stats == null) {
        stats =
            new UserStatisticsVO(router.getAccountId(), router.getDataCenterId(), null, router.getId(), router.getType().toString(), guestNetwork.getId());
        _userStatsDao.persist(stats);
      }
      txn.commit();
    }
  }
}
origin: apache/cloudstack

if (networkOffering != null) {
  response.setNetworkOfferingId(networkOffering.getUuid());
  response.setNetworkOfferingName(networkOffering.getName());
  response.setNetworkOfferingDisplayText(networkOffering.getDisplayText());
  response.setNetworkOfferingConserveMode(networkOffering.isConserveMode());
com.cloud.offeringNetworkOfferinggetName

Popular methods of NetworkOffering

  • getTrafficType
  • getGuestType
  • getId
  • getTags
  • isRedundantRouter
  • getUuid
  • getConcurrentConnections
  • isKeepAliveEnabled
  • isSpecifyVlan
  • isSystemOnly
  • getServicePackage
  • getState
  • getServicePackage,
  • getState,
  • isElasticIp,
  • isElasticLb,
  • isPersistent,
  • isSharedSourceNat,
  • isSpecifyIpRanges,
  • isSupportingStrechedL2,
  • getAvailability

Popular in Java

  • Finding current android device location
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Menu (java.awt)
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • BoxLayout (javax.swing)
  • JOptionPane (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)