gov.nih.nci.caarray.services
Class CaArrayServer
java.lang.Object
gov.nih.nci.caarray.services.AbstractCaArrayServer
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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 gov.nih.nci.caarray.services.search.CaArraySearchService getSearchService()
- Returns:
- the searchService
getArrayDesignDetailsService
public gov.nih.nci.caarray.services.arraydesign.ArrayDesignDetailsService getArrayDesignDetailsService()
- Returns:
- the arrayDesignDetailsService
getDataRetrievalService
public gov.nih.nci.caarray.services.data.DataRetrievalService getDataRetrievalService()
- Returns:
- the dataRetrievalService
getFileRetrievalService
public gov.nih.nci.caarray.services.file.FileRetrievalService getFileRetrievalService()
- Returns:
- the fileRetrievalService