Package com.kheops.jmap.server
Class JMapServerRemoteConnectionPoolInfo
java.lang.Object
com.kheops.jmap.metadata.LocalizedObject
com.kheops.jmap.metadata.JMapObject
com.kheops.jmap.server.JMapServerRemoteConnectionPoolInfo
- All Implemented Interfaces:
Serializable,Cloneable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<JMapServerRemoteConnectionPoolInfo> static final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.kheops.jmap.metadata.JMapObject
acl -
Constructor Summary
ConstructorsConstructorDescriptionJMapServerRemoteConnectionPoolInfo(int id, String name, String host, int port, String username, String password, int poolSize) JMapServerRemoteConnectionPoolInfo(int id, String name, String host, int port, String username, String password, int poolSize, long timeout) -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanGets the connection type (direct or proxy)getHost()intgetId()getName()intintintgetPort()intGets the proxy protocolGets the relative proxy pathlongThis method returns the period (milliseconds) to wait before recycling the ConnectionPool connections.intlonginthashCode()voidsetConnectionTypeStr(String connectionTypeStr) Sets the connection type (direct or proxy)voidvoidsetId(int id) voidsetLastException(Exception lastException) voidvoidsetPassword(String password) voidsetPoolMaxSize(int poolMaxSize) voidsetPoolSize(int poolSize) voidsetPort(int port) voidsetProxyPort(int proxyPort) voidsetProxyProtocolStr(String proxyProtocolStr) sets the proxy protocol (http or https)voidsetProxyRelativePath(String proxyRelativePath) Sets the relate proxy pathvoidsetRecyclePeriod(long recyclePeriod) This method sets the period (milliseconds) to wait before recycling the ConnectionPool connections.voidsetStatus(int status) voidsetTimeout(long timeout) voidsetUsername(String username) toString()Methods inherited from class com.kheops.jmap.metadata.JMapObject
clone, setAclMethods inherited from class com.kheops.jmap.metadata.LocalizedObject
getAvailableLocales, getTranslation, isTranslationExists, removeTranslationsOtherThan, setTranslation, updateTranslations
-
Field Details
-
CONNECTION_OK
public static final int CONNECTION_OK- See Also:
-
CONNECTION_ERROR
public static final int CONNECTION_ERROR- See Also:
-
CONNECTION_INACTIVE
public static final int CONNECTION_INACTIVE- See Also:
-
CONNECTION_TYPE_DIRECT
- See Also:
-
CONNECTION_TYPE_PROXY
- See Also:
-
PROXY_PROTOCOL_HTTP
- See Also:
-
PROXY_PROTOCOL_HTTPS
- See Also:
-
COMPARATOR_BY_NAME
-
-
Constructor Details
-
JMapServerRemoteConnectionPoolInfo
public JMapServerRemoteConnectionPoolInfo() -
JMapServerRemoteConnectionPoolInfo
-
JMapServerRemoteConnectionPoolInfo
-
-
Method Details
-
getHost
-
setHost
-
getPort
public int getPort() -
setPort
public void setPort(int port) -
getUsername
-
setUsername
-
getPassword
-
setPassword
-
getName
-
setName
-
getPoolSize
public int getPoolSize() -
setPoolSize
public void setPoolSize(int poolSize) -
getPoolMaxSize
public int getPoolMaxSize() -
setPoolMaxSize
public void setPoolMaxSize(int poolMaxSize) -
getTimeout
public long getTimeout() -
setTimeout
public void setTimeout(long timeout) -
getId
public int getId() -
setId
public void setId(int id) -
getLastException
-
setLastException
-
getStatus
public int getStatus() -
setStatus
public void setStatus(int status) -
clone
-
getConnectionTypeStr
Gets the connection type (direct or proxy) -
setConnectionTypeStr
Sets the connection type (direct or proxy) -
getRecyclePeriod
public long getRecyclePeriod()This method returns the period (milliseconds) to wait before recycling the ConnectionPool connections.- Returns:
- the period in milliseconds
-
setRecyclePeriod
public void setRecyclePeriod(long recyclePeriod) This method sets the period (milliseconds) to wait before recycling the ConnectionPool connections.- Parameters:
recyclePeriod- the recycle period time in milliseconds
-
hashCode
public int hashCode()- Overrides:
hashCodein classJMapObject
-
equals
- Overrides:
equalsin classJMapObject
-
getProxyProtocolStr
Gets the proxy protocol -
setProxyProtocolStr
sets the proxy protocol (http or https) -
getProxyRelativePath
Gets the relative proxy path -
setProxyRelativePath
Sets the relate proxy path -
getProxyPort
public int getProxyPort() -
setProxyPort
public void setProxyPort(int proxyPort) -
toString
-