Package com.yahoo.vespa.config.protocol
Class SlimeConfigResponse
- java.lang.Object
-
- com.yahoo.vespa.config.protocol.SlimeConfigResponse
-
- All Implemented Interfaces:
ConfigResponse
public class SlimeConfigResponse extends java.lang.Object implements ConfigResponse
Class for serializing config responses based onSlime
implementing theConfigResponse
interface.- Author:
- Ulf Lilleengen
-
-
Constructor Summary
Constructors Constructor Description SlimeConfigResponse(com.yahoo.text.Utf8Array payload, long generation, boolean internalRedeploy, java.lang.String configMd5, CompressionInfo compressionInfo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SlimeConfigResponse
fromConfigPayload(ConfigPayload payload, long generation, boolean internalRedeploy, java.lang.String configMd5)
CompressionInfo
getCompressionInfo()
java.lang.String
getConfigMd5()
long
getGeneration()
com.yahoo.text.Utf8Array
getPayload()
boolean
isInternalRedeploy()
Returns whether this application instance was produced by an internal redeployment, not an application package changevoid
serialize(java.io.OutputStream os, CompressionType type)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.yahoo.vespa.config.protocol.ConfigResponse
hasEqualConfig, hasNewerGeneration
-
-
-
-
Constructor Detail
-
SlimeConfigResponse
public SlimeConfigResponse(com.yahoo.text.Utf8Array payload, long generation, boolean internalRedeploy, java.lang.String configMd5, CompressionInfo compressionInfo)
-
-
Method Detail
-
fromConfigPayload
public static SlimeConfigResponse fromConfigPayload(ConfigPayload payload, long generation, boolean internalRedeploy, java.lang.String configMd5)
-
getPayload
public com.yahoo.text.Utf8Array getPayload()
- Specified by:
getPayload
in interfaceConfigResponse
-
getGeneration
public long getGeneration()
- Specified by:
getGeneration
in interfaceConfigResponse
-
isInternalRedeploy
public boolean isInternalRedeploy()
Returns whether this application instance was produced by an internal redeployment, not an application package change- Specified by:
isInternalRedeploy
in interfaceConfigResponse
-
getConfigMd5
public java.lang.String getConfigMd5()
- Specified by:
getConfigMd5
in interfaceConfigResponse
-
serialize
public void serialize(java.io.OutputStream os, CompressionType type) throws java.io.IOException
- Specified by:
serialize
in interfaceConfigResponse
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getCompressionInfo
public CompressionInfo getCompressionInfo()
- Specified by:
getCompressionInfo
in interfaceConfigResponse
-
-