Constructor.
the creation date, or a number of string suitable for passing to the Date constructor
the unique session ID
the node ID
the SSH host name
the SSH port
the reverse SSH port
OptionalstartInstructionId: numberthe StartRemoteSsh instruction ID
OptionalstopInstructionId: numberthe StopRemoteSsh instruction ID
ReadonlycreatedReadonlynodeReadonlyreverseReadonlysessionReadonlysshReadonlysshOptional ReadonlystartOptional ReadonlystopGet this object as a standard JSON encoded string value.
This method calls Domain.SshSession#toJsonObject and then turns that into a JSON string.
the JSON encoded string
Get this object in standard JSON form.
An example result looks like this:
{
"sessionId": "123-abc",
"created": 123456789,
"nodeId": 123,
"host": "ssh.solarnetwork.net",
"port": 9082,
"reversePort": 42000
}
If the data value has a toJsonObject() function, that will be invoked
and used in the result. Otherwise the data value will be included as-is.
an object, ready for JSON encoding
StaticfromParse a JSON string into a Domain.SshSession instance.
The JSON must be encoded the same way Domain.SshSession#toJsonEncoding does.
the JSON to parse
the new instance, or undefined if json is undefined
StaticfromCreate a new instance from an object in standard JSON form.
The object must be in the same style as Domain.SshSession#toJsonObject produces.
the object in standard JSON form
the new instance, or undefined if obj is undefined
A SolarSSH session object.