Class NovaParserModule.HostResourceUsageAdapter

    • Constructor Detail

      • HostResourceUsageAdapter

        public HostResourceUsageAdapter()
    • Method Detail

      • apply

        public HostResourceUsage apply​(org.jclouds.openstack.nova.v2_0.config.NovaParserModule.HostResourceUsageAdapter.HostResourceUsageView in)
      • deserialize

        public HostResourceUsage deserialize​(com.google.gson.JsonElement jsonElement,
                                             Type type,
                                             com.google.gson.JsonDeserializationContext context)
                                      throws com.google.gson.JsonParseException
        Specified by:
        deserialize in interface com.google.gson.JsonDeserializer<HostResourceUsage>
        Throws:
        com.google.gson.JsonParseException
      • serialize

        public com.google.gson.JsonElement serialize​(HostResourceUsage hostResourceUsage,
                                                     Type type,
                                                     com.google.gson.JsonSerializationContext context)
        Specified by:
        serialize in interface com.google.gson.JsonSerializer<HostResourceUsage>