public class ServiceContext extends CoreContext
Context.ExportFormat
Constructor and Description |
---|
ServiceContext(CoreContext ctx,
String remoteHostname,
int remotePort,
ServiceType serviceType,
Optional<String> bucket) |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
bucket() |
void |
injectExportableParams(Map<String,Object> input)
This method needs to be implemented by the actual context implementations to
inject the params they need for exporting.
|
String |
remoteHostname() |
int |
remotePort() |
ServiceType |
serviceType() |
alternateAddress, alternateAddress, authenticator, core, environment, id
exportAsString, toString
public ServiceContext(CoreContext ctx, String remoteHostname, int remotePort, ServiceType serviceType, Optional<String> bucket)
public String remoteHostname()
public int remotePort()
public void injectExportableParams(Map<String,Object> input)
AbstractContext
injectExportableParams
in class CoreContext
input
- pass exportable params in here.public ServiceType serviceType()
Copyright © 2021 Couchbase, Inc.. All rights reserved.