All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alachisoft.ncache.security.config.DomainController Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
package com.alachisoft.ncache.security.config;

import Alachisoft.NCache.Common.Configuration.*;
import com.alachisoft.ncache.serialization.core.io.InternalCompactSerializable;
import com.alachisoft.ncache.serialization.standard.io.CompactReader;
import com.alachisoft.ncache.serialization.standard.io.CompactWriter;

import java.io.IOException;

public class DomainController implements InternalCompactSerializable, Cloneable
{
	private String _domainControllerName;
	private int _port;

	public DomainController()
	{
	}

	@ConfigurationAttributeAnnotation(value = "host", appendText = "")
	public final String getDomainControllerName()
	{
		return this._domainControllerName;
	}

	@ConfigurationAttributeAnnotation(value = "host", appendText = "")
	public final void setDomainControllerName(String value)
	{
		this._domainControllerName = value;
	}

	@ConfigurationAttributeAnnotation(value = "port", appendText = "")
	public final int getPort()
	{
		return this._port;
	}

	@ConfigurationAttributeAnnotation(value = "port", appendText = "")
	public final void setPort(int value)
	{
		this._port = value;
	}

	public final Object clone()
	{
		DomainController domainController = new DomainController();
		domainController.setDomainControllerName(getDomainControllerName() != null ? (String)getDomainControllerName() : null);
		domainController.setPort(getPort());
		return domainController;
	}

	@Override
	public void Deserialize(CompactReader reader) throws IOException, ClassNotFoundException {
		Object tempVar = reader.ReadObject();
		_domainControllerName = (String)((tempVar instanceof String) ? tempVar : null);
		_port = reader.ReadInt32();
	}

	@Override
	public void Serialize(CompactWriter writer) throws IOException {
		writer.WriteObject(_domainControllerName);
		writer.Write(_port);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy