Package de.bsvrz.sys.funclib.losb
Class DAVAppBase
java.lang.Object
de.bsvrz.sys.funclib.losb.DAVAppBase
- All Implemented Interfaces:
de.bsvrz.dav.daf.main.ApplicationCloseActionHandler
public class DAVAppBase
extends Object
implements de.bsvrz.dav.daf.main.ApplicationCloseActionHandler
Basisklasse für alle Los-B Applikationen.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringBuilderprotected Stringprotected de.bsvrz.sys.funclib.commandLineArgs.ArgumentListprotected de.bsvrz.sys.funclib.debug.Debug -
Constructor Summary
ConstructorsConstructorDescriptionDAVAppBase(String[] arguments, String appName) Initialisiert die Applikation.DAVAppBase(String[] arguments, String appName, boolean reconnect) DAVAppBase(String[] arguments, String appName, DAVAppBase.DisconnectHandler disconnectHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidBeendet zuerst den DavReconnecter und dann die Verbindung zum DAV.voidde.bsvrz.dav.daf.main.config.AspectgetAsp(long id) de.bsvrz.dav.daf.main.config.Aspectde.bsvrz.dav.daf.main.config.AttributeGroupgetAtg(long id) de.bsvrz.dav.daf.main.config.AttributeGroupde.bsvrz.dav.daf.main.config.ConfigurationAuthorityde.bsvrz.dav.daf.main.config.DataModelde.bsvrz.dav.daf.main.ClientDavInterfacede.bsvrz.dav.daf.main.DataDescriptionde.bsvrz.dav.daf.main.config.SystemObjectgetObj(long id) de.bsvrz.dav.daf.main.config.SystemObjectbooleanprotected voidDiese Methode wird nach erfolgreichem Reconnect zum DAV aufgerufen.voidsetDisconnectHandler(DAVAppBase.DisconnectHandler disconnectHandler)
-
Field Details
-
logger
protected de.bsvrz.sys.funclib.debug.Debug logger -
applicationName
-
applicationLabel
-
argList
protected de.bsvrz.sys.funclib.commandLineArgs.ArgumentList argList
-
-
Constructor Details
-
DAVAppBase
Initialisiert die Applikation. Geht die Verbindung zum Dav verloren, so wird versucht, die Verbindung wieder aufzubauen.- Parameters:
arguments- StartparameterappName- Name der APplikation- Throws:
Exception- Fehler- See Also:
-
DAVAppBase
- Parameters:
arguments- AufrufparameterappName- Name der Applikationreconnect-truefalls die Applikation versuchen soll, die Verbindung zum Dav wieder aufzunehmen, falls diese verloren ging.- Throws:
Exception- Fehler
-
DAVAppBase
public DAVAppBase(String[] arguments, String appName, DAVAppBase.DisconnectHandler disconnectHandler) throws Exception - Parameters:
arguments- AufrufparameterappName- Name der ApplikationdisconnectHandler- Objekt, dass über den Verbindungsverlust zum Dav informiert werden soll, odernull, wenn keine Benachrichtigung stattfinden soll. Im Falle einer Benachrichtigung wird die entsprechende Methode von einem eigenen Thread aufgerufen.- Throws:
Exception- Fehler
-
-
Method Details
-
setDisconnectHandler
-
close
- Specified by:
closein interfacede.bsvrz.dav.daf.main.ApplicationCloseActionHandler
-
reconnectHandler
protected void reconnectHandler()Diese Methode wird nach erfolgreichem Reconnect zum DAV aufgerufen. Falls diese Methode ueberschrieben wird sollte stetssuper.reconnectHandler()aufgerufen werden, weil hier derConnectionManagerzurueckgesetzt wird. -
connectToDav
public void connectToDav() throws de.bsvrz.dav.daf.main.MissingParameterException, de.bsvrz.dav.daf.main.CommunicationError, de.bsvrz.dav.daf.main.ConnectionException, de.bsvrz.dav.daf.main.InconsistentLoginException- Throws:
de.bsvrz.dav.daf.main.MissingParameterExceptionde.bsvrz.dav.daf.main.CommunicationErrorde.bsvrz.dav.daf.main.ConnectionExceptionde.bsvrz.dav.daf.main.InconsistentLoginException
-
disconnectFromDav
public void disconnectFromDav()Beendet zuerst den DavReconnecter und dann die Verbindung zum DAV. -
getDataModel
public de.bsvrz.dav.daf.main.config.DataModel getDataModel() -
getDavCon
public de.bsvrz.dav.daf.main.ClientDavInterface getDavCon() -
getAtg
-
getAtg
public de.bsvrz.dav.daf.main.config.AttributeGroup getAtg(long id) -
getAsp
-
getAsp
public de.bsvrz.dav.daf.main.config.Aspect getAsp(long id) -
getObj
public de.bsvrz.dav.daf.main.config.SystemObject getObj(long id) -
getObj
-
getDD
-
getConfigAuth
public de.bsvrz.dav.daf.main.config.ConfigurationAuthority getConfigAuth() -
isExplicitApplicationReadyMessage
public boolean isExplicitApplicationReadyMessage() -
enableExplicitApplicationReadyMessage
public void enableExplicitApplicationReadyMessage()
-