|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--com.sas.services.AbstractRemoteService
|
+--com.sas.services.AbstractService
Abstract implementation of a service. A service may extend this implementation if it is only intended to be used within a local JVM process.
This class extends
com.sas.services.AbstractRemoteService
which provides a version that may be used
used in a distributed environment where the service needs to be made
available to remote clients.
Methods specified in this local version do not throw
RemoteException.
ServiceConfigurationInterface| Fields inherited from interface com.sas.services.RemoteServiceInterface |
CLASS_IDENTIFIER |
| Constructor Summary | |
AbstractService()
Constructs a default instance. |
|
| Method Summary | |
void |
configure(ServiceConfigurationInterface serviceConfiguration)
Configures the service. |
void |
destroy()
Destroys the service. |
long |
getCreationTime()
Gets the time at which this configuration was created. |
String |
getEntityKey()
Gets the service's entity key. |
ServiceConfigurationInterface |
getServiceConfiguration()
Gets this service's configuration. |
short |
getServiceState()
Gets the service's state. |
boolean |
isAccessibleToRemoteClients()
Determines whether or not the service is accessible to remote clients. |
boolean |
isExported()
Determines whether or not the service has been exported to the RMI system. |
void |
setServiceState(ServiceState serviceState)
Sets the service's state. |
| Methods inherited from class com.sas.services.AbstractRemoteService |
addServiceObserver, getServiceConfiguration, getServiceProxy, notifyServiceObservers, removeAllServiceObservers, removeServiceObserver, sameEntity, setEntityKey, setRemoteableExporter, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbstractService()
| Method Detail |
public final ServiceConfigurationInterface getServiceConfiguration()
AbstractRemoteServiceThe service's configuration can always be retrieved irregardless of the service's state.
getServiceConfiguration in class AbstractRemoteServicecom.sas.services.AbstractRemoteServiceRemoteException - if a network anomaly occurs.
public void configure(ServiceConfigurationInterface serviceConfiguration)
throws InitializationException,
ServiceException
AbstractRemoteServiceconfigure in class AbstractRemoteServicecom.sas.services.AbstractRemoteServiceserviceConfiguration - Service's configuration.InitializationException - in unable to configure the service.ServiceException - if a service exception is encountered.RemoteException - if a network anomaly occurs.public short getServiceState()
AbstractRemoteServicegetServiceState in class AbstractRemoteServicecom.sas.services.AbstractRemoteServiceRemoteException - if a network anomaly occurs.
public void setServiceState(ServiceState serviceState)
throws ServiceException,
RemoteException
AbstractRemoteServicesetServiceState in class AbstractRemoteServicecom.sas.services.AbstractRemoteServiceserviceState - Service's new state.ServiceException - if unable to process the request.RemoteException - if a network anomaly occurs.public long getCreationTime()
getCreationTime in class AbstractRemoteService0 if the time can't be determined.
public boolean isExported()
throws ServiceException
isExported in class AbstractRemoteServicetrue if the service has been exported or
false if it hasn't.ServiceException - if unable to process the request.
public boolean isAccessibleToRemoteClients()
throws ServiceException
isAccessibleToRemoteClients in class AbstractRemoteServicetrue if the service is intended to be accessible
to remote clients or
false if it isn't.ServiceException - if unable to process the request.public String getEntityKey()
getEntityKey in class AbstractRemoteServicenull if unable to determine
the entity key.IllegalStateException - if the service has been destroyed.AbstractRemoteService.getEntityKey()
public void destroy()
throws ServiceException
destroy in class AbstractRemoteServiceServiceException - if unable to cleanly destroy the service.
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||