au.edu.jcu.hpc.srb.mcatext.client.ws
Class ClientImpl

java.lang.Object
  extended by au.edu.jcu.hpc.srb.mcatext.client.ws.ClientImpl
All Implemented Interfaces:
Client, au.edu.jcu.hpc.srb.mcatext.dao.AuthDao, au.edu.jcu.hpc.srb.mcatext.dao.RegisterDao, au.edu.jcu.hpc.srb.mcatext.dao.SyncDao

public class ClientImpl
extends java.lang.Object
implements Client


Constructor Summary
ClientImpl()
           
ClientImpl(Client client)
           
 
Method Summary
static boolean configValid(Client client)
           
 void deregisterDomains(java.util.List<java.lang.String> domains)
           
 void deregisterDomains(java.lang.String notifyUrl, java.util.List<java.lang.String> domains)
           
 void deregisterPaths(java.util.List<java.lang.String> paths)
           
 void deregisterPaths(java.lang.String notifyUrl, java.util.List<java.lang.String> paths)
           
 java.util.List<au.edu.jcu.hpc.srb.mcatext.auth.AuthPair> getAuthorization(java.lang.String dn, java.util.List<java.lang.String> paths)
           
 java.lang.String getKeystorePassword()
           
 java.lang.String getLocalAddress()
           
 javax.sql.DataSource getMcatDao()
           
 au.edu.jcu.hpc.srb.mcatext.notify.NotificationHandler getNotificationHandler()
           
 SRBNotifyImpl getNotifyServer()
           
 int getPollInterval()
           
 java.lang.String getRemoteAddress()
           
 java.util.List<java.lang.String> listRegisteredDomains()
           
 java.util.List<java.lang.String> listRegisteredDomains(java.lang.String notifyUrl)
           
 java.util.List<java.lang.String> listRegisteredPaths()
           
 java.util.List<java.lang.String> listRegisteredPaths(java.lang.String notifyUrl)
           
 void registerDomains(java.util.List<java.lang.String> domains, boolean dropExistingDomains)
           
 void registerDomains(java.lang.String notifyUrl, java.util.List<java.lang.String> domains, boolean dropExistingDomains)
           
 void registerPaths(java.util.List<java.lang.String> paths, boolean dropExistingPaths)
           
 void registerPaths(java.lang.String notifyUrl, java.util.List<java.lang.String> paths, boolean dropExistingPaths)
           
 void setKeystore(java.lang.String keystore)
          Pass the keystore provided for the client side of this service to all possible users.
 void setKeystorePassword(java.lang.String keystorePassword)
           
 void setLocalAddress(java.lang.String localAddress)
           
 void setMcatDao(javax.sql.DataSource mcatDao)
           
 void setNotificationHandler(au.edu.jcu.hpc.srb.mcatext.notify.NotificationHandler notificationHandler)
           
 void setNotifyServer(SRBNotifyImpl notifyServer)
           
 void setPollInterval(int pollInterval)
           
 void setRemoteAddress(java.lang.String remoteAddress)
           
 void start()
           
 void stop()
           
 java.util.List<au.edu.jcu.hpc.srb.mcatext.events.DomainList> syncDomains(java.util.List<java.lang.String> domains)
           
 java.util.List<au.edu.jcu.hpc.srb.mcatext.events.PathList> syncPaths(java.util.List<java.lang.String> paths)
           
 void triggerNotifications()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientImpl

public ClientImpl()

ClientImpl

public ClientImpl(Client client)
Method Detail

getKeystorePassword

public java.lang.String getKeystorePassword()

setKeystorePassword

public void setKeystorePassword(java.lang.String keystorePassword)

configValid

public static boolean configValid(Client client)

setLocalAddress

public void setLocalAddress(java.lang.String localAddress)
Specified by:
setLocalAddress in interface Client

getLocalAddress

public java.lang.String getLocalAddress()
Specified by:
getLocalAddress in interface Client

setRemoteAddress

public void setRemoteAddress(java.lang.String remoteAddress)
Specified by:
setRemoteAddress in interface Client

getRemoteAddress

public java.lang.String getRemoteAddress()
Specified by:
getRemoteAddress in interface Client

setMcatDao

public void setMcatDao(javax.sql.DataSource mcatDao)
Specified by:
setMcatDao in interface Client

getMcatDao

public javax.sql.DataSource getMcatDao()
Specified by:
getMcatDao in interface Client

setNotificationHandler

public void setNotificationHandler(au.edu.jcu.hpc.srb.mcatext.notify.NotificationHandler notificationHandler)
Specified by:
setNotificationHandler in interface Client

