Class WSConnectionSettings
- java.lang.Object
- 
- simpleorm.dataset.SRecordInstance
- 
- com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
- 
- com.inductiveautomation.ignition.gateway.gan.WSConnectionSettings
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class WSConnectionSettings extends PersistentRecord Created by colby.clegg on 2/13/2015.- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class simpleorm.dataset.SRecordInstanceSRecordInstance.BrokenOptimisticLockException
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static BooleanFieldEnabledstatic StringFieldHoststatic IntFieldHttpConnectTimeoutMillisstatic IntFieldHttpReadTimeoutMillisstatic IdentityFieldIdstatic RecordMeta<WSConnectionSettings>METAstatic IntFieldPingMaxMissedstatic IntFieldPingRateMillisstatic IntFieldPingTimeoutMillisstatic IntFieldPortstatic BooleanFieldUseSSLstatic IntFieldWSTimeoutMillis- 
Fields inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecordDEFAULT_VALUE, FORM_META_KEY, INDEXED, UNIQUE
 
- 
 - 
Constructor SummaryConstructors Constructor Description WSConnectionSettings()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfromPojo(GanSetupItem ganSetup)Updates record settings, using a GanSetupItem for referencejava.util.PropertiesgetAllProperties(int index)Returns a Properties object that can be used to completely recreate a WSConnectionSettings record from properties.java.util.PropertiesgetConnectProperties()Returns a Properties object that holds all properties needed to create a Metro Connection.java.lang.StringgetFactoryId()java.lang.StringgetHost()java.lang.LonggetId()RecordMeta<WSConnectionSettings>getMeta()This must be defined in every user record's definition to access the SRecord which provides the meta data for this instance.java.lang.StringgetName()intgetPort()booleanisEnabled()booleanisSSL()GanSetupItemtoPojo()- 
Methods inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecordgetBoolean, getDoubleObj, getIntObj, getLongObj, getString, installDefaultValues
 - 
Methods inherited from class simpleorm.dataset.SRecordInstanceallFields, assertNewRow, assertNotNewRow, defineInitialValue, deleteRecord, doQueryRecord, doValidateRecord, equals, findReference, findReference, findReference, findReference, getBigDecimal, getBytes, getDataSet, getDate, getDouble, getEnum, getInitialValue, getInt, getLogger, getLong, getObject, getRawArrayValue, getReferenceNoQuery, getTime, getTimestamp, hashCode, isAttached, isDeleted, isDirty, isDirty, isEmpty, isNewRow, isNotDestroyed, isNull, isReadOnly, isValid, onQueryRecord, onValidateField, onValidateRecord, setBigDecimal, setBoolean, setBytes, setDate, setDirty, setDouble, setEmpty, setEnum, setInt, setLong, setNewRow, setNull, setObject, setObject, setRawArrayValue, setReadOnly, setReference, setString, setTime, setTimestamp, toString, validatePrimaryKeys, wasInCache
 
- 
 
- 
- 
- 
Field Detail- 
METApublic static final RecordMeta<WSConnectionSettings> META 
 - 
Idpublic static final IdentityField Id 
 - 
Hostpublic static final StringField Host 
 - 
Portpublic static final IntField Port 
 - 
Enabledpublic static final BooleanField Enabled 
 - 
UseSSLpublic static final BooleanField UseSSL 
 - 
PingRateMillispublic static final IntField PingRateMillis 
 - 
PingTimeoutMillispublic static final IntField PingTimeoutMillis 
 - 
PingMaxMissedpublic static final IntField PingMaxMissed 
 - 
WSTimeoutMillispublic static final IntField WSTimeoutMillis 
 - 
HttpConnectTimeoutMillispublic static final IntField HttpConnectTimeoutMillis 
 - 
HttpReadTimeoutMillispublic static final IntField HttpReadTimeoutMillis 
 
- 
 - 
Method Detail- 
getMetapublic RecordMeta<WSConnectionSettings> getMeta() Description copied from class:SRecordInstanceThis must be defined in every user record's definition to access the SRecord which provides the meta data for this instance. It is normally defined as:-SRecord getMeta() { return meta; };The actual metavariable is thus not Serialized, but it would not be anyway as it is usually static.- Specified by:
- getMetain class- PersistentRecord
 
 - 
getNamepublic java.lang.String getName() 
 - 
getHostpublic java.lang.String getHost() 
 - 
getPortpublic int getPort() 
 - 
isEnabledpublic boolean isEnabled() 
 - 
isSSLpublic boolean isSSL() 
 - 
getIdpublic java.lang.Long getId() 
 - 
getFactoryIdpublic java.lang.String getFactoryId() 
 - 
getConnectPropertiespublic java.util.Properties getConnectProperties() throws java.lang.ExceptionReturns a Properties object that holds all properties needed to create a Metro Connection.- Throws:
- java.lang.Exception
 
 - 
getAllPropertiespublic java.util.Properties getAllProperties(int index) Returns a Properties object that can be used to completely recreate a WSConnectionSettings record from properties. Use the index to set which gan connection this represents in a file with many gan connections; e.g if the index is 0, then a property might be 'gateway.network.0.Host=localhost'
 - 
fromPojopublic boolean fromPojo(GanSetupItem ganSetup) Updates record settings, using a GanSetupItem for reference
 - 
toPojopublic GanSetupItem toPojo() 
 
- 
 
-