Modifier | Constructor and Description |
---|---|
|
OASyncClient(Package packagex,
String serverHostName,
int serverHostPort) |
protected |
OASyncClient(Package packagex,
String serverHostName,
int serverHostPort,
boolean bUpdateSyncDelegate) |
|
OASyncClient(String serverHostName,
int serverHostPort) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterInvokeRemoteMethod(RequestInfo ri) |
boolean |
downloadFile(String fromFileName,
File file) |
ClientInfo |
getClientInfo() |
int |
getConnectionId() |
Object |
getDetail(OAObject masterObject,
String propertyName)
This is sent to the server using ClientGetDetail, by using a customized objectSerializer
|
String |
getHost() |
protected MultiplexerClient |
getMultiplexerClient()
the socket connection to GSMR server.
|
OADataSourceClient |
getOADataSourceClient() |
int |
getPort() |
RemoteClientInterface |
getRemoteClient() |
RemoteClientCallbackInterface |
getRemoteClientCallback() |
RemoteMultiplexerClient |
getRemoteMultiplexerClient()
allows remote method calls to GSMR server.
|
RemoteServerInterface |
getRemoteServer() |
RemoteSessionInterface |
getRemoteSession() |
RemoteSyncInterface |
getRemoteSync() |
RemoteSyncInterface |
getRemoteSyncImpl() |
boolean |
isConnected()
checks to see if this client has been connected to the GSMR server.
|
boolean |
isStarted() |
protected void |
logRequest(RequestInfo ri) |
Object |
lookup(String lookupName) |
Object |
lookupBroadcast(String lookupName,
Object callback) |
void |
objectRemoved(int guid)
called when object is removed from object cache
called by oaObject.finalize, and removeFromServerSideCache
|
protected void |
onSocketClose(boolean bError) |
protected void |
onSocketException(Exception e)
Called when there is an exception with the real socket.
|
void |
onStopCalled(String title,
String msg) |
void |
removeFromServerCache(int guid)
called when object is removed from object cache
called by oaObject.finalize, and removeFromServerSideCache
|
void |
start() |
void |
startUpdateThread(int seconds) |
void |
stop()
Sets the stop flag
|
void |
stop(boolean bCallClose) |
boolean |
uploadFile(String toFileName,
File file) |
protected static Logger LOG
public OASyncClient(String serverHostName, int serverHostPort)
public void startUpdateThread(int seconds)
public Object getDetail(OAObject masterObject, String propertyName)
masterObject
- propertyName
- public RemoteServerInterface getRemoteServer() throws Exception
Exception
public RemoteSyncInterface getRemoteSyncImpl() throws Exception
Exception
public RemoteSyncInterface getRemoteSync() throws Exception
Exception
public RemoteSessionInterface getRemoteSession() throws Exception
Exception
public RemoteClientCallbackInterface getRemoteClientCallback()
public RemoteClientInterface getRemoteClient() throws Exception
Exception
public Object lookupBroadcast(String lookupName, Object callback) throws Exception
Exception
public ClientInfo getClientInfo()
public OADataSourceClient getOADataSourceClient()
public boolean isStarted()
public boolean isConnected()
public int getPort()
public String getHost()
protected MultiplexerClient getMultiplexerClient()
for connection errors
protected void onSocketException(Exception e)
protected void onSocketClose(boolean bError)
public RemoteMultiplexerClient getRemoteMultiplexerClient()
public int getConnectionId()
protected void afterInvokeRemoteMethod(RequestInfo ri)
protected void logRequest(RequestInfo ri)
public void objectRemoved(int guid)
public void removeFromServerCache(int guid)
public boolean uploadFile(String toFileName, File file) throws Exception
Exception
Copyright © 1999–2019 ViaOA. All rights reserved.