|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openhealthexchange.openpixpdq.ihe.configuration.ConfigurationLoader
public class ConfigurationLoader
This class loads an IHE Actor configuration file and initializes all of the appropriate actors within the DocumentBroker, PatientBroker and AuditBroker.
com.misyshealthcare.connect.base.PatientBroker
,
AuditBroker
Nested Class Summary | |
---|---|
class |
ConfigurationLoader.ActorDescription
An implementation of the IheActorDescription class to be used by GUI elements and other things. |
class |
ConfigurationLoader.IheBrokerController
An implementation of a broker controller that will unregister and IHE actor. |
class |
ConfigurationLoader.PixManagerActorDescription
An implementation of the IheActorDescription class to be used by PIX Manager Actor |
Field Summary | |
---|---|
(package private) org.apache.log4j.Appender |
currentAppender
|
Constructor Summary | |
---|---|
ConfigurationLoader()
|
Method Summary | |
---|---|
java.util.Collection<IheActorDescription> |
getActorDescriptions()
Gets the actor descriptions loaded in the configuration. |
ConfigurationLoader.ActorDescription |
getDescriptionById(java.lang.String id)
Looks up an actor description given an ID. |
static ConfigurationLoader |
getInstance()
Gets the singleton instance for this class. |
boolean |
loadConfiguration(java.io.File file,
boolean autoInstallActors,
java.lang.String oidRoot,
com.misyshealthcare.connect.util.OID.OidSource oidSource,
java.lang.String styleSheetLocation,
java.util.Properties patientQueryDesignProps,
com.misyshealthcare.connect.base.codemapping.ICodeMappingManager codeMappingManager,
com.misyshealthcare.connect.util.LibraryConfig.ILogContext logContext)
Loads the supplied configuration file. |
boolean |
loadConfiguration(java.io.File file,
boolean autoInstallActors,
java.lang.String oidRoot,
com.misyshealthcare.connect.util.OID.OidSource oidSource,
java.lang.String styleSheetLocation,
java.util.Properties patientQueryDesignProps,
com.misyshealthcare.connect.base.codemapping.ICodeMappingManager codeMappingManager,
com.misyshealthcare.connect.util.LibraryConfig.ILogContext logContext,
com.misyshealthcare.connect.util.LibraryConfig.IPatientIdConverter pidConverter)
Loads the supplied configuration file. |
boolean |
loadConfiguration(java.io.File file,
java.lang.String oidRoot,
com.misyshealthcare.connect.util.OID.OidSource oidSource,
java.lang.String styleSheetLocation,
java.util.Properties patientQueryDesignProps,
com.misyshealthcare.connect.base.codemapping.ICodeMappingManager codeMappingManager,
com.misyshealthcare.connect.util.LibraryConfig.ILogContext logContext)
Loads the supplied configuration file and create all of the IHE actors that it defines. |
boolean |
loadConfiguration(java.lang.String filename,
boolean autoInstallActors)
Loads the supplied configuration file. |
boolean |
loadConfiguration(java.lang.String filename,
boolean autoInstallActors,
java.lang.String oidRoot,
com.misyshealthcare.connect.util.OID.OidSource oidSource,
java.lang.String styleSheetLocation,
java.util.Properties patientQueryDesignProps,
com.misyshealthcare.connect.base.codemapping.ICodeMappingManager codeMappingManager,
com.misyshealthcare.connect.util.LibraryConfig.ILogContext logContext)
Loads the supplied configuration file. |
boolean |
loadConfiguration(java.lang.String filename,
java.lang.String oidRoot,
com.misyshealthcare.connect.util.OID.OidSource oidSource,
java.lang.String styleSheetLocation,
java.util.Properties patientQueryDesignProps,
com.misyshealthcare.connect.base.codemapping.ICodeMappingManager codeMappingManager,
com.misyshealthcare.connect.util.LibraryConfig.ILogContext logContext)
Loads the supplied configuration file and creates all of the IHE actors that it defines. |
static void |
main(java.lang.String[] args)
testing only |
void |
resetAllBrokers()
Clears all brokers and stops all active actors. |
boolean |
resetConfiguration(java.util.Collection<java.lang.Object> actorDescriptions)
Resets the current IHE brokers to use the actors described in the list passed in. |
boolean |
resetConfiguration(java.util.Collection<java.lang.Object> actorDescriptions,
java.lang.String logFilename)
Resets the current IHE brokers to use the actors described in the list passed in. |
boolean |
resetConfiguration(java.util.Collection<java.lang.Object> actorDescriptions,
java.lang.String logFilename,
IMesaLogger mesaLog)
Resets the current IHE brokers to use the actors described in the list passed in. |
void |
setLoggingFile(java.lang.String fullPathToLogFile,
org.apache.log4j.Level level,
java.lang.String pattern)
Sets the default file to write to for the root. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
org.apache.log4j.Appender currentAppender
Constructor Detail |
---|
public ConfigurationLoader()
Method Detail |
---|
public static ConfigurationLoader getInstance()
public boolean loadConfiguration(java.lang.String filename, java.lang.String oidRoot, com.misyshealthcare.connect.util.OID.OidSource oidSource, java.lang.String styleSheetLocation, java.util.Properties patientQueryDesignProps, com.misyshealthcare.connect.base.codemapping.ICodeMappingManager codeMappingManager, com.misyshealthcare.connect.util.LibraryConfig.ILogContext logContext) throws IheConfigurationException
filename
- the name of the configuration fileoidRoot
- the OID rootoidSource
- the OID.OidSource interface which provides a unique oid id.styleSheetLocation
- the style sheet location for CDA transformationpatientQueryDesignProps
- the query design propertiescodeMappingManager
- the CodeMappingManager to be used for data transformationlogContext
- the LogContext to be used for audit logging
IheConfigurationException
- When there is something wrong with the specified configurationpublic boolean loadConfiguration(java.io.File file, java.lang.String oidRoot, com.misyshealthcare.connect.util.OID.OidSource oidSource, java.lang.String styleSheetLocation, java.util.Properties patientQueryDesignProps, com.misyshealthcare.connect.base.codemapping.ICodeMappingManager codeMappingManager, com.misyshealthcare.connect.util.LibraryConfig.ILogContext logContext) throws IheConfigurationException
file
- The configuration fileoidRoot
- the OID rootoidSource
- the OID.OidSource interface which provides a unique oid id.styleSheetLocation
- the style sheet location for CDA transformationpatientQueryDesignProps
- the query design propertiescodeMappingManager
- the CodeMappingManager to be used for data transformationlogContext
- the LogContext to be used for audit logging
IheConfigurationException
- When there is something wrong with the specified configurationpublic boolean loadConfiguration(java.lang.String filename, boolean autoInstallActors, java.lang.String oidRoot, com.misyshealthcare.connect.util.OID.OidSource oidSource, java.lang.String styleSheetLocation, java.util.Properties patientQueryDesignProps, com.misyshealthcare.connect.base.codemapping.ICodeMappingManager codeMappingManager, com.misyshealthcare.connect.util.LibraryConfig.ILogContext logContext) throws IheConfigurationException
filename
- the name of the configuration fileautoInstallActors
- If 'true' create the actors in this configuration, else store them upoidRoot
- the OID rootoidSource
- the OID.OidSource interface which provides a unique oid id.styleSheetLocation
- the style sheet location for CDA transformationpatientQueryDesignProps
- the query design propertiescodeMappingManager
- the CodeMappingManager to be used for data transformationlogContext
- the LogContext to be used for audit logging
IheConfigurationException
- When there is a problem with the configuration filepublic boolean loadConfiguration(java.lang.String filename, boolean autoInstallActors) throws IheConfigurationException
filename
- the name of the configuration fileautoInstallActors
- If 'true' create the actors in this configuration, else store them up
IheConfigurationException
- When there is a problem with the configuration filepublic boolean loadConfiguration(java.io.File file, boolean autoInstallActors, java.lang.String oidRoot, com.misyshealthcare.connect.util.OID.OidSource oidSource, java.lang.String styleSheetLocation, java.util.Properties patientQueryDesignProps, com.misyshealthcare.connect.base.codemapping.ICodeMappingManager codeMappingManager, com.misyshealthcare.connect.util.LibraryConfig.ILogContext logContext) throws IheConfigurationException
file
- the configuration fileautoInstallActors
- If 'true' create the actors in this configuration, else store them upoidRoot
- the OID rootoidSource
- the OID.OidSource interface which provides a unique oid id.styleSheetLocation
- the style sheet location for CDA transformationpatientQueryDesignProps
- the query design propertiescodeMappingManager
- the CodeMappingManager to be used for data transformationlogContext
- the LogContext to be used for audit logging
IheConfigurationException
- When there is a problem with the configuration filepublic boolean loadConfiguration(java.io.File file, boolean autoInstallActors, java.lang.String oidRoot, com.misyshealthcare.connect.util.OID.OidSource oidSource, java.lang.String styleSheetLocation, java.util.Properties patientQueryDesignProps, com.misyshealthcare.connect.base.codemapping.ICodeMappingManager codeMappingManager, com.misyshealthcare.connect.util.LibraryConfig.ILogContext logContext, com.misyshealthcare.connect.util.LibraryConfig.IPatientIdConverter pidConverter) throws IheConfigurationException
file
- the configuration fileautoInstallActors
- If 'true' create the actors in this configuration, else store them upoidRoot
- the OID rootoidSource
- the OID.OidSource interface which provides a unique oid id.styleSheetLocation
- the style sheet location for CDA transformationpatientQueryDesignProps
- the query design propertiescodeMappingManager
- the CodeMappingManager to be used for data transformationlogContext
- the LogContext to be used for audit loggingpidConvert
- the patientIdConverter to be used to convert the sourcePatientId to the PixLocalPatientId
IheConfigurationException
- When there is a problem with the configuration filepublic void setLoggingFile(java.lang.String fullPathToLogFile, org.apache.log4j.Level level, java.lang.String pattern)
fullPathToLogFile
- the Path to append the log to.level
- the Level to log, null for INFO.pattern
- Some other pattern to use for logging. null ok.public java.util.Collection<IheActorDescription> getActorDescriptions()
public boolean resetConfiguration(java.util.Collection<java.lang.Object> actorDescriptions) throws IheConfigurationException
actorDescriptions
- the actor descriptions or IDs to use to define the actors
IheConfigurationException
- When there is a problem with the configuration filepublic boolean resetConfiguration(java.util.Collection<java.lang.Object> actorDescriptions, java.lang.String logFilename) throws IheConfigurationException
actorDescriptions
- the actor descriptions or IDs to use to define the actorslogFilename
- the log file to install for this set of actors
IheConfigurationException
- When there is a problem with the configuration filepublic boolean resetConfiguration(java.util.Collection<java.lang.Object> actorDescriptions, java.lang.String logFilename, IMesaLogger mesaLog) throws IheConfigurationException
actorDescriptions
- the actor descriptions or IDs to use to define the actorslogFilename
- the log file to install for this set of actorsmesaLog
- the mesa log used for mesa tests
IheConfigurationException
- When there is a problem with the configuration filepublic void resetAllBrokers()
public ConfigurationLoader.ActorDescription getDescriptionById(java.lang.String id)
id
- the actor description ID
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |