private class TestStorageServer.StorageSkeleton extends Skeleton<Storage>
This class overrides the listen_error
and
service_error
to fail the test when a top-level exception
occurs in either the listening thread or one of the service threads.
Constructor and Description |
---|
StorageSkeleton()
Creates the client interface skeleton.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
listen_error(java.lang.Exception e)
Fails the test when an exception occurs in the listening thread.
|
protected void |
service_error(RMIException e)
Fails the test when an exception occurs in a service thread.
|
protected boolean listen_error(java.lang.Exception e)
listen_error
in class Skeleton<Storage>
e
- The exception that occurred.true
if the server is to resume accepting
connections, false
if the server is to shut down.protected void service_error(RMIException e)
service_error
in class Skeleton<Storage>
e
- The exception that occurred.