public final class VanillaAssetTree extends net.openhft.chronicle.core.io.AbstractCloseable implements AssetTree
AssetTree.ClientBuilder
Constructor and Description |
---|
VanillaAssetTree() |
VanillaAssetTree(AssetRuleProvider ruleProvider) |
VanillaAssetTree(int hostId) |
VanillaAssetTree(int hostId,
AssetRuleProvider ruleProvider) |
VanillaAssetTree(@Nullable String name) |
VanillaAssetTree(@Nullable String name,
AssetRuleProvider ruleProvider) |
Modifier and Type | Method and Description |
---|---|
String |
clusterName() |
void |
clusterName(String clusterName) |
@NotNull VanillaAssetTree |
forRemoteAccess(String hostPortDescription) |
@NotNull VanillaAssetTree |
forRemoteAccess(@NotNull String[] hostPortDescription,
@NotNull net.openhft.chronicle.wire.WireType wire) |
@NotNull VanillaAssetTree |
forRemoteAccess(@NotNull String[] hostPortDescription,
@NotNull net.openhft.chronicle.wire.WireType wire,
@Nullable net.openhft.chronicle.network.connection.ClientConnectionMonitor clientConnectionMonitor,
@NotNull net.openhft.chronicle.network.ConnectionStrategy connectionStrategy)
creates an asset tree that connects to a remote server via tcp/ip
|
@NotNull VanillaAssetTree |
forRemoteAccess(@NotNull String[] hostPortDescription,
@NotNull net.openhft.chronicle.wire.WireType wire,
@Nullable net.openhft.chronicle.network.connection.ClientConnectionMonitor clientConnectionMonitor,
@NotNull net.openhft.chronicle.network.ConnectionStrategy connectionStrategy,
@NotNull net.openhft.chronicle.network.api.session.SessionDetails sessionDetails,
@Nullable Supplier<net.openhft.chronicle.threads.Pauser> pauserSupplier)
Creates an asset tree that connects to a remote server via tcp/ip
|
@NotNull VanillaAssetTree |
forRemoteAccess(String hostPortDescription,
@NotNull net.openhft.chronicle.wire.WireType wire) |
@NotNull VanillaAssetTree |
forRemoteAccess(String serverAddress,
@NotNull net.openhft.chronicle.wire.WireType wireType,
Consumer<Throwable> t) |
@NotNull VanillaAssetTree |
forServer() |
@NotNull VanillaAssetTree |
forServer(boolean daemon) |
@NotNull VanillaAssetTree |
forTesting() |
@NotNull VanillaAssetTree |
forTesting(boolean daemon) |
protected void |
performClose() |
String |
region() |
VanillaAssetTree |
region(String region) |
@NotNull VanillaAsset |
root()
Returns the root asset.
|
@NotNull String |
toString() |
@NotNull AssetTreeStats |
usageStats() |
@NotNull AssetTree |
withConfig(String etcDir,
String baseDir)
Deprecated.
|
assertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, enableCloseableTracing, isClosed, isClosing, isInUserThread, performCloseInBackground, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, threadSafetyCheck, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, waitForCloseablesToClose, waitForClosed, warnAndCloseIfNotClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
acquireMap, acquirePublisher, acquireQueue, acquireQueue, acquireQueue, acquireQueue, acquireReference, acquireService, acquireSet, acquireSubscription, acquireTopicPublisher, acquireTopicPublisher, acquireView, clientBuilder, disableManagement, enableManagement, enableManagement, getSubscription, registerSubscriber, registerSubscriber, registerTopicSubscriber, registerTopicSubscriber, registerTopicSubscriber, unregisterSubscriber, unregisterTopicSubscriber
close, closeQuietly, closeQuietly, notifyClosing, warnAndCloseIfNotClosed
public VanillaAssetTree()
public VanillaAssetTree(int hostId)
public VanillaAssetTree(@Nullable @Nullable String name)
public VanillaAssetTree(AssetRuleProvider ruleProvider)
public VanillaAssetTree(@Nullable @Nullable String name, AssetRuleProvider ruleProvider)
public VanillaAssetTree(int hostId, AssetRuleProvider ruleProvider)
@NotNull public @NotNull VanillaAsset root()
AssetTree
This gives an entry point to the entire asset Tress. This is useful for adding global rules for constructing views.
@NotNull public @NotNull AssetTreeStats usageStats()
usageStats
in interface AssetTree
@NotNull public @NotNull VanillaAssetTree forTesting()
@NotNull public @NotNull VanillaAssetTree forTesting(boolean daemon)
@NotNull public @NotNull VanillaAssetTree forServer()
@NotNull public @NotNull VanillaAssetTree forServer(boolean daemon)
@NotNull public @NotNull VanillaAssetTree forRemoteAccess(String hostPortDescription, @NotNull @NotNull net.openhft.chronicle.wire.WireType wire)
@NotNull public @NotNull VanillaAssetTree forRemoteAccess(@NotNull @NotNull String[] hostPortDescription, @NotNull @NotNull net.openhft.chronicle.wire.WireType wire)
@NotNull public @NotNull VanillaAssetTree forRemoteAccess(@NotNull @NotNull String[] hostPortDescription, @NotNull @NotNull net.openhft.chronicle.wire.WireType wire, @Nullable @Nullable net.openhft.chronicle.network.connection.ClientConnectionMonitor clientConnectionMonitor, @NotNull @NotNull net.openhft.chronicle.network.ConnectionStrategy connectionStrategy)
hostPortDescription
- the primary host and other failover hostswire
- the type of wireclientConnectionMonitor
- used to monitor client failoverconnectionStrategy
- connection strategy@NotNull public @NotNull VanillaAssetTree forRemoteAccess(@NotNull @NotNull String[] hostPortDescription, @NotNull @NotNull net.openhft.chronicle.wire.WireType wire, @Nullable @Nullable net.openhft.chronicle.network.connection.ClientConnectionMonitor clientConnectionMonitor, @NotNull @NotNull net.openhft.chronicle.network.ConnectionStrategy connectionStrategy, @NotNull @NotNull net.openhft.chronicle.network.api.session.SessionDetails sessionDetails, @Nullable @Nullable Supplier<net.openhft.chronicle.threads.Pauser> pauserSupplier)
hostPortDescription
- the primary host and other fail-over hostswire
- the type of wireclientConnectionMonitor
- used to monitor client fail-overconnectionStrategy
- connection strategysessionDetails
- session detailspauserSupplier
- that determines the paused being used for message handling@NotNull public @NotNull VanillaAssetTree forRemoteAccess(String hostPortDescription)
protected void performClose()
performClose
in class net.openhft.chronicle.core.io.AbstractCloseable
@NotNull @Deprecated public @NotNull AssetTree withConfig(String etcDir, String baseDir)
@NotNull public @NotNull String toString()
toString
in class net.openhft.chronicle.core.io.AbstractCloseable
@NotNull public @NotNull VanillaAssetTree forRemoteAccess(String serverAddress, @NotNull @NotNull net.openhft.chronicle.wire.WireType wireType, Consumer<Throwable> t)
public VanillaAssetTree region(String region)
public String region()
public String clusterName()
public void clusterName(String clusterName)
Copyright © 2021. All rights reserved.