|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gridsystems.innergrid.api.AbstractConnection com.gridsystems.innergrid.api.DirectConnection
public class DirectConnection
Connects to a single server.
Used when connecting to a Server that has no backup Server (redundant).
Field Summary |
---|
Fields inherited from class com.gridsystems.innergrid.api.AbstractConnection |
---|
attachmentFormat, chunkedTransferEnabled, connChecked, contextPath, credentials, DEFAULT_RETRIES, host, keepAliveEnabled, port, retries, secured, sslInfo, sync, timeout |
Fields inherited from interface com.gridsystems.innergrid.api.Connection |
---|
DEFAULT_TIMEOUT, DIME, MIME, MTOM |
Constructor Summary | |
---|---|
DirectConnection(java.lang.String h,
int p,
boolean secure,
Credentials credentials)
Creates an instance of the connection to the specified host:port ,
using the specified credentials. |
|
DirectConnection(java.lang.String h,
int p,
boolean secure,
SSLConnectionInfo sslInfo,
Credentials credentials)
Creates an instance of the connector to the specified host:port ,
using the specified credentials. |
|
DirectConnection(java.lang.String h,
int p,
boolean secure,
java.lang.String contextPath,
SSLConnectionInfo sslInfo,
Credentials credentials)
Creates an instance of the connector to the specified host:port ,
using the specified credentials. |
|
DirectConnection(java.lang.String h,
int p,
SSLConnectionInfo sslinfo,
Credentials credentials)
Creates an instance of the connection to the specified host:port ,
using the specified credentials. |
Method Summary | |
---|---|
void |
close()
Disposes the object and releases kept resources. |
java.lang.String |
getBaseUrl()
Gets the base URL for all API URLs (Internal use only). |
void |
manageException(KernelException ke,
int retry)
Manages exceptions (Internal use only). |
void |
success()
Notifies to the Connection instance that the target API has been reached. |
Methods inherited from class com.gridsystems.innergrid.api.AbstractConnection |
---|
checkConnection, clearChecks, getAttachmentFormat, getContextPath, getCredentials, getHost, getPort, getRetries, getSSLConnectionInfo, getTimeout, getUrl, isChunkedTransferEnabled, isKeepAliveEnabled, isSecured, setAttachmentFormat, setChunkedTransferEnabled, setContextPath, setKeepAliveEnabled, setRetries, setTimeout |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectConnection(java.lang.String h, int p, boolean secure, Credentials credentials)
host:port
,
using the specified credentials.
h
- a string with the remote Server host name or addressp
- the remote Server portsecure
- a boolean set to true
if a secure protocol(HTTPS)
must be used; false
otherwisecredentials
- the credentials to authenticate the userpublic DirectConnection(java.lang.String h, int p, SSLConnectionInfo sslinfo, Credentials credentials)
host:port
,
using the specified credentials. The port must accept SSL connections.
h
- a string with the remote Server host name or addressp
- the remote Server portsslinfo
- additional info to establish SSL connectionscredentials
- the credentials to authenticate the userAcceptAllCertificates
,
AcceptCertificate
,
AcceptCertificateOfKeyStore
,
AcceptCertificateOfSystemKeyStore
public DirectConnection(java.lang.String h, int p, boolean secure, SSLConnectionInfo sslInfo, Credentials credentials)
host:port
,
using the specified credentials.
h
- a string with the remote Server host name or addressp
- the remote Server portsecure
- a boolean set to true
if a secure protocol(HTTPS)
must be used; false
otherwisesslInfo
- additional info to establish SSL connectioncredentials
- the credentials to authenticate the userAcceptAllCertificates
,
AcceptCertificate
,
AcceptCertificateOfKeyStore
,
AcceptCertificateOfSystemKeyStore
public DirectConnection(java.lang.String h, int p, boolean secure, java.lang.String contextPath, SSLConnectionInfo sslInfo, Credentials credentials)
host:port
,
using the specified credentials.
h
- a string with the remote Server host name or addressp
- the remote Server portsecure
- a boolean set to true
if a secure protocol(HTTPS)
must be used; false
otherwisecontextPath
- Service context pathsslInfo
- additional info to establish SSL connectioncredentials
- the credentials to authenticate the userAcceptAllCertificates
,
AcceptCertificate
,
AcceptCertificateOfKeyStore
,
AcceptCertificateOfSystemKeyStore
Method Detail |
---|
public void close()
public java.lang.String getBaseUrl() throws KernelException
getBaseUrl
in class AbstractConnection
KernelException
- CTL008
if the URL is not well formedpublic void manageException(KernelException ke, int retry) throws KernelException
manageException
in interface Connection
manageException
in class AbstractConnection
ke
- KernelException capturedretry
- number of retries
KernelException
- the ke
exception if it passes along the
exception without managingpublic void success()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |