Class SessionToken
Token for a replication session, for guaranteeing that source replicated files will be kept safe until the replication completes.
Inheritance
System.Object
SessionToken
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Replicator
Assembly: Lucene.Net.Replicator.dll
Syntax
public sealed class SessionToken
Remarks
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Constructors
| Improve this Doc View SourceSessionToken(IDataInput)
Constructor which deserializes from the given J2N.IO.IDataInput.
Declaration
public SessionToken(IDataInput reader)
Parameters
| Type | Name | Description |
|---|---|---|
| J2N.IO.IDataInput | reader |
Exceptions
| Type | Condition |
|---|---|
| System.IO.IOException |
SessionToken(String, IRevision)
Constructor with the given id and revision.
Declaration
public SessionToken(string id, IRevision revision)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | |
| IRevision | revision |
Exceptions
| Type | Condition |
|---|---|
| System.IO.IOException |
Properties
| Improve this Doc View SourceId
Id of this session. Should be passed when releasing the session, thereby acknowledging the IReplicator that this session is no longer in use.
Declaration
public string Id { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
See Also
Release(System.String)
SourceFiles
Declaration
public IDictionary<string, IList<RevisionFile>> SourceFiles { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IDictionary<System.String, System.Collections.Generic.IList<RevisionFile>> |
Version
Declaration
public string Version { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceSerialize(DataOutputStream)
Serialize the token data for communication between server and client.
Declaration
public void Serialize(DataOutputStream writer)
Parameters
| Type | Name | Description |
|---|---|---|
| J2N.IO.DataOutputStream | writer |
Exceptions
| Type | Condition |
|---|---|
| System.IO.IOException |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()