org.jivesoftware.openfire.server
Class RemoteServerConfiguration
java.lang.Object
org.jivesoftware.openfire.server.RemoteServerConfiguration
- All Implemented Interfaces:
- Externalizable, Serializable, Cacheable
public class RemoteServerConfiguration
- extends Object
- implements Cacheable, Externalizable
Holds the configuration when connecting to/from a remote server. The configuration specifies
if incoming or outgoing connections are allowed to the remote server and the port to use
when creating an outgoing connection.
- Author:
- Gaston Dombiak
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteServerConfiguration
public RemoteServerConfiguration(String domain)
getDomain
public String getDomain()
getPermission
public RemoteServerConfiguration.Permission getPermission()
setPermission
public void setPermission(RemoteServerConfiguration.Permission permission)
getRemotePort
public int getRemotePort()
setRemotePort
public void setRemotePort(int remotePort)
getCachedSize
public int getCachedSize()
- Description copied from interface:
Cacheable
- Returns the approximate size of the Object in bytes. The size should be
considered to be a best estimate of how much memory the Object occupies
and may be based on empirical trials or dynamic calculations.
- Specified by:
getCachedSize
in interface Cacheable
- Returns:
- the size of the Object in bytes.
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
Copyright © 2003-2007 Jive Software.