gov.nih.nci.caarray.services
Class CaArrayServer

java.lang.Object
  extended by gov.nih.nci.caarray.services.AbstractCaArrayServer
      extended by gov.nih.nci.caarray.services.CaArrayServer

public final class CaArrayServer
extends AbstractCaArrayServer

Client-side representation of a caArray server, used to connect to and access a remote server.

Author:
tavelae

Constructor Summary
CaArrayServer(java.lang.String hostname, int jndiPort)
          Creates a new instance configured to attach to the provided hostname and port.
 
Method Summary
protected  void executeServiceForCredentialCheck()
          Execute some method in a remote EJB service that forces the authentication credentials to be checked.
 ArrayDesignDetailsService getArrayDesignDetailsService()
           
 DataRetrievalService getDataRetrievalService()
           
 FileRetrievalService getFileRetrievalService()
           
 CaArraySearchService getSearchService()
           
protected  void lookupServices(javax.naming.Context ctx)
          Method called after obtaining a JNDI context from the remote EJB server.
 
Methods inherited from class gov.nih.nci.caarray.services.AbstractCaArrayServer
connect, connect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaArrayServer

public CaArrayServer(java.lang.String hostname,
                     int jndiPort)
Creates a new instance configured to attach to the provided hostname and port.

Parameters:
hostname - hostname (or IP address) of the caArray server.
jndiPort - JNDI port of the caArray server.
Method Detail

executeServiceForCredentialCheck

protected void executeServiceForCredentialCheck()
Execute some method in a remote EJB service that forces the authentication credentials to be checked. This method must be side effect free, and should ideally be simple and fast, as the only purpose of executing it is to force the credential check. Subclasses should override this to invoke the appropriate API method.

Specified by:
executeServiceForCredentialCheck in class AbstractCaArrayServer

lookupServices

protected void lookupServices(javax.naming.Context ctx)
                       throws javax.naming.NamingException
Method called after obtaining a JNDI context from the remote EJB server. Subclasses should override this method and lookup remote EJB references in this context.

Specified by:
lookupServices in class AbstractCaArrayServer
Parameters:
ctx - the JNDI context where remote EJB service references can be looked up
Throws:
javax.naming.NamingException - if there is an error looking up a remote EJB in the context

getSearchService

public CaArraySearchService getSearchService()
Returns:
the searchService

getArrayDesignDetailsService

public ArrayDesignDetailsService getArrayDesignDetailsService()
Returns:
the arrayDesignDetailsService

getDataRetrievalService

public DataRetrievalService getDataRetrievalService()
Returns:
the dataRetrievalService

getFileRetrievalService

public FileRetrievalService getFileRetrievalService()
Returns:
the fileRetrievalService