简体   繁体   English

带REST服务器的Infinispan

[英]Infinispan with REST server

Hi I am using Infinispan REST server and executing actions such a PUT/GET via client. 嗨,我正在使用Infinispan REST服务器,并通过客户端执行诸如PUT / GET的操作。 Infinispan server war file contails cache configuration file as infini-config.xml having cache name as: Infinispan服务器war文件将缓存配置文件包含为infini-config.xml,缓存名称为:

I am successfully able to perform action on the cache defined in Server . 我可以成功地对Server中定义的缓存执行操作。 But Is there any way by which we can create cache via client itself and connect to it? 但是,是否可以通过客户端本身创建缓存并连接到缓存呢?

Thanks a lot in advance... 在此先感谢...

Unfortunately, Infinispan REST server API does not provide functionality for creating new caches. 不幸的是,Infinispan REST服务器API不提供用于创建新缓存的功能。

See the respective section in documentation: 请参阅文档中的相应部分:

http://infinispan.org/docs/6.0.x/user_guide/user_guide.html#_infinispan_rest_server http://infinispan.org/docs/6.0.x/user_guide/user_guide.html#_infinispan_rest_server

Please note that the REST server only allows interaction with either the default cache (named ___defaultcache) or one of the named caches in the configuration file. 请注意,REST服务器仅允许与默认缓存(名为___defaultcache)或配置文件中的命名缓存之一进行交互。 This is because the REST server starts the default and pre-defined caches on startup in order to provide consistent behavior. 这是因为REST服务器在启动时会启动默认和预定义的缓存,以提供一致的行为。

Creation of new named caches on the fly is not supported. 不支持动态创建新的命名高速缓存。

As a result, if you don't use a custom configuration file, you'll only be able to interact with the default cache. 因此,如果您不使用自定义配置文件,则只能与默认缓存进行交互。 To interact with more caches, use a configuration file with the desired named caches. 要与更多缓存进行交互,请使用具有所需命名缓存的配置文件。

That is something which we will try to address and solve in future version of Infinispan OData server. 这是我们将在Infinispan OData服务器的未来版本中尝试解决的问题。 The idea is to provide management operations for Infinispan via OData service operations interface. 这个想法是通过OData服务操作界面为Infinispan提供管理操作。

http://tsykora-tech.blogspot.cz/2014/02/introducing-infinispan-odata-server.html http://tsykora-tech.blogspot.cz/2014/02/introducing-infinispan-odata-server.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM