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 | Field and Description |
|---|---|
Map<String,E> |
hostDetails |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
C |
clusterContext() |
void |
clusterContext(C clusterContext) |
String |
clusterName() |
ConnectionChangedNotifier |
findClusterNotifier(int remoteIdentifier) |
ConnectionManager |
findConnectionManager(int remoteIdentifier) |
ConnectionStrategy |
findConnectionStrategy(int remoteIdentifier) |
E |
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, wait$equals, $fieldInfos, $hashCode, $toString, copyFrom, copyTo, deepCopy, fromFile, fromFile, fromFileAsMap, fromFileAsMap, fromHexString, fromString, fromString, getClassName, getField, mergeToMap, reset, setField, streamFromFile, streamFromFile@NotNull public final Map<String,E extends HostDetails> hostDetails
public Cluster(String clusterName)
public String clusterName()
@Nullable public C clusterContext()
public void clusterContext(@NotNull
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 public E findHostDetails(int id)
@Nullable public 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 © 2018. All rights reserved.