当前位置: 首页>>代码示例>>Java>>正文


Java StateClusteringCommand类代码示例

本文整理汇总了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);
}
 
开发者ID:wso2,项目名称:carbon-business-process,代码行数:11,代码来源:BPELClusterNotifier.java

示例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);
    }
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:11,代码来源:Axis2ChannelListener.java

示例3: sendProcessDeploymentNotificationsToCluster

import org.apache.axis2.clustering.state.StateClusteringCommand; //导入依赖的package包/类
public void sendProcessDeploymentNotificationsToCluster(StateClusteringCommand command)
        throws AxisFault {
    BPELClusterNotifier.sendClusterNotification(command, this);
}
 
开发者ID:wso2,项目名称:carbon-business-process,代码行数:5,代码来源:ProcessStoreImpl.java

示例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()]);
        }
    }
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:48,代码来源:GetStateCommand.java

示例5: getCommands

import org.apache.axis2.clustering.state.StateClusteringCommand; //导入依赖的package包/类
public StateClusteringCommand[] getCommands() {
    return commands;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:4,代码来源:GetStateCommand.java

示例6: setCommands

import org.apache.axis2.clustering.state.StateClusteringCommand; //导入依赖的package包/类
public void setCommands(StateClusteringCommand[] commands) {
    this.commands = commands;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:4,代码来源:GetStateResponseCommand.java

示例7: StateClusteringCommandCollection

import org.apache.axis2.clustering.state.StateClusteringCommand; //导入依赖的package包/类
public StateClusteringCommandCollection(List<StateClusteringCommand> commands) {
    this.commands = commands;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:4,代码来源:StateClusteringCommandCollection.java

示例8: execute

import org.apache.axis2.clustering.state.StateClusteringCommand; //导入依赖的package包/类
public void execute(ConfigurationContext configContext) throws ClusteringFault {
    for (StateClusteringCommand command : commands) {
        command.execute(configContext);
    }
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:6,代码来源:StateClusteringCommandCollection.java


注:本文中的org.apache.axis2.clustering.state.StateClusteringCommand类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。