public class MesosUtilities extends Object
Constructor and Description |
---|
MesosUtilities() |
Modifier and Type | Method and Description |
---|---|
static JobSpec |
byteStringToJobSpec(org.apache.mesos.protobuf.ByteString data)
Build a JobSpec from a ByteString off the wire
|
static String |
getResourceMessage(Collection<org.apache.mesos.Protos.Resource> resources)
Makes a string message from resources list.
|
static String |
getResourceMessage(org.apache.mesos.Protos.Resource resource)
Creates string out an offer in a nice format.
|
static org.apache.mesos.protobuf.ByteString |
jobSpecToByteString(JobSpec jobSpec)
Get a ByteString serialization of a JobSpec to send over the wire to the mesos-backend.
|
public static org.apache.mesos.protobuf.ByteString jobSpecToByteString(JobSpec jobSpec)
jobSpec
- - JobSpec to serializepublic static JobSpec byteStringToJobSpec(org.apache.mesos.protobuf.ByteString data) throws ClassNotFoundException, InstantiationException, IllegalAccessException
data
- - ByteString to deserializeIllegalAccessException
InstantiationException
ClassNotFoundException
public static String getResourceMessage(Collection<org.apache.mesos.Protos.Resource> resources)
resources
- - resource list to make into string.public static String getResourceMessage(org.apache.mesos.Protos.Resource resource)
resource
- - mesos resource to make into string.Copyright © 1999-2015 Apache OODT. All Rights Reserved.