use of io.joynr.provider.Promise in project joynr by bmwcarit.
the class IltProvider method methodToFireBroadcastWithMultipleStructParameters.
/*
* methodToFireBroadcastWithMultipleStructParameters
*/
@Override
public Promise<DeferredVoid> methodToFireBroadcastWithMultipleStructParameters(String[] partitions) {
logger.warn("**********************************************************************");
logger.warn("* IltProvider.methodToFireBroadcastWithMultipleStructParameters called");
logger.warn("**********************************************************************");
DeferredVoid deferred = new DeferredVoid();
BaseStructWithoutElements baseStructWithoutElementsOut = IltUtil.createBaseStructWithoutElements();
ExtendedExtendedBaseStruct extendedExtendedBaseStructOut = IltUtil.createExtendedExtendedBaseStruct();
fireBroadcastWithMultipleStructParameters(baseStructWithoutElementsOut, extendedExtendedBaseStructOut, partitions);
deferred.resolve();
return new Promise<DeferredVoid>(deferred);
}
use of io.joynr.provider.Promise in project joynr by bmwcarit.
the class IltProvider method methodToFireBroadcastWithMultipleArrayParameters.
/*
* methodToFireBroadcastWithMultipleArrayParameters
*/
@Override
public Promise<DeferredVoid> methodToFireBroadcastWithMultipleArrayParameters(String[] partitions) {
logger.warn("*********************************************************************");
logger.warn("* IltProvider.methodToFireBroadcastWithMultipleArrayParameters called");
logger.warn("*********************************************************************");
DeferredVoid deferred = new DeferredVoid();
Long[] uInt64ArrayOut = IltUtil.createUInt64Array();
StructWithStringArray[] structWithStringArrayArrayOut = IltUtil.createStructWithStringArrayArray();
fireBroadcastWithMultipleArrayParameters(uInt64ArrayOut, structWithStringArrayArrayOut, partitions);
deferred.resolve();
return new Promise<DeferredVoid>(deferred);
}
use of io.joynr.provider.Promise in project joynr by bmwcarit.
the class IltProvider method overloadedMethodWithSelector.
/*
* overloadedMethodWithSelector (1)
*/
@Override
public Promise<OverloadedMethodWithSelector1Deferred> overloadedMethodWithSelector() {
logger.warn("*************************************************");
logger.warn("* IltProvider.overloadedMethodWithSelector called");
logger.warn("*************************************************");
OverloadedMethodWithSelector1Deferred deferred = new OverloadedMethodWithSelector1Deferred();
String stringOut = "Return value from overloadedMethodWithSelector 1";
deferred.resolve(stringOut);
return new Promise<OverloadedMethodWithSelector1Deferred>(deferred);
}
use of io.joynr.provider.Promise in project joynr by bmwcarit.
the class IltProvider method methodToFireBroadcastWithFiltering.
/*
* methodToFireBroadcastWithFiltering
*/
@Override
public Promise<DeferredVoid> methodToFireBroadcastWithFiltering(String stringArg) {
logger.warn("*******************************************************");
logger.warn("* IltProvider.methodToFireBroadcastWithFiltering called");
logger.warn("*******************************************************");
DeferredVoid deferred = new DeferredVoid();
// take the stringArg as input for the filtering
String stringOut = stringArg;
String[] stringArrayOut = IltUtil.createStringArray();
ExtendedTypeCollectionEnumerationInTypeCollection enumerationOut = ExtendedTypeCollectionEnumerationInTypeCollection.ENUM_2_VALUE_EXTENSION_FOR_TYPECOLLECTION;
StructWithStringArray structWithStringArrayOut = IltUtil.createStructWithStringArray();
StructWithStringArray[] structWithStringArrayArrayOut = IltUtil.createStructWithStringArrayArray();
fireBroadcastWithFiltering(stringOut, stringArrayOut, enumerationOut, structWithStringArrayOut, structWithStringArrayArrayOut);
deferred.resolve();
return new Promise<DeferredVoid>(deferred);
}
use of io.joynr.provider.Promise in project joynr by bmwcarit.
the class IltProvider method overloadedMethod.
/*
* overloadedMethod (1)
*/
@Override
public Promise<OverloadedMethod1Deferred> overloadedMethod() {
logger.warn("*****************************************");
logger.warn("* IltProvider.overloadedMethod called (1)");
logger.warn("*****************************************");
OverloadedMethod1Deferred deferred = new OverloadedMethod1Deferred();
String stringOut = "TestString 1";
deferred.resolve(stringOut);
return new Promise<OverloadedMethod1Deferred>(deferred);
}
Aggregations