@Beta public class MultichainService extends Object
Be aware that this class is in Beta (as indicated by the annotation) and therefore subject to breaking changes.
Modifier and Type | Method and Description |
---|---|
static MultichainService |
create()
Create a service instance looking for an instance of service type 'multichain'.
|
Object |
invoke(String command,
Object... params)
Invoke a command on the MultiChain service API.
|
String |
toString() |
@Nonnull public static MultichainService create() throws CloudPlatformException
CloudPlatformException
- if no multichain service is found or the service is insufficiently specified@Nullable public Object invoke(@Nonnull String command, @Nullable Object... params) throws MultichainServiceFailureException, ShouldNotHappenException
command
- MultiChain commandparams
- the command parameters as positional argumentsMultichainServiceFailureException
- if the invocation fails or the server returns an errorShouldNotHappenException
- if data cannot be encoded or a configuration problem inhibits the callCopyright © 2018 SAP SE. All rights reserved.