當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。