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 StringField
static final BooleanField
static final StringField
static final IntField
static final IntField
static final IdentityField
static final RecordMeta<WSConnectionSettings>
static final IntField
static final IntField
static final IntField
static final IntField
static final BooleanField
static final IntField
Fields inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
DEFAULT_VALUE, FORM_META_KEY, INDEXED, UNIQUE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
fromPojo
(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()
int
getPort()
boolean
boolean
isSSL()
toPojo()
Methods inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
getBoolean, getDoubleObj, getIntObj, getLongObj, getString, installDefaultValues
Methods 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
-
-
Constructor Details
-
WSConnectionSettings
public WSConnectionSettings()
-
-
Method Details
-
getMeta
Description copied from class:SRecordInstance
This 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
meta
variable is thus not Serialized, but it would not be anyway as it is usually static.- Specified by:
getMeta
in 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
-