Class NovaParserModule.HostResourceUsageAdapter
- java.lang.Object
-
- org.jclouds.openstack.nova.v2_0.config.NovaParserModule.HostResourceUsageAdapter
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<HostResourceUsage>
,com.google.gson.JsonSerializer<HostResourceUsage>
- Enclosing class:
- NovaParserModule
@Singleton public static class NovaParserModule.HostResourceUsageAdapter extends Object implements com.google.gson.JsonSerializer<HostResourceUsage>, com.google.gson.JsonDeserializer<HostResourceUsage>
-
-
Constructor Summary
Constructors Constructor Description HostResourceUsageAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
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 interfacecom.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 interfacecom.google.gson.JsonSerializer<HostResourceUsage>
-
-