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.Lifecycle
start
in class org.neo4j.kernel.lifecycle.LifecycleAdapter
public void stop()
stop
in interface org.neo4j.kernel.lifecycle.Lifecycle
stop
in class org.neo4j.kernel.lifecycle.LifecycleAdapter
public org.jboss.netty.channel.ChannelPipeline getPipeline() throws Exception
getPipeline
in interface org.jboss.netty.channel.ChannelPipelineFactory
Exception
public void setComExceptionHandler(ComExceptionHandler handler)
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.