public abstract class MetadataServiceAppImpl extends ServiceAppImpl implements MetadataServiceApp
This abstract class supplies a minimal implementation for the metadata service application interface. It also supplies help methods (protected) to its subclasses.
SERVICE_APP_PROPERTIES| Constructor and Description |
|---|
MetadataServiceAppImpl() |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getEntityName()
Gets the entity name.
|
Metadata |
getMetadata()
Gets the metadata.
|
MetadataService |
getService()
Gets the service holding this application.
|
protected boolean |
loadMetadata(MetadataFilter metadataFilter)
Loads the metadata as specified in a filter.
|
boolean |
onNewMetadata(Metadata metadata)
Called on new metadata.
|
boolean |
setUp(MetadataService service)
Sets up the application.
|
boolean |
setUp(Service service)
Deprecated.
To generate a compile time warning.
|
createStats, fail, getConfig, getConfigProperties, getDataDir, getJoinTimeout, getProperties, getSourceUUID, getThisLogger, getTimer, onAlert, onEvent, onServiceNotAvailableException, onServicesNotReady, onServicesReady, onSignal, start, stop, tearDownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateStats, onAlert, onEvent, onServicesNotReady, onServicesReady, onSignal, start, stop, tearDownpublic Optional<String> getEntityName()
getEntityName in interface MetadataServiceApp@Nonnull @CheckReturnValue public Metadata getMetadata()
Called as needed.
public MetadataService getService()
getService in class ServiceAppImplpublic boolean onNewMetadata(Metadata metadata)
Overidden as needed.
Called by the framework and by overriding classes at the end of the override.
onNewMetadata in interface MetadataServiceAppmetadata - The new metadata.public boolean setUp(MetadataService service)
Overidden as needed.
Called by the framework and by overriding classes at the beginning of the override.
setUp in interface MetadataServiceAppservice - The service holding this application.@Deprecated public boolean setUp(Service service)
Overidden as needed.
Called by the framework and by overriding classes at the beginning of the override.
Overriden to prevent call by subclasses:
setUp(MetadataService) should be called instead.
setUp in interface ServiceAppsetUp in class ServiceAppImplservice - The service holding this application.@CheckReturnValue
protected boolean loadMetadata(@Nonnull
MetadataFilter metadataFilter)
metadataFilter - The metadata filter.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.