public class RedisComponent extends DefaultComponent implements RedisAdmin
| Constructor and Description |
|---|
RedisComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
applicationStarted(ComponentContext context)
Notify the component that Nuxeo Framework finished starting all Nuxeo
bundles.
|
Long |
clear(String pattern)
Clear keys in redis
|
<T> T |
getAdapter(Class<T> adapter)
Returns an object which is an instance of the given class
associated with this object.
|
void |
handleNewExecutor(RedisExecutor executor) |
String |
load(String bundleName,
String scriptName)
Load script in redis
|
String |
namespace(String... names) |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, deactivate, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterContribution, unregisterExtensionpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution in class DefaultComponentExceptionpublic void applicationStarted(ComponentContext context) throws Exception
ComponentapplicationStarted in interface ComponentapplicationStarted in class DefaultComponentExceptionpublic void handleNewExecutor(RedisExecutor executor)
public Long clear(String pattern) throws IOException
RedisAdminclear in interface RedisAdminIOExceptionpublic String load(String bundleName, String scriptName) throws IOException
RedisAdminload in interface RedisAdminIOExceptionpublic <T> T getAdapter(Class<T> adapter)
Adaptablenull if
no such object can be found.getAdapter in interface AdaptablegetAdapter in class DefaultComponentadapter - the adapter class to look upnull if this object does not
have an adapter for the given classpublic String namespace(String... names)
namespace in interface RedisAdminCopyright © 2014 Nuxeo SA. All rights reserved.