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 OAMultiplexerClient |
getMultiplexerClient()
the socket connection to GSMR server.
|
OADataSourceClient |
getOADataSourceClient() |
int |
getPort() |
RemoteClientInterface |
getRemoteClient() |
RemoteClientCallbackInterface |
getRemoteClientCallback() |
OARemoteMultiplexerClient |
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 |
isObjectOnServer(OAObject obj) |
boolean |
isStarted() |
protected void |
logRequest(RequestInfo ri) |
Object |
lookup(String lookupName) |
Object |
lookupBroadcast(String lookupName,
Object callback) |
void |
objectCreated(OAObject obj)
called when object is created.
|
void |
objectFinalized(int guid)
called when object is finalized.
|
void |
objectSentToServer(OAObject obj) |
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 |
start() |
void |
startUpdateThread(int seconds) |
void |
stop()
Sets the stop flag
|
void |
stop(boolean bCallClose) |
void |
updateObjectsWithoutHubs(OAObject obj)
called when object is removed from Hub(s) and could be GC'd on server.
|
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 getRemoteSync() throws Exception
Exception
public RemoteSyncInterface getRemoteSyncImpl() 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 OAMultiplexerClient getMultiplexerClient()
for connection errors
protected void onSocketException(Exception e)
protected void onSocketClose(boolean bError)
public OARemoteMultiplexerClient getRemoteMultiplexerClient()
public int getConnectionId()
protected void afterInvokeRemoteMethod(RequestInfo ri)
protected void logRequest(RequestInfo ri)
public void objectCreated(OAObject obj)
public void objectSentToServer(OAObject obj)
public boolean isObjectOnServer(OAObject obj)
public void objectFinalized(int guid)
public void updateObjectsWithoutHubs(OAObject obj)
public boolean uploadFile(String toFileName, File file) throws Exception
Exception
Copyright © 1999–2025 ViaOA. All rights reserved.