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.
|
int |
getApplicationStartedOrder()
The component notification order for
Component.applicationStarted(org.nuxeo.runtime.model.ComponentContext) . |
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, getLastModified, registerExtension, setLastModified, unregisterContribution, unregisterExtension
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void applicationStarted(ComponentContext context)
Component
applicationStarted
in interface Component
applicationStarted
in class DefaultComponent
public int getApplicationStartedOrder()
Component
Component.applicationStarted(org.nuxeo.runtime.model.ComponentContext)
.
Components are notified in increasing order. Order 1000 is the default order for components that don't care. Order 100 is the repository initialization.
getApplicationStartedOrder
in interface Component
getApplicationStartedOrder
in class DefaultComponent
public void handleNewExecutor(RedisExecutor executor)
public Long clear(String pattern) throws IOException
RedisAdmin
clear
in interface RedisAdmin
IOException
public String load(String bundleName, String scriptName) throws IOException
RedisAdmin
load
in interface RedisAdmin
IOException
public <T> T getAdapter(Class<T> adapter)
Adaptable
null
if no such object can be found.getAdapter
in interface Adaptable
getAdapter
in class DefaultComponent
adapter
- 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 RedisAdmin
Copyright © 2015 Nuxeo SA. All rights reserved.