Package co.ecg.alpaca.toolkit.model
Class BroadWorksServer
java.lang.Object
co.ecg.alpaca.toolkit.model.BroadWorksServer
- All Implemented Interfaces:
Serializable,AutoCloseable
@Component
@Scope("prototype")
public class BroadWorksServer
extends Object
implements Serializable, AutoCloseable
The BroadWorksServer Class represents the connection to BroadWorks. It might
be an External Web Server (XSP) or directly to an Application Server.
A new instance of BroadWorksServer is needed for each User performing
changes.
- Author:
- Matthew Keathley
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBroadWorksServer(LibraryProperties libraryProperties, OCSSwitchboard ocsSwitchboard, RequestBundler requestBundler, org.apache.jcs.JCS responseCache, HostIdCachingService hostIdCachingService) -
Method Summary
Modifier and TypeMethodDescriptionbooleanClears the JCS Response Cache This causes all subsequent requests to get fresh resultsvoidclose()Closes the BroadWorksServer and frees the used socket.voidconnect(LibraryProperties.BroadWorksServerConfig configuration) Delegate factory method for the creation of a BroadWorksServer.booleanfromTimeZone(TimeZone timeZone) getTimesTenConnection(boolean trySecondary) Returns theConnectioninstance for this BroadWorksServerinthashCode()booleantimeZoneExists(String timeZoneString) toTimeZone(String timeZone)
-
Constructor Details
-
BroadWorksServer
@Autowired public BroadWorksServer(LibraryProperties libraryProperties, OCSSwitchboard ocsSwitchboard, RequestBundler requestBundler, org.apache.jcs.JCS responseCache, HostIdCachingService hostIdCachingService) throws co.ecg.licensing.LicenseException, BroadWorksServerException - Throws:
co.ecg.licensing.LicenseExceptionBroadWorksServerException
-
-
Method Details
-
connect
public void connect(LibraryProperties.BroadWorksServerConfig configuration) throws BroadWorksServerException, IOException, co.ecg.licensing.LicenseException, RequestException Delegate factory method for the creation of a BroadWorksServer. Uses the current system time as the session id.- Parameters:
configuration- TheLibraryProperties.BroadWorksServerConfigobject as retrieved through an AlpacaProperties configuration.- Throws:
BroadWorksServerExceptionIOExceptionco.ecg.licensing.LicenseExceptionRequestException
-
getTimesTenConnection
- Throws:
TimesTenException
-
getTimesTenConnection
Returns theConnectioninstance for this BroadWorksServer- Throws:
TimesTenException- Thrown if unable to open the TimesTenConnection
-
clearCache
public boolean clearCache()Clears the JCS Response Cache This causes all subsequent requests to get fresh results- Returns:
- Returns true if the cache was successfully cleared
-
close
Closes the BroadWorksServer and frees the used socket.- Specified by:
closein interfaceAutoCloseable- Throws:
BroadWorksServerException- Thrown if an error occurs while closing the client.
-
getRelease
-
toTimeZone
- Throws:
BroadWorksServerException
-
fromTimeZone
- Throws:
BroadWorksServerException
-
timeZoneExists
- Throws:
BroadWorksServerException
-
equals
-
hashCode
public int hashCode() -
getNickName
-