public class SynchronousDevAPI extends SynchronousAPI
channel, DEFAULT_MAX_INBOUND_MESSAGE_SIZE, log, performValidation, statusExceptionWrapper, wrapperFactory| Constructor and Description |
|---|
SynchronousDevAPI(io.grpc.ManagedChannel channel)
Constructor used for setting up a connection using a GRPC managed channel that
can be customized.
|
SynchronousDevAPI(java.lang.String host,
int port,
java.io.File trustedServerCertificate,
java.io.File macaroonFile)
Minimal constructor for setting up a connection with LND Application.
|
SynchronousDevAPI(java.lang.String host,
int port,
io.grpc.netty.shaded.io.netty.handler.ssl.SslContext sslContext,
MacaroonContext macaroonContext)
Constructor for setting up a connection with LND Application with more flexible
SSL context parameters.
|
| Modifier and Type | Method and Description |
|---|---|
protected DevGrpc.DevBlockingStub |
getStub() |
ImportGraphResponse |
importGraph(ChannelGraph request)
Method to send a importGraph request.
|
ImportGraphResponse |
importGraph(java.util.List<LightningNode> nodes,
java.util.List<ChannelEdge> edges)
Method to generate a importGraph request.
|
processRepeatableResponse, processResponseclose, isPerformValidation, processRequest, setPerformValidation, validatepublic SynchronousDevAPI(java.lang.String host,
int port,
java.io.File trustedServerCertificate,
java.io.File macaroonFile)
throws javax.net.ssl.SSLException,
ClientSideException
host - the hostname of ldn applicationport - the port of the application.trustedServerCertificate - a link of the SSL certificate used by the LND Application.macaroonFile - the file pointing to the macaroon to use, or null if no macaroons are used.javax.net.ssl.SSLException - if problems occurred setting up the SSL Connection.ClientSideException - if problems occurred reading the macaroon file.public SynchronousDevAPI(java.lang.String host,
int port,
io.grpc.netty.shaded.io.netty.handler.ssl.SslContext sslContext,
MacaroonContext macaroonContext)
host - the hostname of ldn applicationport - the port of the application.sslContext - the SSL Context used when connecting the LND Application.macaroonContext - the macaroon context to use.public SynchronousDevAPI(io.grpc.ManagedChannel channel)
channel - the managed channel to use.public ImportGraphResponse importGraph(java.util.List<LightningNode> nodes, java.util.List<ChannelEdge> edges) throws StatusException, ValidationException
StatusException - if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException - if validation problems found in request or response data.DevGrpc.DevBlockingStub.importGraph(org.lightningj.lnd.proto.LightningApi.ChannelGraph)public ImportGraphResponse importGraph(ChannelGraph request) throws StatusException, ValidationException
StatusException - if problems occurred in underlying GRPC call. Can be of one of three sub exceptions
ValidationException - if validation problems found in request or response data.DevGrpc.DevBlockingStub.importGraph(org.lightningj.lnd.proto.LightningApi.ChannelGraph)protected DevGrpc.DevBlockingStub getStub()