|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContextManager
Method Summary | |
---|---|
java.util.Map |
getReplicationExcludePatterns()
Get all the excluded context property name patterns |
boolean |
isContextClusterable(AbstractContext context)
|
void |
removeContext(AbstractContext context)
This method is called when AbstractContext is removed from the system |
void |
setConfigurationContext(ConfigurationContext configurationContext)
|
void |
setContextManagerListener(ContextManagerListener listener)
|
void |
setReplicationExcludePatterns(java.lang.String contextType,
java.util.List patterns)
All properties in the context with type contextType which have
names that match the specified pattern will be excluded from replication. |
void |
updateContext(AbstractContext context)
This method is called when properties in an AbstractContext are updated. |
void |
updateContext(AbstractContext context,
java.lang.String[] propertyNames)
This method is called when one need to update/replicate only certains properties in the specified context |
void |
updateContexts(AbstractContext[] contexts)
This method is called when properties in a collection of AbstractContext s are updated. |
Methods inherited from interface org.apache.axis2.description.ParameterInclude |
---|
addParameter, deserializeParameters, getParameter, getParameters, isParameterLocked, removeParameter |
Method Detail |
---|
void updateContext(AbstractContext context) throws ClusteringFault
AbstractContext
are updated.
This could be addition of new properties, modifications of existing properties or
removal of properties.
context
- The context to be replicated
ClusteringFault
- If replication failsvoid updateContext(AbstractContext context, java.lang.String[] propertyNames) throws ClusteringFault
context
context
- The AbstractContext containing the properties to be replicatedpropertyNames
- The names of the specific properties that should be replicated
ClusteringFault
- If replication failsvoid updateContexts(AbstractContext[] contexts) throws ClusteringFault
AbstractContext
s are updated.
This could be addition of new properties, modifications of existing properties or
removal of properties.
contexts
- The AbstractContexts containing the properties to be replicated
ClusteringFault
- If replication failsvoid removeContext(AbstractContext context) throws ClusteringFault
AbstractContext
is removed from the system
context
- The AbstractContext to be removed
ClusteringFault
- If context removal failsboolean isContextClusterable(AbstractContext context)
context
- AbstractContext
AbstractContext
is clusterablevoid setContextManagerListener(ContextManagerListener listener)
listener
- ContextManagerListenervoid setConfigurationContext(ConfigurationContext configurationContext)
configurationContext
- ConfigurationContextvoid setReplicationExcludePatterns(java.lang.String contextType, java.util.List patterns)
contextType
which have
names that match the specified pattern will be excluded from replication.
Generally, we can use the context class name as the context type.
contextType
- The type of the context such as
org.apache.axis2.context.ConfigurationContext,
org.apache.axis2.context.ServiceGroupContext &
org.apache.axis2.context.ServiceContext.
Also "defaults" is a special type, which will apply to all contextspatterns
- The patternsjava.util.Map getReplicationExcludePatterns()
contextType
. See setReplicationExcludePatterns(String,List)
.
The values are of type List
of String
Objects,
which are a collection of patterns to be excluded.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |