@Singleton public static class NovaParserModule.HostResourceUsageAdapter extends Object implements com.google.gson.JsonSerializer<HostResourceUsage>, com.google.gson.JsonDeserializer<HostResourceUsage>
Constructor and Description |
---|
NovaParserModule.HostResourceUsageAdapter() |
Modifier and Type | Method and Description |
---|---|
HostResourceUsage |
apply(org.jclouds.openstack.nova.v2_0.config.NovaParserModule.HostResourceUsageAdapter.HostResourceUsageView in) |
HostResourceUsage |
deserialize(com.google.gson.JsonElement jsonElement,
Type type,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(HostResourceUsage hostResourceUsage,
Type type,
com.google.gson.JsonSerializationContext context) |
public NovaParserModule.HostResourceUsageAdapter()
public HostResourceUsage apply(org.jclouds.openstack.nova.v2_0.config.NovaParserModule.HostResourceUsageAdapter.HostResourceUsageView in)
public HostResourceUsage deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<HostResourceUsage>
com.google.gson.JsonParseException
public com.google.gson.JsonElement serialize(HostResourceUsage hostResourceUsage, Type type, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<HostResourceUsage>
Copyright © 2009-2013 jclouds. All Rights Reserved.