org.apache.axis2.clustering.configuration.commands
Class CommitCommand

java.lang.Object
  extended by org.apache.axis2.clustering.ClusteringCommand
      extended by org.apache.axis2.clustering.configuration.ConfigurationClusteringCommand
          extended by org.apache.axis2.clustering.configuration.commands.CommitCommand
All Implemented Interfaces:
java.io.Serializable

public class CommitCommand
extends ConfigurationClusteringCommand

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.axis2.clustering.configuration.ConfigurationClusteringCommand
APPLY_SERVICE_POLICY, COMMIT, EXCEPTION, LOAD_SERVICE_GROUPS, PREPARE, RELOAD_CONFIGURATION, ROLLBACK, UNLOAD_SERVICE_GROUPS
 
Constructor Summary
CommitCommand()
           
 
Method Summary
 void commit(ConfigurationContext configContext)
          Commit the new configuration.
 int getCommandType()
          Get the command type
 void prepare(ConfigurationContext configContext)
          Prepare to switch to the new configuration
 void process(ConfigurationContext configContext)
          Process the event.
 void rollback(ConfigurationContext configContext)
          Rollback any changes carried out
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommitCommand

public CommitCommand()
Method Detail

getCommandType

public int getCommandType()
Description copied from class: ConfigurationClusteringCommand
Get the command type

Specified by:
getCommandType in class ConfigurationClusteringCommand
Returns:
The command type

process

public void process(ConfigurationContext configContext)
             throws java.lang.Exception
Description copied from class: ConfigurationClusteringCommand
Process the event. The implementer of this interface will need to cache the outcome of this processing.

Specified by:
process in class ConfigurationClusteringCommand
Throws:
java.lang.Exception

prepare

public void prepare(ConfigurationContext configContext)
Description copied from class: ConfigurationClusteringCommand
Prepare to switch to the new configuration

Specified by:
prepare in class ConfigurationClusteringCommand

commit

public void commit(ConfigurationContext configContext)
            throws java.lang.Exception
Description copied from class: ConfigurationClusteringCommand
Commit the new configuration. i.e. switch the system to the new configuration

Specified by:
commit in class ConfigurationClusteringCommand
Throws:
java.lang.Exception

rollback

public void rollback(ConfigurationContext configContext)
              throws java.lang.Exception
Description copied from class: ConfigurationClusteringCommand
Rollback any changes carried out

Specified by:
rollback in class ConfigurationClusteringCommand
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007 Apache Web Services Project. All Rights Reserved.