public interface RemoteClient
LogonManager.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDefaultCharset()
Returns the default character set of this client as specified by
Charset.defaultCharset().name(). |
java.util.Locale |
getDefaultLocale()
Returns the default locale of this client as specified by
Locale.getDefault(). |
java.lang.String |
getJavaVersion()
Returns the version of the running Java Virtual Machine of the client as
specified by
System.getProperty("java.version"). |
RichAgent[] |
getLoggedOnAgents()
Returns the agents that are currently logged on this client.
|
java.lang.String |
getOperatingSystemArchitecture()
Returns the architecture of the operating system of the client as specified
by
System.getProperty("os.arch"). |
java.lang.String |
getOperatingSystemName()
Returns the name of the operating system of the client as specified by
System.getProperty("os.name"). |
java.lang.String |
getOperatingSystemVersion()
Returns the version of the operating system of the client as specified by
System.getProperty("os.version"). |
java.util.Map<RichAgent,java.net.URI[]> |
getRuntimeManagerURIs()
Returns the runtime managers that are currently available on this client.
|
java.util.Locale |
getUsedLocale(RichAgent agent)
Returns the locale which the designated agent has chosen on this client.
|
long |
ping()
Checks whether the client is still available, that is, it may receive requests.
|
void |
serverReturned(java.lang.String serverName,
java.net.URI[] serverURIs)
Notifies this client (if it has not shutdown itself) that the designated
server is running again.
|
void |
serverShutdown(java.lang.String serverName,
java.net.URI[] serverURIs,
long shutdownTime,
long estimatedDowntime)
Notifies this client that the designated server will be down in the
designated period and for the estimated downtime.
|
long ping()
0 indicates a client
that has not been started yet, -1 indicates that the client has been shut down.
Unavailability of the client is usually signalled via an IOException.0 for a client that has not been started,
-1 for service that has been shut down. boolean logic use 0 < ping().java.lang.String getOperatingSystemName()
System.getProperty("os.name").System.getProperty("os.name").java.lang.String getOperatingSystemVersion()
System.getProperty("os.version").System.getProperty("os.version").java.lang.String getOperatingSystemArchitecture()
System.getProperty("os.arch").System.getProperty("os.arch").java.lang.String getJavaVersion()
System.getProperty("java.version").System.getProperty("java.version").java.util.Locale getUsedLocale(RichAgent agent)
locale of the agent is used.agent - The agent for whom to retrieve the configured language.null in case the designated agent is not logged on.java.util.Locale getDefaultLocale()
Locale.getDefault().Locale.getDefault().java.lang.String getDefaultCharset()
Charset.defaultCharset().name().Charset.defaultCharset().name().RichAgent[] getLoggedOnAgents()
java.util.Map<RichAgent,java.net.URI[]> getRuntimeManagerURIs()
void serverShutdown(java.lang.String serverName,
java.net.URI[] serverURIs,
long shutdownTime,
long estimatedDowntime)
serverName - The logical name of the server to identify the return of
the server.serverURIs - The URIs of the server which is shutdown and which are
invalidshutdownTime - The time period when the server will be shut down.
Until then it still accepts requests, for instance to allow
clients to logoff.estimatedDowntime - The estimated duration for the downtime of the
designated server.serverReturned(String, URI[])void serverReturned(java.lang.String serverName,
java.net.URI[] serverURIs)
serverName - The logical name of the server to identify the
corresponding shutdown.serverURIs - The (new) URIs of the server which should be used from
now on.