getNotificationHandler

public au.edu.jcu.hpc.srb.mcatext.notify.NotificationHandler getNotificationHandler()
Specified by:
getNotificationHandler in interface Client

setPollInterval

public void setPollInterval(int pollInterval)
Specified by:
setPollInterval in interface Client

getPollInterval

public int getPollInterval()
Specified by:
getPollInterval in interface Client

getAuthorization

public java.util.List<au.edu.jcu.hpc.srb.mcatext.auth.AuthPair> getAuthorization(java.lang.String dn,
                                                                                 java.util.List<java.lang.String> paths)
Specified by:
getAuthorization in interface au.edu.jcu.hpc.srb.mcatext.dao.AuthDao

syncPaths

public java.util.List<au.edu.jcu.hpc.srb.mcatext.events.PathList> syncPaths(java.util.List<java.lang.String> paths)
Specified by:
syncPaths in interface au.edu.jcu.hpc.srb.mcatext.dao.SyncDao

syncDomains

public java.util.List<au.edu.jcu.hpc.srb.mcatext.events.DomainList> syncDomains(java.util.List<java.lang.String> domains)
Specified by:
syncDomains in interface au.edu.jcu.hpc.srb.mcatext.dao.SyncDao

triggerNotifications

public void triggerNotifications()
Specified by:
triggerNotifications in interface au.edu.jcu.hpc.srb.mcatext.dao.RegisterDao

registerPaths

public void registerPaths(java.lang.String notifyUrl,
                          java.util.List<java.lang.String> paths,
                          boolean dropExistingPaths)
Specified by:
registerPaths in interface au.edu.jcu.hpc.srb.mcatext.dao.RegisterDao

deregisterPaths

public void deregisterPaths(java.lang.String notifyUrl,
                            java.util.List<java.lang.String> paths)
Specified by:
deregisterPaths in interface au.edu.jcu.hpc.srb.mcatext.dao.RegisterDao

listRegisteredPaths

public java.util.List<java.lang.String> listRegisteredPaths(java.lang.String notifyUrl)
Specified by:
listRegisteredPaths in interface au.edu.jcu.hpc.srb.mcatext.dao.RegisterDao

registerDomains

public void registerDomains(java.lang.String notifyUrl,
                            java.util.List<java.lang.String> domains,
                            boolean dropExistingDomains)
Specified by:
registerDomains in interface au.edu.jcu.hpc.srb.mcatext.dao.RegisterDao

deregisterDomains

public void deregisterDomains(java.lang.String notifyUrl,
                              java.util.List<java.lang.String> domains)
Specified by:
deregisterDomains in interface au.edu.jcu.hpc.srb.mcatext.dao.RegisterDao

listRegisteredDomains

public java.util.List<java.lang.String> listRegisteredDomains(java.lang.String notifyUrl)
Specified by:
listRegisteredDomains in interface au.edu.jcu.hpc.srb.mcatext.dao.RegisterDao

registerPaths

public void registerPaths(java.util.List<java.lang.String> paths,
                          boolean dropExistingPaths)
Specified by:
registerPaths in interface Client

deregisterPaths

public void deregisterPaths(java.util.List<java.lang.String> paths)
Specified by:
deregisterPaths in interface Client

listRegisteredPaths

public java.util.List<java.lang.String> listRegisteredPaths()
Specified by:
listRegisteredPaths in interface Client

registerDomains

public void registerDomains(java.util.List<java.lang.String> domains,
                            boolean dropExistingDomains)
Specified by:
registerDomains in interface Client

deregisterDomains

public void deregisterDomains(java.util.List<java.lang.String> domains)
Specified by:
deregisterDomains in interface Client

listRegisteredDomains

public java.util.List<java.lang.String> listRegisteredDomains()
Specified by:
listRegisteredDomains in interface Client

start

public void start()
Specified by:
start in interface Client

stop

public void stop()
Specified by:
stop in interface Client

getNotifyServer

public SRBNotifyImpl getNotifyServer()

setNotifyServer

public void setNotifyServer(SRBNotifyImpl notifyServer)

setKeystore

public void setKeystore(java.lang.String keystore)
                 throws java.security.KeyStoreException,
                        java.security.NoSuchAlgorithmException,
                        java.security.cert.CertificateException,
                        java.io.FileNotFoundException,
                        java.io.IOException
Pass the keystore provided for the client side of this service to all possible users.

Parameters:
keystore -
Throws:
java.security.KeyStoreException
java.io.IOException
java.io.FileNotFoundException
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException


Copyright © 2008. All Rights Reserved.