Search in sources :

Example 16 with DeferredVoid

use of io.joynr.provider.DeferredVoid in project joynr by bmwcarit.

the class IltProvider method setAttributeMapStringString.

@Override
public Promise<DeferredVoid> setAttributeMapStringString(MapStringString attributeMapStringString) {
    DeferredVoid deferred = new DeferredVoid();
    this.attributeMapStringString = attributeMapStringString;
    attributeMapStringStringChanged(attributeMapStringString);
    deferred.resolve();
    return new Promise<DeferredVoid>(deferred);
}
Also used : Promise(io.joynr.provider.Promise) DeferredVoid(io.joynr.provider.DeferredVoid)

Example 17 with DeferredVoid

use of io.joynr.provider.DeferredVoid in project joynr by bmwcarit.

the class IltProvider method methodToFireBroadcastWithMultiplePrimitiveParameters.

/*
     * methodToFireBroadcastWithMultiplePrimitiveParameters
     */
@Override
public Promise<DeferredVoid> methodToFireBroadcastWithMultiplePrimitiveParameters(String[] partitions) {
    logger.warn("*************************************************************************");
    logger.warn("* IltProvider.methodToFireBroadcastWithMultiplePrimitiveParameters called");
    logger.warn("*************************************************************************");
    DeferredVoid deferred = new DeferredVoid();
    Double doubleOut = 1.1d;
    String stringOut = "boom";
    fireBroadcastWithMultiplePrimitiveParameters(doubleOut, stringOut, partitions);
    deferred.resolve();
    return new Promise<DeferredVoid>(deferred);
}
Also used : Promise(io.joynr.provider.Promise) MapStringString(joynr.interlanguagetest.namedTypeCollection2.MapStringString) DeferredVoid(io.joynr.provider.DeferredVoid)

Example 18 with DeferredVoid

use of io.joynr.provider.DeferredVoid in project joynr by bmwcarit.

the class IltProvider method setAttributeArrayOfStringImplicit.

@Override
public Promise<DeferredVoid> setAttributeArrayOfStringImplicit(String[] attributeArrayOfStringImplicit) {
    DeferredVoid deferred = new DeferredVoid();
    this.attributeArrayOfStringImplicit = attributeArrayOfStringImplicit;
    attributeArrayOfStringImplicitChanged(attributeArrayOfStringImplicit);
    deferred.resolve();
    return new Promise<DeferredVoid>(deferred);
}
Also used : Promise(io.joynr.provider.Promise) DeferredVoid(io.joynr.provider.DeferredVoid)

Example 19 with DeferredVoid

use of io.joynr.provider.DeferredVoid in project joynr by bmwcarit.

the class IltProvider method methodWithoutOutputParameter.

/*
     * methodWithoutOutputParameter
     *
     * can only resolve or reject since there is no output parameter
     */
@Override
public Promise<DeferredVoid> methodWithoutOutputParameter(Boolean booleanArg) {
    logger.warn("*************************************************");
    logger.warn("* IltProvider.methodWithoutOutputParameter called");
    logger.warn("*************************************************");
    DeferredVoid deferred = new DeferredVoid();
    if (booleanArg != false) {
        logger.warn("methodWithoutOutputParameter: invalid argument booleanArg");
        deferred.reject(new ProviderRuntimeException("methodWithoutOutputParameter: received wrong argument"));
        return new Promise<DeferredVoid>(deferred);
    }
    deferred.resolve();
    return new Promise<DeferredVoid>(deferred);
}
Also used : Promise(io.joynr.provider.Promise) DeferredVoid(io.joynr.provider.DeferredVoid) ProviderRuntimeException(joynr.exceptions.ProviderRuntimeException)

Example 20 with DeferredVoid

use of io.joynr.provider.DeferredVoid in project joynr by bmwcarit.

the class IltProvider method methodToFireBroadcastWithSingleByteBufferParameter.

/*
     * methodToFireBroadcastWithSingleByteBufferParameter
     */
@Override
public Promise<DeferredVoid> methodToFireBroadcastWithSingleByteBufferParameter(Byte[] byteBufferIn, String[] partitions) {
    logger.info("***********************************************************************");
    logger.info("* IltProvider.methodToFireBroadcastWithSingleByteBufferParameter called");
    logger.info("***********************************************************************");
    DeferredVoid deferred = new DeferredVoid();
    fireBroadcastWithSingleByteBufferParameter(byteBufferIn, partitions);
    deferred.resolve();
    return new Promise<DeferredVoid>(deferred);
}
Also used : Promise(io.joynr.provider.Promise) DeferredVoid(io.joynr.provider.DeferredVoid)

Aggregations

DeferredVoid (io.joynr.provider.DeferredVoid)41 Promise (io.joynr.provider.Promise)36 ProviderRuntimeException (joynr.exceptions.ProviderRuntimeException)7 GlobalDiscoveryEntry (joynr.types.GlobalDiscoveryEntry)5 MapStringString (joynr.interlanguagetest.namedTypeCollection2.MapStringString)4 JoynrException (io.joynr.exceptions.JoynrException)3 Deferred (io.joynr.provider.Deferred)2 PromiseListener (io.joynr.provider.PromiseListener)2 ApplicationException (joynr.exceptions.ApplicationException)2 StructWithStringArray (joynr.interlanguagetest.namedTypeCollection1.StructWithStringArray)2 DiscoveryEntry (joynr.types.DiscoveryEntry)2 AbstractModule (com.google.inject.AbstractModule)1 TypeLiteral (com.google.inject.TypeLiteral)1 GlobalDiscoveryEntryPersisted (io.joynr.capabilities.GlobalDiscoveryEntryPersisted)1 JoynrPropertiesModule (io.joynr.common.JoynrPropertiesModule)1 JoynrMessageScopeModule (io.joynr.context.JoynrMessageScopeModule)1 MultiReturnValuesContainer (io.joynr.dispatcher.rpc.MultiReturnValuesContainer)1 RequestCaller (io.joynr.dispatching.RequestCaller)1 RequestCallerFactory (io.joynr.dispatching.RequestCallerFactory)1 RequestInterpreter (io.joynr.dispatching.rpc.RequestInterpreter)1