com.xensource.xenapi
Class SR.Record

java.lang.Object
  extended by com.xensource.xenapi.SR.Record
All Implemented Interfaces:
Types.Record
Enclosing class:
SR

public static class SR.Record
extends java.lang.Object
implements Types.Record

Represents all the fields in a SR


Field Summary
 java.util.Set<Types.StorageOperations> allowedOperations
          list of the operations allowed in this state.
 java.util.Map<java.lang.String,Blob> blobs
          Binary blobs associated with this SR
 java.lang.String contentType
          the type of the SR's content, if required (e.g.
 java.util.Map<java.lang.String,Types.StorageOperations> currentOperations
          links each of the running tasks using this object (by reference) to a current_operation enum which describes the nature of the task.
 java.lang.Boolean localCacheEnabled
          True if this SR is assigned to be the local cache for its host
 java.lang.String nameDescription
          a notes field containg human-readable description
 java.lang.String nameLabel
          a human-readable name
 java.util.Map<java.lang.String,java.lang.String> otherConfig
          additional configuration
 java.util.Set<PBD> PBDs
          describes how particular hosts can see this storage repository
 java.lang.Long physicalSize
          total physical size of the repository (in bytes)
 java.lang.Long physicalUtilisation
          physical space currently utilised on this storage repository (in bytes).
 java.lang.Boolean shared
          true if this SR is (capable of being) shared between multiple hosts
 java.util.Map<java.lang.String,java.lang.String> smConfig
          SM dependent data
 java.util.Set<java.lang.String> tags
          user-specified tags for categorization purposes
 java.lang.String type
          type of the storage repository
 java.lang.String uuid
          Unique identifier/object reference
 java.util.Set<VDI> VDIs
          all virtual disks known to this storage repository
 java.lang.Long virtualAllocation
          sum of virtual_sizes of all VDIs in this storage repository (in bytes)
 
Constructor Summary
SR.Record()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> toMap()
          Convert a SR.Record to a Map
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

uuid

public java.lang.String uuid
Unique identifier/object reference


nameLabel

public java.lang.String nameLabel
a human-readable name


nameDescription

public java.lang.String nameDescription
a notes field containg human-readable description


allowedOperations

public java.util.Set<Types.StorageOperations> allowedOperations
list of the operations allowed in this state. This list is advisory only and the server state may have changed by the time this field is read by a client.


currentOperations

public java.util.Map<java.lang.String,Types.StorageOperations> currentOperations
links each of the running tasks using this object (by reference) to a current_operation enum which describes the nature of the task.


VDIs

public java.util.Set<VDI> VDIs
all virtual disks known to this storage repository


PBDs

public java.util.Set<PBD> PBDs
describes how particular hosts can see this storage repository


virtualAllocation

public java.lang.Long virtualAllocation
sum of virtual_sizes of all VDIs in this storage repository (in bytes)


physicalUtilisation

public java.lang.Long physicalUtilisation
physical space currently utilised on this storage repository (in bytes). Note that for sparse disk formats, physical_utilisation may be less than virtual_allocation


physicalSize

public java.lang.Long physicalSize
total physical size of the repository (in bytes)


type

public java.lang.String type
type of the storage repository


contentType

public java.lang.String contentType
the type of the SR's content, if required (e.g. ISOs)


shared

public java.lang.Boolean shared
true if this SR is (capable of being) shared between multiple hosts


otherConfig

public java.util.Map<java.lang.String,java.lang.String> otherConfig
additional configuration


tags

public java.util.Set<java.lang.String> tags
user-specified tags for categorization purposes


smConfig

public java.util.Map<java.lang.String,java.lang.String> smConfig
SM dependent data


blobs

public java.util.Map<java.lang.String,Blob> blobs
Binary blobs associated with this SR


localCacheEnabled

public java.lang.Boolean localCacheEnabled
True if this SR is assigned to be the local cache for its host

Constructor Detail

SR.Record

public SR.Record()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toMap

public java.util.Map<java.lang.String,java.lang.Object> toMap()
Convert a SR.Record to a Map

Specified by:
toMap in interface Types.Record