public class ProxyStoreServiceAppImpl extends StoreServiceAppImpl
Modifier and Type | Field and Description |
---|---|
static String |
ALL_PROPERTY
Asks for all 'Store' entities.
|
static String |
NAME_PROPERTY
Name of a 'Store' entity.
|
static String |
SERVER_PROPERTIES
Store server properties.
|
static String |
STORES_PROPERTIES
The enumeration of proxied stores.
|
BACK_END_LIMIT_PROPERTY, DEFAULT_NOTIFIER_CLASS, DEFAULT_POLATOR, DEFAULT_REPLICATOR, DEFAULT_RESPONSE_LIMIT, DEFAULT_SERVER_PROPERTIES, DEFAULT_STORE_DATA_DIR, DEFAULT_UPDATES_LISTENER, NOTICES_FILTERED_PROPERTY, NOTIFIER_CLASS_PROPERTY, POLATOR_CLASS_PROPERTY, PULL_DISABLED_PROPERTY, REPLICATOR_CLASS_PROPERTY, RESPONSE_LIMIT_PROPERTY, STORE_DATA_DIR_PROPERTY, STORE_NAME_PROPERTY, UPDATES_LISTENER_CLASS_PROPERTY, UPDATES_LISTENER_PROPERTIES
SERVICE_APP_PROPERTIES
Constructor and Description |
---|
ProxyStoreServiceAppImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
areNoticesFiltered()
Asks if the notices are filtered.
|
protected void |
doPendingActions()
Does pending actions.
|
protected String |
getDefaultStoreName()
Gets the default store name.
|
ProxyStoreServer |
getServer()
Gets the store server instance.
|
boolean |
onNewMetadata(Metadata metadata)
Called on new metadata.
|
protected boolean |
refreshMetadata()
Refreshes the metadata.
|
protected boolean |
setUp()
Sets up this store service.
|
protected StoreMetadataFilter |
storeMetadataFilter(String storeName,
Collection<String> partnerNames)
Returns a store metadata filter.
|
void |
tearDown()
Tears down the application.
|
addNotice, addNoticeListener, getArchiver, getBackEndLimit, getEntityName, getNoticesFilter, getPolator, getReplicator, getResponseLimit, getServerName, getServerProperties, getStoreDataDir, getStoreEntity, getStoreStats, isNullRemoves, isPullDisabled, makeNoticesFilter, onSignal, rebind, refreshNoticesFilter, registerServer, registerServer, removeNoticeListener, run, sendNotices, setUp, setUp, setUpArchiver, setUpNotifier, start, stop, unregisterServer
getMetadata, getService, loadMetadata, setUp
createStats, fail, getConfig, getConfigProperties, getDataDir, getJoinTimeout, getProperties, getSourceUUID, getThisLogger, getTimer, onAlert, onEvent, onServiceNotAvailableException, onServicesNotReady, onServicesReady
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createStats, onAlert, onEvent, onServicesNotReady, onServicesReady, setUp
public static final String ALL_PROPERTY
public static final String NAME_PROPERTY
public static final String SERVER_PROPERTIES
public static final String STORES_PROPERTIES
public boolean areNoticesFiltered()
Allows an implementation override.
areNoticesFiltered
in class StoreServiceAppImpl
public ProxyStoreServer getServer()
public boolean onNewMetadata(Metadata metadata)
Overidden as needed.
Called by the framework and by overriding classes at the end of the override.
onNewMetadata
in interface MetadataServiceApp
onNewMetadata
in class StoreServiceAppImpl
metadata
- The new metadata.public void tearDown()
Overidden as needed by the application.
Called by the framework and by overriding classes at the end of the override.
tearDown
in interface ServiceApp
tearDown
in class StoreServiceAppImpl
protected void doPendingActions() throws InterruptedException, ServiceNotAvailableException
Caution: this is called while synchronized.
doPendingActions
in class StoreServiceAppImpl
InterruptedException
- When the service is stopped.ServiceNotAvailableException
- When the service is not available.protected String getDefaultStoreName()
getDefaultStoreName
in class StoreServiceAppImpl
protected boolean refreshMetadata()
refreshMetadata
in class StoreServiceAppImpl
protected boolean setUp()
setUp
in class StoreServiceAppImpl
protected StoreMetadataFilter storeMetadataFilter(String storeName, Collection<String> partnerNames)
storeMetadataFilter
in class StoreServiceAppImpl
storeName
- The store's name.partnerNames
- The name of the store partners (optional).Copyright © 2003-2019 Serge Brisson. All Rights Reserved.