The ServerId holds enough information for creating a connection.
Typically this can be used to construct an URL.
For plug-in developed solutions the ServerId need to be understood by the plug-ins own ItemManager, as this class is the primary place for creating, deleting and getting Items.
More...
Public Member Functions | |
ServerId | Clone () |
Create clone of this class itself. | |
bool | Contains (String match) |
Look through ServerHostName, ServerType and Id for a match. | |
override bool | Equals (object otherObject) |
Compare this ServerId with the one given as parameter. A complete compare is done for each field, except the ServerHostname that is normalized before compare is done. Normalization in this case will ignore leading 'http://', and convert 0.0.0.0 and 127.0.0.1 to 'localhost', as well as ignore the port and colon, before comparing. | |
override int | GetHashCode () |
Creates a hash code based on the ServerHostname. | |
ServerId () | |
Empty constructor. | |
ServerId (String type, String hostname, int port, Guid id) | |
Create a ServerId with all fields present. | |
ServerId (String type, String hostname, String port, Guid id) | |
Overloaded version with port as a String. | |
ServerId (String type, String scheme, String hostname, int port, Guid id) | |
Overloaded construction to include scheme. | |
ServerId (String type, String scheme, String hostname, String port, Guid id) | |
Overloaded construction to include scheme and port as string. | |
override string | ToString () |
Override default ToString in order to be able to identify the server. | |
Static Public Member Functions | |
static bool | operator!= (ServerId obj1, ServerId obj2) |
Will return true if the two references point to different objects and Equals(object) returns false. | |
static bool | operator== (ServerId obj1, ServerId obj2) |
Will return true if the two references point to the same object or if Equals(object) returns true. | |
Public Attributes | |
Guid | Id |
Id is the Guid that identify a specific server or set of configuration. | |
String | ServerHostname |
The name or IP address of the server owning the item being identified. | |
int | Serverport |
The TCP/IP port for this server. | |
String | ServerScheme |
The http scheme to be used, default is http://. | |
String | ServerType |
The type of server owning the Item being identified. The XProtect VMS built-in server types are defined as const in this class. The ServerId.CorporateManagementServerType ("XPCO") will refer to type of communication, more than product type. The XProtect Expert and Professional+, will also have the ServerType as CorporateManagementServerType. | |
Static Public Attributes | |
const String | ArcusServerType = "ARCUS" |
Not supported any more. | |
const String | BlkExportType = "BLK" |
Accessing exported video in BLK database format | |
const String | CorporateManagementServerType = "XPCO" |
Identifies a XProtect Corporate management server. | |
const String | CorporateRecordingServerType = "XPCORS" |
Identifies a XProtect Corporate recording server. | |
const String | DefaultServerType = "XP" |
Identifies a Milestone server, type unknown. | |
const String | EnterpriseServerType = "XPE" |
Not supported any more. | |
const String | IniExportType = "INI" |
Accessing exported video in PQZ database format (multiple sources) | |
const String | MobileServerType = "MOBILE" |
Not supported any more. | |
const String | PqzExportType = "PQZ" |
Accessing exported video in PQZ database format. | |
Properties | |
bool | IsExportType [get] |
Returns true if this ServerType is one of the 3 Export types (BLK, PQZ, INI) | |
Uri | Uri [get] |
Construct an Uri from the ServerHostname and ServerPort. | |
UserContext | UserContext [get, set] |
Identifies a specific user context. This is used when multiple users are logged on at the same time towards the same set of servers. Field is initialized by the stand alone SDK Environment, and should not be modified by any application code. | |
The ServerId holds enough information for creating a connection.
Typically this can be used to construct an URL.
For plug-in developed solutions the ServerId need to be understood by the plug-ins own ItemManager, as this class is the primary place for creating, deleting and getting Items.
The ServerId.Id MUST always be present.
For configurations saved on a Milestone server, the other fields are not used by the Environment but only by the plug-ins own ItemManager. If a plug-in solution creates Items in one of the administrators, saves the configuration with the Milestone configuration and uses the created Items in the Smart Client or Event Server, the content of this ServerId is not really identifying a server but should be seen as the top node of the plug-in configuration.
|
inline |
Empty constructor.
|
inline |
Create a ServerId with all fields present.
type | The type of server. For XProtect video management servers a set of ServerTypes have been defined: ServerId.CorporateManagementServerType - A XProtect Corporate Management server ServerId.CorporateRecordingServerType - A XProtect Corporate Recording server ServerId.DefaultServerType - A XProtect server, but type is not known. |
hostname | |
port | |
id |
|
inline |
Overloaded version with port as a String.
type | |
hostname | |
port | |
id |
|
inline |
Overloaded construction to include scheme.
type | |
scheme | |
hostname | |
port | |
id |
|
inline |
Overloaded construction to include scheme and port as string.
type | |
scheme | |
hostname | |
port | |
id |
|
inline |
Create clone of this class itself.
|
inline |
Look through ServerHostName, ServerType and Id for a match.
match |
|
inline |
Compare this ServerId with the one given as parameter.
A complete compare is done for each field, except the ServerHostname that is normalized before compare is done. Normalization in this case will ignore leading 'http://', and convert 0.0.0.0 and 127.0.0.1 to 'localhost', as well as ignore the port and colon, before comparing.
otherObject |
|
inline |
Creates a hash code based on the ServerHostname.
Will return true if the two references point to different objects and Equals(object) returns false.
obj1 | |
obj2 |
Will return true if the two references point to the same object or if Equals(object) returns true.
obj1 | |
obj2 |
|
inline |
Override default ToString in order to be able to identify the server.
|
static |
Not supported any more.
|
static |
Accessing exported video in BLK database format
|
static |
Identifies a XProtect Corporate management server.
|
static |
Identifies a XProtect Corporate recording server.
|
static |
Identifies a Milestone server, type unknown.
|
static |
Not supported any more.
Guid VideoOS.Platform.ServerId.Id |
Id is the Guid that identify a specific server or set of configuration.
|
static |
Accessing exported video in PQZ database format (multiple sources)
|
static |
Not supported any more.
|
static |
Accessing exported video in PQZ database format.
String VideoOS.Platform.ServerId.ServerHostname |
The name or IP address of the server owning the item being identified.
int VideoOS.Platform.ServerId.Serverport |
The TCP/IP port for this server.
String VideoOS.Platform.ServerId.ServerScheme |
The http scheme to be used, default is http://.
This field is new from 2019, introduced to support https sessions.
String VideoOS.Platform.ServerId.ServerType |
The type of server owning the Item being identified.
The XProtect VMS built-in server types are defined as const in this class.
The ServerId.CorporateManagementServerType ("XPCO") will refer to type of communication, more than product type. The XProtect Expert and Professional+, will also have the ServerType as CorporateManagementServerType.
|
get |
Returns true if this ServerType is one of the 3 Export types (BLK, PQZ, INI)
|
get |
Construct an Uri from the ServerHostname and ServerPort.
|
getset |
Identifies a specific user context. This is used when multiple users are logged on at the same time towards the same set of servers.
Field is initialized by the stand alone SDK Environment, and should not be modified by any application code.