本文整理汇总了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);
}
}