| |
|
| java.lang.Object org.griphyn.cPlanner.engine.Authenticate
Authenticate | public class Authenticate (Code) | | It takes in a authenticate request and authenticates against the resource
on the basis of the type of the resource against which authentication is
required.
author: Karan Vahi version: $Revision: 50 $ |
Inner Class :class HostPort | |
GRID_FTP_STANDARD_PORT | final public static int GRID_FTP_STANDARD_PORT(Code) | | The standard port at which Grid FTP runs.
|
TIMEOUT_VALUE | final public static int TIMEOUT_VALUE(Code) | | The timeout in seconds. All sockets opened timeout after this period.
|
authenticate | public boolean authenticate(AuthenticateRequest ar)(Code) | | Authenticates against a resource referred to in the authenticate request
object.
|
authenticateJobManager | public boolean authenticateJobManager(String contact)(Code) | | It authenticates against the jobmanager specifyied.
Parameters: contact - the jobmanager contact. |
gridFTPAlive | public boolean gridFTPAlive(String host, int port)(Code) | | It checks with a grid ftp server running at a particular host
and port, to see if it is up or not. This is done by opening a
socket to the specified host at the specified port. If the socket
timesout (which could be due to excessive load on the server or
server being hung) false is returned.
Parameters: host - the host at which the gridftp server is running . Parameters: port - the port at which server is running on the host. true the gridftp server is alive and kicking.false - the submit host is not connected to the network.- the server is not running.- we were able to connect but timeout.- version is not compatible. |
removeResource | public boolean removeResource(AuthenticateRequest ar)(Code) | | It tries to remove a resource from the soft state of the pool. This is
possible only if the underlying pool interface implementation is soft
state.
Parameters: ar - the AuthenticateRequest containing the resource info boolean true removal was successful.false unable to remove. |
setCredential | public void setCredential(GSSCredential credential)(Code) | | Sets the credential that has to be used for authentication.
Parameters: credential - the credential to be set. |
|
|
|