public abstract class Cluster<E extends HostDetails,C extends ClusterContext> extends Object implements net.openhft.chronicle.wire.Marshallable, net.openhft.chronicle.core.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
C |
clusterContext() |
String |
clusterName() |
ConnectionChangedNotifier |
findClusterNotifier(int remoteIdentifier) |
ConnectionManager |
findConnectionManager(int remoteIdentifier) |
<H extends HostDetails,C extends ClusterContext> |
findConnectionStrategy(int remoteIdentifier) |
HostDetails |
findHostDetails(int id) |
TerminationEventHandler |
findTerminationEventHandler(int remoteIdentifier) |
Collection<E> |
hostDetails() |
void |
install() |
protected abstract E |
newHostDetails() |
void |
readMarshallable(net.openhft.chronicle.wire.WireIn wire) |
void |
writeMarshallable(net.openhft.chronicle.wire.WireOut wire) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic Cluster(String clusterName)
public String clusterName()
@Nullable public C clusterContext()
public void readMarshallable(@NotNull
net.openhft.chronicle.wire.WireIn wire)
throws IllegalStateException
readMarshallable in interface net.openhft.chronicle.wire.MarshallablereadMarshallable in interface net.openhft.chronicle.wire.ReadMarshallableIllegalStateException@Nullable @Nullable public HostDetails findHostDetails(int id)
@Nullable public <H extends HostDetails,C extends ClusterContext> ConnectionStrategy findConnectionStrategy(int remoteIdentifier)
@Nullable public ConnectionManager findConnectionManager(int remoteIdentifier)
@Nullable public TerminationEventHandler findTerminationEventHandler(int remoteIdentifier)
@Nullable public ConnectionChangedNotifier findClusterNotifier(int remoteIdentifier)
@NotNull protected abstract E newHostDetails()
public void writeMarshallable(@NotNull
net.openhft.chronicle.wire.WireOut wire)
writeMarshallable in interface net.openhft.chronicle.wire.MarshallablewriteMarshallable in interface net.openhft.chronicle.wire.WriteMarshallable@NotNull public Collection<E> hostDetails()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void install()
Copyright © 2017. All rights reserved.