Class AllocatedHostsSerializer
- java.lang.Object
-
- com.yahoo.config.provision.serialization.AllocatedHostsSerializer
-
public class AllocatedHostsSerializer extends java.lang.Object
The hosts allocated to an application. This can be serialized to/from JSON. This is immutable.- Author:
- Ulf Lilleengen, bratseth
-
-
Constructor Summary
Constructors Constructor Description AllocatedHostsSerializer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AllocatedHosts
fromJson(byte[] json, java.util.Optional<NodeFlavors> nodeFlavors)
static AllocatedHosts
fromSlime(com.yahoo.slime.Inspector inspector, java.util.Optional<NodeFlavors> nodeFlavors)
static byte[]
toJson(AllocatedHosts allocatedHosts)
static void
toSlime(AllocatedHosts allocatedHosts, com.yahoo.slime.Cursor cursor)
-
-
-
Method Detail
-
toJson
public static byte[] toJson(AllocatedHosts allocatedHosts) throws java.io.IOException
- Throws:
java.io.IOException
-
toSlime
public static void toSlime(AllocatedHosts allocatedHosts, com.yahoo.slime.Cursor cursor)
-
fromJson
public static AllocatedHosts fromJson(byte[] json, java.util.Optional<NodeFlavors> nodeFlavors)
-
fromSlime
public static AllocatedHosts fromSlime(com.yahoo.slime.Inspector inspector, java.util.Optional<NodeFlavors> nodeFlavors)
-
-