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() |
protected C |
clusterContext() |
ConnectionChangedNotifier |
findClusterNotifier(int remoteIdentifier) |
ConnectionManager |
findConnectionManager(int remoteIdentifier) |
<H extends HostDetails,C extends ClusterContext> |
findConnectionStrategy(int remoteIdentifier) |
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)
protected 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.ReadMarshallableIllegalStateExceptionpublic <H extends HostDetails,C extends ClusterContext> ConnectionStrategy findConnectionStrategy(int remoteIdentifier)
public ConnectionManager findConnectionManager(int remoteIdentifier)
public TerminationEventHandler findTerminationEventHandler(int remoteIdentifier)
public ConnectionChangedNotifier findClusterNotifier(int remoteIdentifier)
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 © 2016. All rights reserved.