|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.connector.federation.FederatedRepositoryConfig
@Immutable public class FederatedRepositoryConfig
The configuration of a federated repository. The configuration defines, among other things, the set of
source projections
in the federated repository that each specify how and where content from a
source
is federated into the unified repository.
Constructor Summary | |
---|---|
FederatedRepositoryConfig(String repositoryName,
Projection cacheProjection,
Iterable<Projection> sourceProjections,
CachePolicy defaultCachePolicy)
Create a federated repository instance. |
Method Summary | |
---|---|
int |
compareTo(FederatedRepositoryConfig that)
|
boolean |
equals(Object obj)
|
Projection |
getCacheProjection()
Get the projection that defines the cache for this repository. |
CachePolicy |
getDefaultCachePolicy()
Get the default cache policy for the repository with the supplied name |
String |
getName()
Get the name of this repository |
Problems |
getProblems()
Return the problem associated with this configuration. |
List<Projection> |
getSourceProjections()
Return the unmodifiable list of source projections. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FederatedRepositoryConfig(String repositoryName, Projection cacheProjection, Iterable<Projection> sourceProjections, CachePolicy defaultCachePolicy)
repositoryName
- the name of the repositorycacheProjection
- the projection used for the cache; may not be nullsourceProjections
- the source projections; may not be nulldefaultCachePolicy
- the default cache policy for this repository; may be null
IllegalArgumentException
- if the name is null or is blankMethod Detail |
---|
public String getName()
public Problems getProblems()
Problems
object is thread-safe.
public Projection getCacheProjection()
list of source projections
.
public List<Projection> getSourceProjections()
public CachePolicy getDefaultCachePolicy()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int compareTo(FederatedRepositoryConfig that)
compareTo
in interface Comparable<FederatedRepositoryConfig>
Comparable.compareTo(java.lang.Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |