本文整理匯總了Java中org.apache.axis2.clustering.state.StateClusteringCommand類的典型用法代碼示例。如果您正苦於以下問題:Java StateClusteringCommand類的具體用法?Java StateClusteringCommand怎麽用?Java StateClusteringCommand使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
StateClusteringCommand類屬於org.apache.axis2.clustering.state包,在下文中一共展示了StateClusteringCommand類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: sendClusterNotification
import org.apache.axis2.clustering.state.StateClusteringCommand; //導入依賴的package包/類
public static void sendClusterNotification(StateClusteringCommand command, Object processStore)
throws AxisFault {
if (log.isDebugEnabled()) {
log.debug("Sending clustering command.");
}
AxisConfiguration axisConfig = BPELClusterNotifierServiceComponent.getAxisConfiguration();
axisConfig.addParameter(PARAM_PARENT_PROCESS_STORE, processStore);
Replicator.replicateState(command, axisConfig);
}
示例2: processMessage
import org.apache.axis2.clustering.state.StateClusteringCommand; //導入依賴的package包/類
private void processMessage(Serializable msg) throws ClusteringFault {
if (msg instanceof StateClusteringCommand && stateManager != null) {
StateClusteringCommand ctxCmd = (StateClusteringCommand) msg;
ctxCmd.execute(configurationContext);
} else if (msg instanceof NodeManagementCommand && nodeManager != null) {
((NodeManagementCommand) msg).execute(configurationContext);
} else if (msg instanceof GroupManagementCommand){
((GroupManagementCommand) msg).execute(configurationContext);
}
}
示例3: sendProcessDeploymentNotificationsToCluster
import org.apache.axis2.clustering.state.StateClusteringCommand; //導入依賴的package包/類
public void sendProcessDeploymentNotificationsToCluster(StateClusteringCommand command)
throws AxisFault {
BPELClusterNotifier.sendClusterNotification(command, this);
}
示例4: execute
import org.apache.axis2.clustering.state.StateClusteringCommand; //導入依賴的package包/類
public void execute(ConfigurationContext configCtx) throws ClusteringFault {
ClusteringAgent clusteringAgent = configCtx.getAxisConfiguration().getClusteringAgent();
if(clusteringAgent == null){
return;
}
StateManager stateManager = clusteringAgent.getStateManager();
if (stateManager != null) {
Map excludedPropPatterns = stateManager.getReplicationExcludePatterns();
List<StateClusteringCommand> cmdList = new ArrayList<StateClusteringCommand>();
// Add the service group contexts, service contexts & their respective properties
String[] sgCtxIDs = configCtx.getServiceGroupContextIDs();
for (String sgCtxID : sgCtxIDs) {
ServiceGroupContext sgCtx = configCtx.getServiceGroupContext(sgCtxID);
StateClusteringCommand updateServiceGroupCtxCmd =
StateClusteringCommandFactory.getUpdateCommand(sgCtx,
excludedPropPatterns,
true);
if (updateServiceGroupCtxCmd != null) {
cmdList.add(updateServiceGroupCtxCmd);
}
if (sgCtx.getServiceContexts() != null) {
for (Iterator iter2 = sgCtx.getServiceContexts(); iter2.hasNext();) {
ServiceContext serviceCtx = (ServiceContext) iter2.next();
StateClusteringCommand updateServiceCtxCmd =
StateClusteringCommandFactory.getUpdateCommand(serviceCtx,
excludedPropPatterns,
true);
if (updateServiceCtxCmd != null) {
cmdList.add(updateServiceCtxCmd);
}
}
}
}
StateClusteringCommand updateCmd =
StateClusteringCommandFactory.getUpdateCommand(configCtx,
excludedPropPatterns,
true);
if (updateCmd != null) {
cmdList.add(updateCmd);
}
if (!cmdList.isEmpty()) {
commands = cmdList.toArray(new StateClusteringCommand[cmdList.size()]);
}
}
}
示例5: getCommands
import org.apache.axis2.clustering.state.StateClusteringCommand; //導入依賴的package包/類
public StateClusteringCommand[] getCommands() {
return commands;
}
示例6: setCommands
import org.apache.axis2.clustering.state.StateClusteringCommand; //導入依賴的package包/類
public void setCommands(StateClusteringCommand[] commands) {
this.commands = commands;
}
示例7: StateClusteringCommandCollection
import org.apache.axis2.clustering.state.StateClusteringCommand; //導入依賴的package包/類
public StateClusteringCommandCollection(List<StateClusteringCommand> commands) {
this.commands = commands;
}
示例8: execute
import org.apache.axis2.clustering.state.StateClusteringCommand; //導入依賴的package包/類
public void execute(ConfigurationContext configContext) throws ClusteringFault {
for (StateClusteringCommand command : commands) {
command.execute(configContext);
}
}