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.SRecordInstance
SRecordInstance.BrokenOptimisticLockException
-
-
Field Summary
Fields 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.PersistentRecord
DEFAULT_VALUE, FORM_META_KEY, INDEXED, UNIQUE
-
-
Constructor Summary
Constructors Constructor Description WSConnectionSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromPojo(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.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 Detail
-
META
public static final RecordMeta<WSConnectionSettings> META
-
Id
public static final IdentityField Id
-
Host
public static final StringField Host
-
Port
public static final IntField Port
-
Enabled
public static final BooleanField Enabled
-
UseSSL
public static final BooleanField UseSSL
-
PingRateMillis
public static final IntField PingRateMillis
-
PingTimeoutMillis
public static final IntField PingTimeoutMillis
-
PingMaxMissed
public static final IntField PingMaxMissed
-
WSTimeoutMillis
public static final IntField WSTimeoutMillis
-
HttpConnectTimeoutMillis
public static final IntField HttpConnectTimeoutMillis
-
HttpReadTimeoutMillis
public static final IntField HttpReadTimeoutMillis
-
-
Method Detail
-
getMeta
public 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 classPersistentRecord
-
getName
public java.lang.String getName()
-
getHost
public java.lang.String getHost()
-
getPort
public int getPort()
-
isEnabled
public boolean isEnabled()
-
isSSL
public boolean isSSL()
-
getId
public java.lang.Long getId()
-
getFactoryId
public java.lang.String getFactoryId()
-
getConnectProperties
public 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
-
getAllProperties
public 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'
-
fromPojo
public void fromPojo(GanSetupItem ganSetup)
Updates record settings, using a GanSetupItem for reference
-
toPojo
public GanSetupItem toPojo()
-
-