Examples of KernelRunnable


Examples of com.sun.sgs.kernel.KernelRunnable

        nodeMappingService.addNodeMappingListener(this);

        /*
         * Check service version.
         */
        transactionScheduler.runTask(new KernelRunnable() {
            public String getBaseTaskType() {
                return NAME + ".VersionCheckRunner";
            }
            public void run() {
                checkServiceVersion(
View Full Code Here

Examples of com.sun.sgs.kernel.KernelRunnable

        // bind the node-local hand-off set, noting that there's a (very
        // small) chance that another node may have already tried to hand-off
        // to us, in which case the set will already exist
        try {
            transactionScheduler.runTask(new KernelRunnable() {
                    public String getBaseTaskType() {
                        return NAME + ".HandoffBindingRunner";
                    }
                    public void run() throws Exception {
                        try {
View Full Code Here

Examples of com.sun.sgs.kernel.KernelRunnable

        final long failedNodeId =  node.getId();
        final String handoffSpace = DS_HANDOFF_SPACE + failedNodeId;

        // remove the handoff set and binding for the failed node
        try {
            transactionScheduler.runTask(new KernelRunnable() {
                    public String getBaseTaskType() {
                        return NAME + ".HandoffCleanupRunner";
                    }
                    public void run() throws Exception {
                        StringHashSet set = null;
View Full Code Here

Examples of com.sun.sgs.kernel.KernelRunnable

        availablePendingMap.putIfAbsent(id, new HashSet<BigInteger>());

        // start-up the pending tasks for this identity
        final String identityName = id.getName();
        try {
            transactionScheduler.runTask(new KernelRunnable() {
                    public String getBaseTaskType() {
                        return NAME + ".TaskRestartRunner";
                    }
                    public void run() throws Exception {
                        restartTasks(identityName);
View Full Code Here

Examples of com.sun.sgs.kernel.KernelRunnable

        // remove the local cache of available pending tasks, and remove
        // the entries in the data store if the identity has been removed
        availablePendingMap.remove(id);
        if (newNode == null) {
            try {
                transactionScheduler.runTask(new KernelRunnable() {
                        public String getBaseTaskType() {
                            return NAME + ".PendingTaskCleanupRunner";
                        }
                        public void run() throws Exception {
                            String prefix =
View Full Code Here

Examples of com.sun.sgs.kernel.KernelRunnable

        nodeMappingService.addNodeMappingListener(this);

        /*
         * Check service version.
         */
        transactionScheduler.runTask(new KernelRunnable() {
            public String getBaseTaskType() {
                return NAME + ".VersionCheckRunner";
            }
            public void run() {
                checkServiceVersion(
View Full Code Here

Examples of com.sun.sgs.kernel.KernelRunnable

        // bind the node-local hand-off set, noting that there's a (very
        // small) chance that another node may have already tried to hand-off
        // to us, in which case the set will already exist
        try {
            transactionScheduler.runTask(new KernelRunnable() {
                    public String getBaseTaskType() {
                        return NAME + ".HandoffBindingRunner";
                    }
                    public void run() throws Exception {
                        try {
View Full Code Here

Examples of com.sun.sgs.kernel.KernelRunnable

        final long failedNodeId =  node.getId();
        final String handoffSpace = DS_HANDOFF_SPACE + failedNodeId;

        // remove the handoff set and binding for the failed node
        try {
            transactionScheduler.runTask(new KernelRunnable() {
                    public String getBaseTaskType() {
                        return NAME + ".HandoffCleanupRunner";
                    }
                    public void run() throws Exception {
                        StringHashSet set = null;
View Full Code Here

Examples of com.sun.sgs.kernel.KernelRunnable

        availablePendingMap.putIfAbsent(id, new HashSet<BigInteger>());

        // start-up the pending tasks for this identity
        final String identityName = id.getName();
        try {
            transactionScheduler.runTask(new KernelRunnable() {
                    public String getBaseTaskType() {
                        return NAME + ".TaskRestartRunner";
                    }
                    public void run() throws Exception {
                        restartTasks(identityName);
View Full Code Here

Examples of com.sun.sgs.kernel.KernelRunnable

        // remove the local cache of available pending tasks, and remove
        // the entries in the data store if the identity has been removed
        availablePendingMap.remove(id);
        if (newNode == null) {
            try {
                transactionScheduler.runTask(new KernelRunnable() {
                        public String getBaseTaskType() {
                            return NAME + ".PendingTaskCleanupRunner";
                        }
                        public void run() throws Exception {
                            String prefix =
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.