private void checkInstalled() { if (!isInstalled()) throw new IllegalStateException("Not installed"); }
private void checkInstalled() { if (!isInstalled()) throw new IllegalStateException("Not installed"); }
/** * True if the Network Connection is installed on the network. If not * present, information about the installed status of the Network Connection * is inherited from the device. * * @param installed * True if the NetworkConnection is installed on the network. * @throws GeneralSecurityException */ public void setInstalled(Boolean installed) { if (this.installed == installed) return; boolean prev = isInstalled(); this.installed = installed; if (isInstalled() != prev) needRebind(); }
/** * True if the Network Connection is installed on the network. If not * present, information about the installed status of the Network Connection * is inherited from the device. * * @param installed * True if the NetworkConnection is installed on the network. * @throws GeneralSecurityException */ public void setInstalled(Boolean installed) { if (this.installed == installed) return; boolean prev = isInstalled(); this.installed = installed; if (isInstalled() != prev) needRebind(); }
public Connection findCompatibleConnection(Connection remoteConn) throws IncompatibleConnectionException { for (Connection conn : conns) if (conn.isInstalled() && conn.isCompatible(remoteConn)) return conn; throw new IncompatibleConnectionException( "No compatible connection to " + remoteConn + " available on " + aet); }
public Connection findCompatibleConnection(Connection remoteConn) throws IncompatibleConnectionException { for (Connection conn : conns) if (conn.isInstalled() && conn.isCompatible(remoteConn)) return conn; throw new IncompatibleConnectionException( "No compatible connection to " + remoteConn + " available on " + name); }
public Connection findCompatibleConnection(Connection remoteConn) throws IncompatibleConnectionException { for (Connection conn : conns) if (conn.isInstalled() && conn.isCompatible(remoteConn)) return conn; throw new IncompatibleConnectionException( "No compatible connection to " + remoteConn + " available on " + aet); }
public CompatibleConnection findCompatibleConnection(HL7Application remote) throws IncompatibleConnectionException { for (Connection remoteConn : remote.conns) if (remoteConn.isInstalled() && remoteConn.isServer()) for (Connection conn : conns) if (conn.isInstalled() && conn.isCompatible(remoteConn)) return new CompatibleConnection(conn, remoteConn); throw new IncompatibleConnectionException( "No compatible connection to " + remote.getApplicationName() + " available on " + name); }
public CompatibleConnection findCompatibleConnection(ApplicationEntity remote) throws IncompatibleConnectionException { for (Connection remoteConn : remote.conns) if (remoteConn.isInstalled() && remoteConn.isServer()) for (Connection conn : conns) if (conn.isInstalled() && conn.isCompatible(remoteConn)) return new CompatibleConnection(conn, remoteConn); throw new IncompatibleConnectionException( "No compatible connection to " + remote.getAETitle() + " available on " + aet); }
public CompatibleConnection findCompatibleConnection(ApplicationEntity remote) throws IncompatibleConnectionException { for (Connection remoteConn : remote.conns) if (remoteConn.isInstalled() && remoteConn.isServer()) for (Connection conn : conns) if (conn.isInstalled() && conn.isCompatible(remoteConn)) return new CompatibleConnection(conn, remoteConn); throw new IncompatibleConnectionException( "No compatible connection to " + remote.getAETitle() + " available on " + aet); }
if (!(isInstalled() && isServer())) { rebindNeeded = false; return false;
if (!(isInstalled() && isServer())) { rebindNeeded = false; return false;
private synchronized ActiveConnection activeConnection() throws IncompatibleConnectionException { ActiveConnection activeConnection = this.activeConnection; if (activeConnection != null) return activeConnection; Device arrDev = this.arrDevice; if (arrDevice == null) throw new IllegalStateException("No AuditRecordRepositoryDevice initalized"); AuditRecordRepository arr = arrDev.getDeviceExtension(AuditRecordRepository.class); if (arr == null) throw new IllegalStateException("AuditRecordRepositoryDevice " + arrDevice.getDeviceName() + " does not provide Audit Record Repository"); for (Connection remoteConn : arr.getConnections()) if (remoteConn.isInstalled() && remoteConn.isServer()) for (Connection conn : conns) if (conn.isInstalled() && conn.isCompatible(remoteConn)) { return (this.activeConnection = conn.getProtocol().isTCP() ? new TCPConnection(conn, remoteConn) : new UDPConnection(conn, remoteConn)); } throw new IncompatibleConnectionException( "No compatible connection to AuditRecordRepository @ Device " + arr.getDevice().getDeviceName() + " available on AuditLogger @ Device " + device.getDeviceName()); }
private synchronized ActiveConnection activeConnection() throws IncompatibleConnectionException { ActiveConnection activeConnection = this.activeConnection; if (activeConnection != null) return activeConnection; Device arrDev = this.arrDevice; if (arrDevice == null) throw new IllegalStateException("No AuditRecordRepositoryDevice initalized"); AuditRecordRepository arr = arrDev.getDeviceExtension(AuditRecordRepository.class); if (arr == null) throw new IllegalStateException("AuditRecordRepositoryDevice " + arrDevice.getDeviceName() + " does not provide Audit Record Repository"); for (Connection remoteConn : arr.getConnections()) if (remoteConn.isInstalled() && remoteConn.isServer()) for (Connection conn : conns) if (conn.isInstalled() && conn.isCompatible(remoteConn)) { return (this.activeConnection = conn.getProtocol().isTCP() ? new TCPConnection(conn, remoteConn) : new UDPConnection(conn, remoteConn)); } throw new IncompatibleConnectionException( "No compatible connection to AuditRecordRepository @ Device " + arr.getDevice().getDeviceName() + " available on AuditLogger @ Device " + device.getDeviceName()); }