|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.server.DirectServerConnection
public class DirectServerConnection
The DirectServerConnection is an IConnection implementation for
a direct server communication. The calls will be sent to the server without
serialization.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
DirectServerConnection()
Creates a new instance of DirectServerConnection with a new Server instance. |
|
DirectServerConnection(IDirectServer pServer)
Creates a new instance of DirectServerConnection for a IDirectServer implementation. |
|
| Method Summary | |
|---|---|
void |
addCallBackResultListener(ICallBackResultListener pListener)
Adds an ICallBackResultListener to the list of registered listeners. |
void |
addPropertyChangedListener(IConnectionPropertyChangedListener pListener)
Adds an IConnectionPropertyChangedListener to the list of registered listeners. |
java.lang.Object[] |
call(ConnectionInfo pConnectionInfo,
java.lang.String[] pObjectName,
java.lang.String[] pMethod,
java.lang.Object[][] pParams,
ICallBackListener[] pCallBack)
Calls desired methods from a remote server object. |
void |
close(ConnectionInfo pConnectionInfo)
Close the connection to the server. |
java.util.Hashtable<java.lang.String,java.lang.Object> |
getProperties(ConnectionInfo pConnectionInfo)
Gets a clone of all connection properties. |
java.lang.Object |
getProperty(ConnectionInfo pConnectionInfo,
java.lang.String pName)
Gets a connection property. |
boolean |
isCalling()
Gets whether a call is active. |
boolean |
isOpen(ConnectionInfo pConnectionInfo)
Checks if the connection to the server is opened. |
void |
open(ConnectionInfo pConnectionInfo)
Opens the connection to the server. |
void |
openSub(ConnectionInfo pConnectionInfo,
ConnectionInfo pConnectionInfoSub)
Opens a new sub connection. |
void |
removeCallBackResultListener(ICallBackResultListener pListener)
Removes an ICallBackResultListener from the list of registered listeners. |
void |
removePropertyChangedListener(IConnectionPropertyChangedListener pListener)
Removes an IConnectionPropertyChangedListener from the list of registered listeners. |
ConnectionInfo[] |
setAndCheckAlive(ConnectionInfo pConnectionInfo,
ConnectionInfo[] pSubConnections)
Sets the alive state for a connection, on the server, and validates the alive state of subconnections. |
void |
setNewPassword(ConnectionInfo pConnectionInfo,
java.lang.String pOldPassword,
java.lang.String pNewPassword)
Sets a new password for the connected user. |
void |
setProperty(ConnectionInfo pConnectionInfo,
java.lang.String pName,
java.lang.Object pValue)
Sets a connection property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectServerConnection()
DirectServerConnection with a new Server instance.
public DirectServerConnection(IDirectServer pServer)
DirectServerConnection for a IDirectServer implementation.
pServer - the server| Method Detail |
|---|
public void open(ConnectionInfo pConnectionInfo)
throws java.lang.Throwable
open in interface IConnectionpConnectionInfo - the connection information
java.lang.Throwable - if the connection can not be established
public void openSub(ConnectionInfo pConnectionInfo,
ConnectionInfo pConnectionInfoSub)
throws java.lang.Throwable
openSub in interface IConnectionpConnectionInfo - the connection information of the master connectionpConnectionInfoSub - the connection information of the sub connection
java.lang.Throwable - communication error, security checks, invalid method, ...public boolean isOpen(ConnectionInfo pConnectionInfo)
isOpen in interface IConnectionpConnectionInfo - the connection information
public void close(ConnectionInfo pConnectionInfo)
throws java.lang.Throwable
close in interface IConnectionpConnectionInfo - the connection information
java.lang.Throwable - if the connection can not be established
public java.lang.Object[] call(ConnectionInfo pConnectionInfo,
java.lang.String[] pObjectName,
java.lang.String[] pMethod,
java.lang.Object[][] pParams,
ICallBackListener[] pCallBack)
throws java.lang.Throwable
call in interface IConnectionpConnectionInfo - the connection informationpObjectName - list of server object names/aliasespMethod - method names which should be calledpParams - parameters for the method callspCallBack - callback listeners for asynchronous or null for synchronous calls
java.lang.Throwable - communication error, security checks, invalid method, ...public boolean isCalling()
isCalling in interface IConnectiontrue if a call is active, false otherwise
public ConnectionInfo[] setAndCheckAlive(ConnectionInfo pConnectionInfo,
ConnectionInfo[] pSubConnections)
throws java.lang.Throwable
setAndCheckAlive in interface IConnectionpConnectionInfo - the connection informationpSubConnections - the connection information of the sub connections, for the alive validation
java.lang.Throwable - communication error, security checks, invalid method, ...
public void setProperty(ConnectionInfo pConnectionInfo,
java.lang.String pName,
java.lang.Object pValue)
throws java.lang.Throwable
setProperty in interface IConnectionpConnectionInfo - the connection informationpName - the property namepValue - the value of the property or null to delete the property
java.lang.Throwable - communication error, security checks, invalid method, ...
java.lang.SecurityException - if it's not allowed to set the property
public java.lang.Object getProperty(ConnectionInfo pConnectionInfo,
java.lang.String pName)
throws java.lang.Throwable
getProperty in interface IConnectionpConnectionInfo - the connection informationpName - the property name
null if the property is not set
java.lang.Throwable - communication error, security checks, invalid method, ...
public java.util.Hashtable<java.lang.String,java.lang.Object> getProperties(ConnectionInfo pConnectionInfo)
throws java.lang.Throwable
getProperties in interface IConnectionpConnectionInfo - the connection information
Hashtable with property names and values
java.lang.Throwable - communication error, security checks, invalid method, ...
public void setNewPassword(ConnectionInfo pConnectionInfo,
java.lang.String pOldPassword,
java.lang.String pNewPassword)
throws java.lang.Throwable
setNewPassword in interface IConnectionpConnectionInfo - the connection informationpOldPassword - the old passwordpNewPassword - the new password
java.lang.Throwable - communication error, security checks, invalid method, ...public void addPropertyChangedListener(IConnectionPropertyChangedListener pListener)
IConnectionPropertyChangedListener to the list of registered listeners.
addPropertyChangedListener in interface IConnectionpListener - the new property changed listener.public void removePropertyChangedListener(IConnectionPropertyChangedListener pListener)
IConnectionPropertyChangedListener from the list of registered listeners.
removePropertyChangedListener in interface IConnectionpListener - the property changed listener to removepublic void addCallBackResultListener(ICallBackResultListener pListener)
ICallBackResultListener to the list of registered listeners.
addCallBackResultListener in interface IConnectionpListener - the new callback result listener.public void removeCallBackResultListener(ICallBackResultListener pListener)
ICallBackResultListener from the list of registered listeners.
removeCallBackResultListener in interface IConnectionpListener - the callback result listener to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||