|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis2.clustering.context.DefaultContextManager
public class DefaultContextManager
| Constructor Summary | |
|---|---|
DefaultContextManager()
|
|
| Method Summary | |
|---|---|
void |
addParameter(Parameter param)
Method addParameter. |
void |
deserializeParameters(org.apache.axiom.om.OMElement parameterElement)
|
Parameter |
getParameter(java.lang.String name)
Method getParameter. |
java.util.ArrayList |
getParameters()
Gets all the parameters in a given description. |
java.util.Map |
getReplicationExcludePatterns()
Get all the excluded context property name patterns |
boolean |
isContextClusterable(AbstractContext context)
|
boolean |
isParameterLocked(java.lang.String parameterName)
Checks whether the parameter is locked at any level. |
void |
removeContext(AbstractContext context)
This method is called when AbstractContext is removed from the system |
void |
removeParameter(Parameter param)
|
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 |
setSender(ChannelSender sender)
|
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 AbstractContexts are updated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultContextManager()
| Method Detail |
|---|
public void setSender(ChannelSender sender)
public void updateContext(AbstractContext context)
throws ClusteringFault
ContextManagerAbstractContext are updated.
This could be addition of new properties, modifications of existing properties or
removal of properties.
updateContext in interface ContextManagercontext - The context to be replicated
ClusteringFault - If replication fails
public void updateContext(AbstractContext context,
java.lang.String[] propertyNames)
throws ClusteringFault
ContextManagercontext
updateContext in interface ContextManagercontext - The AbstractContext containing the properties to be replicatedpropertyNames - The names of the specific properties that should be replicated
ClusteringFault - If replication fails
public void updateContexts(AbstractContext[] contexts)
throws ClusteringFault
ContextManagerAbstractContexts are updated.
This could be addition of new properties, modifications of existing properties or
removal of properties.
updateContexts in interface ContextManagercontexts - The AbstractContexts containing the properties to be replicated
ClusteringFault - If replication fails
public void removeContext(AbstractContext context)
throws ClusteringFault
ContextManagerAbstractContext is removed from the system
removeContext in interface ContextManagercontext - The AbstractContext to be removed
ClusteringFault - If context removal failspublic boolean isContextClusterable(AbstractContext context)
isContextClusterable in interface ContextManagercontext - AbstractContext
AbstractContext is clusterablepublic void setContextManagerListener(ContextManagerListener listener)
setContextManagerListener in interface ContextManagerlistener - ContextManagerListenerpublic void setConfigurationContext(ConfigurationContext configurationContext)
setConfigurationContext in interface ContextManagerconfigurationContext - ConfigurationContext
public void setReplicationExcludePatterns(java.lang.String contextType,
java.util.List patterns)
ContextManagercontextType 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.
setReplicationExcludePatterns in interface ContextManagercontextType - 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 patternspublic java.util.Map getReplicationExcludePatterns()
ContextManager
getReplicationExcludePatterns in interface ContextManagercontextType. See ContextManager.setReplicationExcludePatterns(String,List).
The values are of type List of String Objects,
which are a collection of patterns to be excluded.
public void addParameter(Parameter param)
throws AxisFault
ParameterInclude
addParameter in interface ParameterIncludeAxisFault
public void removeParameter(Parameter param)
throws AxisFault
removeParameter in interface ParameterIncludeAxisFaultpublic Parameter getParameter(java.lang.String name)
ParameterInclude
getParameter in interface ParameterIncludepublic java.util.ArrayList getParameters()
ParameterInclude
getParameters in interface ParameterIncludepublic boolean isParameterLocked(java.lang.String parameterName)
ParameterInclude
isParameterLocked in interface ParameterInclude
public void deserializeParameters(org.apache.axiom.om.OMElement parameterElement)
throws AxisFault
deserializeParameters in interface ParameterIncludeAxisFault
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||