
org.jppf.server.node.remote.RemoteNodeConnectionChecker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jppf-server Show documentation
Show all versions of jppf-server Show documentation
JPPF, the open source grid computing solution
/*
* JPPF.
* Copyright (C) 2005-2015 JPPF Team.
* http://www.jppf.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jppf.server.node.remote;
import java.net.SocketTimeoutException;
import java.util.concurrent.atomic.AtomicBoolean;
import org.jppf.comm.socket.SocketWrapper;
import org.jppf.server.node.AbstractNodeConnectionChecker;
import org.jppf.utils.*;
import org.slf4j.*;
/**
* Connection checker implementation for a remote node.
* @author Laurent Cohen
* @exclude
*/
public class RemoteNodeConnectionChecker extends AbstractNodeConnectionChecker
{
/**
* Logger for this class.
*/
private static final Logger log = LoggerFactory.getLogger(RemoteNodeConnectionChecker.class);
/**
* Determines whether the debug level is enabled in the logging configuration, without the cost of a method call.
*/
private static boolean debugEnabled = LoggingUtils.isDebugEnabled(log);
/**
* The node for which to check the connection.
*/
private AbstractRemoteNode node = null;
/**
* The socket connection.
*/
private SocketWrapper socketWrapper = null;
/**
* The thread which performs the checks.
*/
private CheckerThread checkerThread = null;
/**
*
*/
private Object suspendedLock = new Object();
/**
* Initialize this checker
© 2015 - 2025 Weber Informatics LLC | Privacy Policy