public abstract class Client<T>
extends org.neo4j.kernel.lifecycle.LifecycleAdapter
implements org.jboss.netty.channel.ChannelPipelineFactory
Server. It
serializes requests and sends them to the server and waits for
a response back.Server| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_NUMBER_OF_CONCURRENT_CHANNELS_PER_CLIENT |
static int |
DEFAULT_READ_RESPONSE_TIMEOUT_SECONDS |
| Constructor and Description |
|---|
Client(String destinationHostNameOrIp,
int destinationPort,
String originHostNameOrIp,
org.neo4j.logging.LogProvider logProvider,
org.neo4j.kernel.impl.store.StoreId storeId,
int frameLength,
long readTimeout,
int maxConcurrentChannels,
int chunkSize,
ResponseUnpacker responseUnpacker,
org.neo4j.kernel.monitoring.ByteCounterMonitor byteCounterMonitor,
RequestMonitor requestMonitor,
org.neo4j.kernel.impl.transaction.log.entry.LogEntryReader<org.neo4j.kernel.impl.transaction.log.ReadableClosablePositionAwareChannel> entryReader) |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.netty.channel.ChannelPipeline |
getPipeline() |
abstract ProtocolVersion |
getProtocolVersion() |
void |
setComExceptionHandler(ComExceptionHandler handler) |
void |
start() |
void |
stop() |
String |
toString() |
public static final int DEFAULT_MAX_NUMBER_OF_CONCURRENT_CHANNELS_PER_CLIENT
public static final int DEFAULT_READ_RESPONSE_TIMEOUT_SECONDS
public Client(String destinationHostNameOrIp, int destinationPort, String originHostNameOrIp, org.neo4j.logging.LogProvider logProvider, org.neo4j.kernel.impl.store.StoreId storeId, int frameLength, long readTimeout, int maxConcurrentChannels, int chunkSize, ResponseUnpacker responseUnpacker, org.neo4j.kernel.monitoring.ByteCounterMonitor byteCounterMonitor, RequestMonitor requestMonitor, org.neo4j.kernel.impl.transaction.log.entry.LogEntryReader<org.neo4j.kernel.impl.transaction.log.ReadableClosablePositionAwareChannel> entryReader)
public abstract ProtocolVersion getProtocolVersion()
public void start()
start in interface org.neo4j.kernel.lifecycle.Lifecyclestart in class org.neo4j.kernel.lifecycle.LifecycleAdapterpublic void stop()
stop in interface org.neo4j.kernel.lifecycle.Lifecyclestop in class org.neo4j.kernel.lifecycle.LifecycleAdapterpublic org.jboss.netty.channel.ChannelPipeline getPipeline()
throws Exception
getPipeline in interface org.jboss.netty.channel.ChannelPipelineFactoryExceptionpublic void setComExceptionHandler(ComExceptionHandler handler)
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.