public class InformationMediator extends ServiceMediator
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<java.lang.String> |
sourceData
Retrieved data from each source
|
protected java.util.ArrayList<java.lang.String> |
sourceURLs
The source info urls
|
serverIP, serverUri, serviceSpec, syncOncanAccessMeta, canAccessNested, dm, finalised, isRemoteCall, messageStore, serviceAdmin, serviceGrade, serviceInitialise, serviceLinks, serviceState, sm, toLoadScriptshutDownpasswordHandler, service, serviceTypejarFile, uuid| Constructor and Description |
|---|
InformationMediator(PasswordHandler thePasswordHandler)
Create a new instance of InformationMediator.
|
InformationMediator(java.lang.String thisPassword,
java.lang.String thisAdminKey,
PasswordHandler thePasswordHandler)
Creates a new instance of InformationMediator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createServices(java.lang.String serviceType)
Create an information service for each of the listed sources and initiate each
one with the source information.
|
boolean |
initialiseServerInfo(ServiceSpec theServiceSpec)
Initialise the information mediator with the server details.
|
void |
initialiseServices(java.lang.String serviceType)
Initialise the services, primarily adding and initialising linking
structures if they are included.
|
protected java.util.HashMap[] |
sortGroupsForEach(QueryUpdate queryUpdate)
Re-sort the service list for using to update links or other based on the
specification of the update model.
|
void |
updateQueryInfo(QueryUpdate queryUpdate)
Apply a set of query update options to the list of services returned
by the query result.
|
createAssociationLinks, createPermanentLinks, dynamicLinksToXml, getLinkedServiceUuids, initialiseInfo, startServices, updateDynamicLinksaddCommunicationID, addDefaultService, addDefaultService, addDefaultService, addDefaultService, addLinkFromService, addLinkToService, addMessageMetrics, addService, addService, addService, addService, addServiceAssociation, addServicePassword, addTempPassword, allowAddService, canAccess, canAccess, canAccess, canAccess, canAccessMeta, canAccessNested, canAccessTemp, canRun, classNameOK, clearServiceLinks, clearServices, clearServices, close, createMetaForRepos, createMetaFull, createPermanentLinkTo, createServiceWrapper, defaultAdminToRemove, dynamicLinkQuery, dynamicLinksToPermanent, dynamicLinksToXml, execute, finaliseInitialisation, finaliseInitialisation, finaliseModule, finaliseThisConfig, GET, getAllLinkToService, getAllowAddService, getAutonomicManagerConfig, getCommunicationClientURI, getData, getData, getDescription, getFullPath, getInstanceValue, getIsRemoteCall, getLinkFromService, getLinkToService, getLocalRemoteID, getParent, getParent, getPassword, getPassword, getPassword, getPasswordHandler, getPrivateMethods, getPublicMethods, getPublicServiceClassname, getServerPassword, getService, getService, getServiceAdmin, getServiceClasses, getServiceGrade, getServiceLinks, getServiceNames, getServiceNames, getServiceNames, getServiceNumber, getServiceOrWrapper, getServiceState, getServiceType, getServiceTypes, handshake, hasCommunicationID, hasLinkTo, hasServerPassword, hasService, hasServiceType, interrupt, isCorrectPassword, isPrivateMethod, isPublicMethod, isStarted, linksToXml, passwordsStateToXml, permanentLinksToXml, reflectionMethods, reflectionObject, removeAllLinksTo, removeAllServices, removeAllServices, removeCommunicationID, removeLinkFromService, removeLinkToService, removePermanentLinkTo, removeServiceAssociation, removeServiceID, removeServicePath, removeServicePath, removeTempPassword, serviceNegotiate, serviceToXml, serviceToXml, setAdminInfo, setCanAccessMeta, setCanAccessNested, setData, setDataModule, setDataModule, setDescription, setInstanceValues, setIsRemoteCall, setOtherMeta, setParent, setParent, setSerializeValues, setServerPassword, setServiceGrade, setServiceModule, setServiceState, startAllThreads, startThread, stopAllThreads, syncToAsync, syncToAsyncReply, syncToAsyncTransit, xmlToDynamicLinks, xmlToServicegetShutDown, setShutDown, setShutDowncanAccess, getPasswordHandler, getServicePassword, getServiceType, isAdminKey, setServiceDetails, setServiceTypegetJarFile, getUUID, loadObject, setJarFile, setUUID, threadAliveStateactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetUUID, setJarFile, setUUIDprotected java.util.ArrayList<java.lang.String> sourceURLs
protected java.util.ArrayList<java.lang.String> sourceData
public InformationMediator(PasswordHandler thePasswordHandler) throws java.lang.Exception
thePasswordHandler - the password handler.java.lang.Exception - any error.public InformationMediator(java.lang.String thisPassword,
java.lang.String thisAdminKey,
PasswordHandler thePasswordHandler)
throws java.lang.Exception
thisPassword - the component password.thisAdminKey - the unique service key.thePasswordHandler - the password handler.java.lang.Exception - any error.public boolean initialiseServerInfo(ServiceSpec theServiceSpec) throws java.lang.Exception
initialiseServerInfo in class ServiceMediatortheServiceSpec - the service spec or test script, with all of the config details.java.lang.Exception - any error.public void initialiseServices(java.lang.String serviceType)
throws java.lang.Exception
initialiseServices in class ServiceMediatorserviceType - the type of service to initialise.java.lang.Exception - any error.public void createServices(java.lang.String serviceType)
throws java.lang.Exception
createServices in class ServiceMediatorserviceType - the type to assign to each main or base service.java.lang.Exception - any error.public void updateQueryInfo(QueryUpdate queryUpdate) throws java.lang.Exception
queryUpdate - a description of the update process and links.java.lang.Exception - any error.protected java.util.HashMap[] sortGroupsForEach(QueryUpdate queryUpdate)
queryUpdate - an update spec with separate local or remote update
possibilities.