Search in sources :

Example 66 with Build

use of io.fabric8.openshift.api.model.Build in project fabric8 by jboss-fuse.

the class DiscoveryEventMarshaller method tightUnmarshal.

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataByteArrayInputStream dataIn, BooleanStream bs) throws IOException {
    super.tightUnmarshal(wireFormat, o, dataIn, bs);
    DiscoveryEvent info = (DiscoveryEvent) o;
    info.setServiceName(tightUnmarshalString(dataIn, bs));
    info.setBrokerName(tightUnmarshalString(dataIn, bs));
}
Also used : DiscoveryEvent(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.DiscoveryEvent)

Example 67 with Build

use of io.fabric8.openshift.api.model.Build in project fabric8 by jboss-fuse.

the class ExceptionResponseMarshaller method looseUnmarshal.

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataByteArrayInputStream dataIn) throws IOException {
    super.looseUnmarshal(wireFormat, o, dataIn);
    ExceptionResponse info = (ExceptionResponse) o;
    info.setException((java.lang.Throwable) looseUnmarsalThrowable(wireFormat, dataIn));
}
Also used : ExceptionResponse(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ExceptionResponse)

Example 68 with Build

use of io.fabric8.openshift.api.model.Build in project fabric8 by jboss-fuse.

the class IntegerResponseMarshaller method tightUnmarshal.

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataByteArrayInputStream dataIn, BooleanStream bs) throws IOException {
    super.tightUnmarshal(wireFormat, o, dataIn, bs);
    IntegerResponse info = (IntegerResponse) o;
    info.setResult(dataIn.readInt());
}
Also used : IntegerResponse(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.IntegerResponse)

Example 69 with Build

use of io.fabric8.openshift.api.model.Build in project fabric8 by jboss-fuse.

the class LocalTransactionIdMarshaller method looseUnmarshal.

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataByteArrayInputStream dataIn) throws IOException {
    super.looseUnmarshal(wireFormat, o, dataIn);
    LocalTransactionId info = (LocalTransactionId) o;
    info.setValue(looseUnmarshalLong(wireFormat, dataIn));
    info.setConnectionId((ConnectionId) looseUnmarsalCachedObject(wireFormat, dataIn));
}
Also used : LocalTransactionId(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.LocalTransactionId)

Example 70 with Build

use of io.fabric8.openshift.api.model.Build in project fabric8 by jboss-fuse.

the class LocalTransactionIdMarshaller method tightUnmarshal.

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataByteArrayInputStream dataIn, BooleanStream bs) throws IOException {
    super.tightUnmarshal(wireFormat, o, dataIn, bs);
    LocalTransactionId info = (LocalTransactionId) o;
    info.setValue(tightUnmarshalLong(wireFormat, dataIn, bs));
    info.setConnectionId((ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
}
Also used : LocalTransactionId(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.LocalTransactionId)

Aggregations

Test (org.junit.Test)255 ArrayList (java.util.ArrayList)74 BuildImageConfiguration (io.fabric8.maven.docker.config.BuildImageConfiguration)69 ImageConfiguration (io.fabric8.maven.docker.config.ImageConfiguration)68 HashMap (java.util.HashMap)66 File (java.io.File)53 ConfigMap (io.fabric8.kubernetes.api.model.ConfigMap)51 IOException (java.io.IOException)50 ConfigMapBuilder (io.fabric8.kubernetes.api.model.ConfigMapBuilder)45 Pod (io.fabric8.kubernetes.api.model.Pod)37 Map (java.util.Map)35 Service (io.fabric8.kubernetes.api.model.Service)34 FabricService (io.fabric8.api.FabricService)33 ResourceConfig (io.fabric8.maven.core.config.ResourceConfig)30 Container (io.fabric8.api.Container)29 RunImageConfiguration (io.fabric8.maven.docker.config.RunImageConfiguration)28 PodBuilder (io.fabric8.kubernetes.api.model.PodBuilder)27 List (java.util.List)26 ServicePortBuilder (io.fabric8.kubernetes.api.model.ServicePortBuilder)25 OpenShiftClient (io.fabric8.openshift.client.OpenShiftClient)25