Examples of UuidProcessId


Examples of com.arjuna.ats.internal.arjuna.utils.UuidProcessId

        final CoreEnvironmentService coreEnvironmentService = new CoreEnvironmentService(nodeIdentifier);

        String socketBindingName = null;
        if (TransactionSubsystemRootResourceDefinition.PROCESS_ID_UUID.resolveModelAttribute(context, coreEnvModel).asBoolean()) {
            // Use the UUID based id
            UuidProcessId id = new UuidProcessId();
            coreEnvironmentService.setProcessImplementation(id);
        } else {
            // Use the socket process id
            coreEnvironmentService.setProcessImplementationClassName(ProcessIdType.SOCKET.getClazz());
            socketBindingName = TransactionSubsystemRootResourceDefinition.PROCESS_ID_SOCKET_BINDING.resolveModelAttribute(context, coreEnvModel).asString();
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.utils.UuidProcessId

    public void start(StartContext context) throws StartException {

        // Global configuration.
        final CoreEnvironmentBean coreEnvironmentBean = arjPropertyManager.getCoreEnvironmentBean();
        if(coreEnvironmentBean.getProcessImplementationClassName() == null) {
            UuidProcessId id = new UuidProcessId();
            coreEnvironmentBean.setProcessImplementation(id);
        }
        coreEnvironmentBean.setNodeIdentifier(nodeIdentifier);
        // Setup the socket process id if there is a binding
        SocketBinding binding = socketProcessBindingInjector.getOptionalValue();
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.utils.UuidProcessId

        final CoreEnvironmentService coreEnvironmentService = new CoreEnvironmentService(nodeIdentifier);

        String socketBindingName = null;
        if (TransactionSubsystemRootResourceDefinition.PROCESS_ID_UUID.resolveModelAttribute(context, coreEnvModel).asBoolean()) {
            // Use the UUID based id
            UuidProcessId id = new UuidProcessId();
            coreEnvironmentService.setProcessImplementation(id);
        } else {
            // Use the socket process id
            coreEnvironmentService.setProcessImplementationClassName(ProcessIdType.SOCKET.getClazz());
            socketBindingName = TransactionSubsystemRootResourceDefinition.PROCESS_ID_SOCKET_BINDING.resolveModelAttribute(context, coreEnvModel).asString();
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.utils.UuidProcessId

    public void start(StartContext context) throws StartException {

        // Global configuration.
        final CoreEnvironmentBean coreEnvironmentBean = arjPropertyManager.getCoreEnvironmentBean();
        if(coreEnvironmentBean.getProcessImplementationClassName() == null) {
            UuidProcessId id = new UuidProcessId();
            coreEnvironmentBean.setProcessImplementation(id);
        }

        try {
            coreEnvironmentBean.setNodeIdentifier(nodeIdentifier);
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.utils.UuidProcessId

        final CoreEnvironmentService coreEnvironmentService = new CoreEnvironmentService(nodeIdentifier, varDirPath, varDirPathRef);

        String socketBindingName = null;
        if (TransactionSubsystemRootResourceDefinition.PROCESS_ID_UUID.resolveModelAttribute(context, coreEnvModel).asBoolean(false)) {
            // Use the UUID based id
            UuidProcessId id = new UuidProcessId();
            coreEnvironmentService.setProcessImplementation(id);
        } else {
            // Use the socket process id
            coreEnvironmentService.setProcessImplementationClassName(ProcessIdType.SOCKET.getClazz());
            socketBindingName = TransactionSubsystemRootResourceDefinition.PROCESS_ID_SOCKET_BINDING.resolveModelAttribute(context, coreEnvModel).asString();
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.utils.UuidProcessId

                            // Configure the core configuration.
                            String socketBindingName = null;
                            final CoreEnvironmentService coreEnvironmentService = new CoreEnvironmentService(nodeIdentifier, varDirPath);
                            if (processId.hasDefined(ProcessIdType.UUID.getName())) {
                                // Use the UUID based id
                                UuidProcessId id = new UuidProcessId();
                                coreEnvironmentService.setProcessImplementation(id);
                            } else if (processId.hasDefined(ProcessIdType.SOCKET.getName())) {
                                // Use the socket process id
                                coreEnvironmentService.setProcessImplementationClassName(ProcessIdType.SOCKET.getClazz());
                                ModelNode socket = processId.get(ProcessIdType.SOCKET.getName());
                                socketBindingName = socket.require(BINDING).asString();
                                if (socket.hasDefined(SOCKET_PROCESS_ID_MAX_PORTS)) {
                                    int ports = socket.get(SOCKET_PROCESS_ID_MAX_PORTS).asInt(maxPorts);
                                    coreEnvironmentService.setSocketProcessIdMaxPorts(ports);
                                }
                            } else {
                                // Default to UUID implementation
                                UuidProcessId id = new UuidProcessId();
                                coreEnvironmentService.setProcessImplementation(id);
                            }
                            ServiceBuilder<?> coreEnvBuilder = target.addService(TxnServices.JBOSS_TXN_CORE_ENVIRONMENT, coreEnvironmentService);
                            if (socketBindingName != null) {
                                // Add a dependency on the socket id binding
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.utils.UuidProcessId

    public void start(StartContext context) throws StartException {

        // Global configuration.
        final CoreEnvironmentBean coreEnvironmentBean = arjPropertyManager.getCoreEnvironmentBean();
        if(coreEnvironmentBean.getProcessImplementationClassName() == null) {
            UuidProcessId id = new UuidProcessId();
            coreEnvironmentBean.setProcessImplementation(id);
        }
        coreEnvironmentBean.setNodeIdentifier(nodeIdentifier);
        // Setup the socket process id if there is a binding
        SocketBinding binding = socketProcessBindingInjector.getOptionalValue();
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.utils.UuidProcessId

                            // Configure the core configuration.
                            String socketBindingName = null;
                            final CoreEnvironmentService coreEnvironmentService = new CoreEnvironmentService(nodeIdentifier, varDirPath);
                            if (processId.hasDefined(ProcessIdType.UUID.getName())) {
                                // Use the UUID based id
                                UuidProcessId id = new UuidProcessId();
                                coreEnvironmentService.setProcessImplementation(id);
                            } else if (processId.hasDefined(ProcessIdType.SOCKET.getName())) {
                                // Use the socket process id
                                coreEnvironmentService.setProcessImplementationClassName(ProcessIdType.SOCKET.getClazz());
                                ModelNode socket = processId.get(ProcessIdType.SOCKET.getName());
                                socketBindingName = socket.require(BINDING).asString();
                                if (socket.hasDefined(SOCKET_PROCESS_ID_MAX_PORTS)) {
                                    int ports = socket.get(SOCKET_PROCESS_ID_MAX_PORTS).asInt(maxPorts);
                                    coreEnvironmentService.setSocketProcessIdMaxPorts(ports);
                                }
                            } else {
                                // Default to UUID implementation
                                UuidProcessId id = new UuidProcessId();
                                coreEnvironmentService.setProcessImplementation(id);
                            }
                            ServiceBuilder<?> coreEnvBuilder = target.addService(TxnServices.JBOSS_TXN_CORE_ENVIRONMENT, coreEnvironmentService);
                            if (socketBindingName != null) {
                                // Add a dependency on the socket id binding
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.utils.UuidProcessId

        final CoreEnvironmentService coreEnvironmentService = new CoreEnvironmentService(nodeIdentifier);

        String socketBindingName = null;
        if (TransactionSubsystemRootResourceDefinition.PROCESS_ID_UUID.resolveModelAttribute(context, coreEnvModel).asBoolean()) {
            // Use the UUID based id
            UuidProcessId id = new UuidProcessId();
            coreEnvironmentService.setProcessImplementation(id);
        } else {
            // Use the socket process id
            coreEnvironmentService.setProcessImplementationClassName(ProcessIdType.SOCKET.getClazz());
            socketBindingName = TransactionSubsystemRootResourceDefinition.PROCESS_ID_SOCKET_BINDING.resolveModelAttribute(context, coreEnvModel).asString();
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.utils.UuidProcessId

        final CoreEnvironmentService coreEnvironmentService = new CoreEnvironmentService(nodeIdentifier, varDirPath, varDirPathRef);

        String socketBindingName = null;
        if (TransactionSubsystemRootResourceDefinition.PROCESS_ID_UUID.resolveModelAttribute(context, coreEnvModel).asBoolean(false)) {
            // Use the UUID based id
            UuidProcessId id = new UuidProcessId();
            coreEnvironmentService.setProcessImplementation(id);
        } else {
            // Use the socket process id
            coreEnvironmentService.setProcessImplementationClassName(ProcessIdType.SOCKET.getClazz());
            socketBindingName = TransactionSubsystemRootResourceDefinition.PROCESS_ID_SOCKET_BINDING.resolveModelAttribute(context, coreEnvModel).asString();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.