Class WSConnectionSettings
java.lang.Object
simpleorm.dataset.SRecordInstance
com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
com.inductiveautomation.ignition.gateway.gan.WSConnectionSettings
- All Implemented Interfaces:
Serializable
Created by colby.clegg on 2/13/2015.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class simpleorm.dataset.SRecordInstance
SRecordInstance.BrokenOptimisticLockException -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFieldstatic final BooleanFieldstatic final StringFieldstatic final IntFieldstatic final IntFieldstatic final IdentityFieldstatic final RecordMeta<WSConnectionSettings>static final IntFieldstatic final IntFieldstatic final IntFieldstatic final IntFieldstatic final IntFieldstatic final IntFieldstatic final BooleanFieldstatic final IntFieldFields inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
DEFAULT_VALUE, FORM_META_KEY, INDEXED, UNIQUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfromPojo(GanSetupItem ganSetup) Updates record settings, using a GanSetupItem for referencegetAllProperties(int index) Returns a Properties object that can be used to completely recreate a WSConnectionSettings record from properties.Returns a Properties object that holds all properties needed to create a Metro Connection.getHost()getId()getMeta()This must be defined in every user record's definition to access the SRecord which provides the meta data for this instance.getName()intgetPort()booleanbooleanisSSL()toPojo()Methods inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
getBoolean, getDoubleObj, getIntObj, getLongObj, getString, installDefaultValuesMethods inherited from class simpleorm.dataset.SRecordInstance
allFields, 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 Details
-
META
-
Id
-
Host
-
Port
-
Enabled
-
UseSSL
-
Description
-
PingRateMillis
-
PingTimeoutMillis
-
PingMaxMissed
-
WSTimeoutMillis
-
HttpConnectTimeoutMillis
-
HttpReadTimeoutMillis
-
SendThreads
-
ReceiveThreads
-
-
Constructor Details
-
WSConnectionSettings
public WSConnectionSettings()
-
-
Method Details
-
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 classPersistentRecord
-
getName
-
getHost
-
getPort
public int getPort() -
isEnabled
public boolean isEnabled() -
isSSL
public boolean isSSL() -
getId
-
getFactoryId
-
getDescription
-
getConnectProperties
Returns a Properties object that holds all properties needed to create a Metro Connection.- Throws:
Exception
-
getAllProperties
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' -
fromPojo
Updates record settings, using a GanSetupItem for reference -
toPojo
-