|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kwebs.client.AbstractLayoutServiceClient
public abstract class AbstractLayoutServiceClient
Abstract base implementation of the ILayoutServiceClient
interface.
This class provides basic infrastructure for managing the connection between a client
and the layout service without using a concrete web service architecture. Architecture specific
methods still have to be implemented by a concrete web service client.
Constructor Summary | |
---|---|
protected |
AbstractLayoutServiceClient()
Protected constructor. |
protected |
AbstractLayoutServiceClient(ServerConfigData theserverConfig)
Creates a new instance. |
Method Summary | |
---|---|
Throwable |
getLastError()
Returns the last error occurred. |
String[] |
getLastErrorAsStringArray()
Returns a string array containing the messages of the the last exception occurred. |
ServerConfigData |
getServerConfig()
Returns the ServerConfigData this client currently points to. |
boolean |
isAvailable()
This base implementation does not really check for availability but always returns true . |
void |
setLastError(Throwable thelastError)
Sets the last error occurred. |
void |
setServerConfig(ServerConfigData theserverConfig)
Sets a new ServerConfigData this client points to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.cau.cs.kieler.kwebs.client.ILayoutServiceClient |
---|
connect, disconnect, getPreviewImage, getServiceData, graphLayout, isConnected |
Constructor Detail |
---|
protected AbstractLayoutServiceClient()
protected AbstractLayoutServiceClient(ServerConfigData theserverConfig)
theserverConfig
- the ServerConfigData
of the layout service to be usedMethod Detail |
---|
public boolean isAvailable()
true
. The only way to check for availability at this point is to check whether the
given server address answers to a ping. Since many fire walls filter a ping this is not an
adequate way to check for availability. Protocol specific implementations may override if
they have more specific ways to check for availability.
isAvailable
in interface ILayoutServiceClient
public final ServerConfigData getServerConfig()
ServerConfigData
this client currently points to.
getServerConfig
in interface ILayoutServiceClient
public void setServerConfig(ServerConfigData theserverConfig)
ServerConfigData
this client points to.
Resets the state of this client to disconnected.
setServerConfig
in interface ILayoutServiceClient
theserverConfig
- the new server configurationpublic String[] getLastErrorAsStringArray()
getLastErrorAsStringArray
in interface ILayoutServiceClient
null
if everything went finepublic Throwable getLastError()
getLastError
in interface ILayoutServiceClient
null
if everything went finepublic void setLastError(Throwable thelastError)
setLastError
in interface ILayoutServiceClient
thelastError
- the last error occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |