Package org.infinispan.server.hotrod
Class HotRodServer
java.lang.Object
org.infinispan.server.core.AbstractProtocolServer<HotRodServerConfiguration>
org.infinispan.server.hotrod.HotRodServer
- All Implemented Interfaces:
org.infinispan.server.core.ProtocolServer<HotRodServerConfiguration>
public class HotRodServer
extends org.infinispan.server.core.AbstractProtocolServer<HotRodServerConfiguration>
Hot Rod server, in charge of defining its encoder/decoder and, if clustered, update the topology information on
startup and shutdown.
- Since:
- 4.1
- Author:
- Galder ZamarreƱo
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class org.infinispan.server.core.AbstractProtocolServer
adminEndpoint, cacheManager, configuration, server, transport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCacheEventConverterFactory(String name, org.infinispan.notifications.cachelistener.filter.CacheEventConverterFactory factory) voidaddCacheEventFilterConverterFactory(String name, org.infinispan.notifications.cachelistener.filter.CacheEventFilterConverterFactory factory) voidaddCacheEventFilterFactory(String name, org.infinispan.notifications.cachelistener.filter.CacheEventFilterFactory factory) voidaddKeyValueFilterConverterFactory(String name, org.infinispan.filter.KeyValueFilterConverterFactory factory) org.infinispan.metadata.Metadata.BuilderbuildMetadata(long lifespan, TimeUnitValue lifespanUnit, long maxIdle, TimeUnitValue maxIdleUnit) org.infinispan.metadata.Metadata.BuilderbuildMetadata2x(long lifespan, TimeUnitValue lifespanUnit, long maxIdle, TimeUnitValue maxIdleUnit) org.infinispan.AdvancedCache<byte[],byte[]> cache(HotRodServer.ExtendedCacheInfo cacheInfo, HotRodHeader header, Subject subject) protected org.infinispan.configuration.cache.ConfigurationBuildercreateTopologyCacheConfig(long distSyncTimeout) org.infinispan.Cache<org.infinispan.remoting.transport.Address,ServerAddress> getCacheInfo(String cacheName, byte hotRodVersion, long messageId, boolean checkIgnored) getCacheInfo(HotRodHeader header) io.netty.channel.group.ChannelMatcherorg.infinispan.server.hotrod.ClientListenerRegistryio.netty.channel.ChannelOutboundHandlerio.netty.channel.ChannelInitializer<io.netty.channel.Channel>org.infinispan.commons.marshall.Marshallerorg.infinispan.commons.time.TimeServicebooleanorg.infinispan.multimap.impl.EmbeddedMultimapCache<byte[],byte[]> multimap(HotRodHeader header, Subject subject, boolean supportsDuplicates) voidvoidvoidvoidvoidsetMarshaller(org.infinispan.commons.marshall.Marshaller marshaller) protected voidprotected voidprotected voidvoidstop()toString()voidMethods inherited from class org.infinispan.server.core.AbstractProtocolServer
defaultCacheName, getBlockingManager, getCacheManager, getConfiguration, getEnclosingProtocolServer, getExecutor, getHost, getName, getPort, getQualifiedName, getServerStateManager, getTransport, isCacheIgnored, isTransportEnabled, registerMetrics, registerServerMBeans, setEnclosingProtocolServer, setServerManagement, start, unregisterMetrics, unregisterServerMBeans
-
Field Details
-
DEFAULT_HOTROD_PORT
public static final int DEFAULT_HOTROD_PORT- See Also:
-
LISTENERS_CHECK_INTERVAL
public static final int LISTENERS_CHECK_INTERVAL- See Also:
-
-
Constructor Details
-
HotRodServer
public HotRodServer()
-
-
Method Details
-
hasDefaultCache
public boolean hasDefaultCache() -
getAddress
-
getMarshaller
public org.infinispan.commons.marshall.Marshaller getMarshaller() -
getTimeService
public org.infinispan.commons.time.TimeService getTimeService() -
getClientListenerRegistry
public org.infinispan.server.hotrod.ClientListenerRegistry getClientListenerRegistry() -
getClientCounterNotificationManager
-
getEncoder
public io.netty.channel.ChannelOutboundHandler getEncoder() -
getDecoder
-
getChannelMatcher
public io.netty.channel.group.ChannelMatcher getChannelMatcher() -
startInternal
protected void startInternal()- Overrides:
startInternalin classorg.infinispan.server.core.AbstractProtocolServer<HotRodServerConfiguration>
-
getInitializer
public io.netty.channel.ChannelInitializer<io.netty.channel.Channel> getInitializer() -
startTransport
protected void startTransport()- Overrides:
startTransportin classorg.infinispan.server.core.AbstractProtocolServer<HotRodServerConfiguration>
-
startCaches
protected void startCaches()- Overrides:
startCachesin classorg.infinispan.server.core.AbstractProtocolServer<HotRodServerConfiguration>
-
createTopologyCacheConfig
protected org.infinispan.configuration.cache.ConfigurationBuilder createTopologyCacheConfig(long distSyncTimeout) -
cache
public org.infinispan.AdvancedCache<byte[],byte[]> cache(HotRodServer.ExtendedCacheInfo cacheInfo, HotRodHeader header, Subject subject) -
multimap
public org.infinispan.multimap.impl.EmbeddedMultimapCache<byte[],byte[]> multimap(HotRodHeader header, Subject subject, boolean supportsDuplicates) -
getCacheInfo
-
getCacheInfo
public HotRodServer.ExtendedCacheInfo getCacheInfo(String cacheName, byte hotRodVersion, long messageId, boolean checkIgnored) -
updateCacheInfo
-
getAddressCache
public org.infinispan.Cache<org.infinispan.remoting.transport.Address,ServerAddress> getAddressCache() -
addCacheEventFilterFactory
public void addCacheEventFilterFactory(String name, org.infinispan.notifications.cachelistener.filter.CacheEventFilterFactory factory) -
removeCacheEventFilterFactory
-
addCacheEventConverterFactory
public void addCacheEventConverterFactory(String name, org.infinispan.notifications.cachelistener.filter.CacheEventConverterFactory factory) -
removeCacheEventConverterFactory
-
addCacheEventFilterConverterFactory
public void addCacheEventFilterConverterFactory(String name, org.infinispan.notifications.cachelistener.filter.CacheEventFilterConverterFactory factory) -
removeCacheEventFilterConverterFactory
-
setMarshaller
public void setMarshaller(org.infinispan.commons.marshall.Marshaller marshaller) -
addKeyValueFilterConverterFactory
public void addKeyValueFilterConverterFactory(String name, org.infinispan.filter.KeyValueFilterConverterFactory factory) -
removeKeyValueFilterConverterFactory
-
getIterationManager
-
stop
public void stop()- Specified by:
stopin interfaceorg.infinispan.server.core.ProtocolServer<HotRodServerConfiguration>- Overrides:
stopin classorg.infinispan.server.core.AbstractProtocolServer<HotRodServerConfiguration>
-
accessLogging
-
buildMetadata2x
public org.infinispan.metadata.Metadata.Builder buildMetadata2x(long lifespan, TimeUnitValue lifespanUnit, long maxIdle, TimeUnitValue maxIdleUnit) -
buildMetadata
public org.infinispan.metadata.Metadata.Builder buildMetadata(long lifespan, TimeUnitValue lifespanUnit, long maxIdle, TimeUnitValue maxIdleUnit) -
toString
-