org.jclouds.trmk.vcloud_0_8.domain.internal
Class NetworkImpl

java.lang.Object
  extended by org.jclouds.trmk.vcloud_0_8.domain.internal.ReferenceTypeImpl
      extended by org.jclouds.trmk.vcloud_0_8.domain.internal.NetworkImpl
All Implemented Interfaces:
Comparable<ReferenceType>, Network, ReferenceType

public class NetworkImpl
extends ReferenceTypeImpl
implements Network

Locations of resources in vCloud

Author:
Adrian Cole

Field Summary
protected  String description
           
protected  FenceMode fenceMode
           
protected  String gateway
           
protected  ReferenceType ips
           
protected  String netmask
           
protected  ReferenceType networkExtension
           
 
Constructor Summary
NetworkImpl(String name, String type, URI id, String description, String gateway, String netmask, FenceMode fenceMode, ReferenceType networkExtension, ReferenceType ips)
           
 
Method Summary
 int compareTo(ReferenceType o)
          
 String getDescription()
          
 FenceMode getFenceMode()
          return the network fence mode.
 String getGateway()
          
 ReferenceType getIps()
          
 String getNetmask()
          *
 ReferenceType getNetworkExtension()
          
 
Methods inherited from class org.jclouds.trmk.vcloud_0_8.domain.internal.ReferenceTypeImpl
equals, getHref, getName, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jclouds.trmk.vcloud_0_8.domain.ReferenceType
getHref, getName, getType
 

Field Detail

description

protected final String description

gateway

protected final String gateway

netmask

protected final String netmask

fenceMode

protected final FenceMode fenceMode

networkExtension

protected final ReferenceType networkExtension

ips

protected final ReferenceType ips
Constructor Detail

NetworkImpl

public NetworkImpl(String name,
                   String type,
                   URI id,
                   String description,
                   String gateway,
                   String netmask,
                   FenceMode fenceMode,
                   ReferenceType networkExtension,
                   ReferenceType ips)
Method Detail

getDescription

public String getDescription()

Specified by:
getDescription in interface Network
Returns:
Description of the network

getGateway

public String getGateway()

Specified by:
getGateway in interface Network
Returns:
The IP address of the network primary gateway

getNetmask

public String getNetmask()
*

Specified by:
getNetmask in interface Network
Returns:
the network subnet mask

getFenceMode

public FenceMode getFenceMode()
return the network fence mode.

Specified by:
getFenceMode in interface Network

getIps

public ReferenceType getIps()

Specified by:
getIps in interface Network

getNetworkExtension

public ReferenceType getNetworkExtension()

Specified by:
getNetworkExtension in interface Network

compareTo

public int compareTo(ReferenceType o)

Specified by:
compareTo in interface Comparable<ReferenceType>
Overrides:
compareTo in class ReferenceTypeImpl


Copyright © 2009-2012 jclouds. All Rights Reserved.