Class WSChannelSettings
- java.lang.Object
-
- simpleorm.dataset.SRecordInstance
-
- com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
-
- com.inductiveautomation.ignition.gateway.gan.WSChannelSettings
-
- All Implemented Interfaces:
java.io.Serializable
public class WSChannelSettings extends PersistentRecord
Created by colby.clegg on 2/13/2015. Holds settings applicable to all GAN connections- 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 BooleanField
AllowIncoming
static BooleanField
AllowProxying
static BooleanField
Enabled
static LongField
Id
static IntField
IncomingPingMaxMissed
static IntField
IncomingPingRateMillis
static IntField
IncomingPingTimeoutMillis
static RecordMeta<WSChannelSettings>
META
static IntField
Overload_Wait_Secs
static IntField
Receive_Queue_Max
static IntField
ReceiveThreads
static BooleanField
RequireSSL
static BooleanField
RequireTwoWayAuth
static EnumField<ConnectionSecurityPolicy>
SecurityPolicy
static IntField
SendThreads
static IntField
WebsocketSessionIdleTimeout
static StringField
Whitelist
-
Fields inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
DEFAULT_VALUE, FORM_META_KEY, INDEXED, UNIQUE
-
-
Constructor Summary
Constructors Constructor Description WSChannelSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecordMeta<WSChannelSettings>
getMeta()
This must be defined in every user record's definition to access the SRecord which provides the meta data for this instance.ConnectionSecurityPolicy
getSecurityPolicy()
java.util.List<java.lang.String>
getWhitelist()
Returns a parsed whitelist.boolean
isEnabled()
boolean
isProxyEnabled()
boolean
requireSSL()
boolean
requireTwoWayAuth()
Returns true if two-way authentication is required, meaning that both the client and server must validate each other before SSL handshake is complete.-
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<WSChannelSettings> META
-
Id
public static final LongField Id
-
Enabled
public static final BooleanField Enabled
-
RequireSSL
public static final BooleanField RequireSSL
-
RequireTwoWayAuth
public static final BooleanField RequireTwoWayAuth
-
SendThreads
public static final IntField SendThreads
-
ReceiveThreads
public static final IntField ReceiveThreads
-
Receive_Queue_Max
public static final IntField Receive_Queue_Max
-
Overload_Wait_Secs
public static final IntField Overload_Wait_Secs
-
AllowIncoming
public static final BooleanField AllowIncoming
-
SecurityPolicy
public static final EnumField<ConnectionSecurityPolicy> SecurityPolicy
-
Whitelist
public static final StringField Whitelist
-
AllowProxying
public static final BooleanField AllowProxying
-
WebsocketSessionIdleTimeout
public static final IntField WebsocketSessionIdleTimeout
-
IncomingPingRateMillis
public static final IntField IncomingPingRateMillis
-
IncomingPingTimeoutMillis
public static final IntField IncomingPingTimeoutMillis
-
IncomingPingMaxMissed
public static final IntField IncomingPingMaxMissed
-
-
Method Detail
-
getMeta
public RecordMeta<WSChannelSettings> 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
-
isEnabled
public boolean isEnabled()
-
requireSSL
public boolean requireSSL()
-
requireTwoWayAuth
public boolean requireTwoWayAuth()
Returns true if two-way authentication is required, meaning that both the client and server must validate each other before SSL handshake is complete.
-
getSecurityPolicy
public ConnectionSecurityPolicy getSecurityPolicy()
-
getWhitelist
public java.util.List<java.lang.String> getWhitelist()
Returns a parsed whitelist. Elements are parsed by the comma character.- Returns:
- the list of server IDs to accept connections from, not null.
-
isProxyEnabled
public boolean isProxyEnabled()
-
-