Class ECaccessProvider
- All Implemented Interfaces:
ProviderInterface,RemoteServer,MBeanListener,MBeanService,MonitorCallback,ToBeStarted,Serializable,Remote
- Direct Known Subclasses:
MasterServer
public abstract class ECaccessProvider
extends ECaccessServer
implements ProviderInterface, MonitorCallback
The Class ECaccessProvider.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classThe Class ProviderMBean. -
Field Summary
Fields inherited from class java.rmi.server.RemoteObject
ref -
Constructor Summary
ConstructorsConstructorDescriptionECaccessProvider(DataBase dataBase, Starter starter) Instantiates a new ecaccess provider. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRoot(ClientInterface access, String host, String root, String service) Adds the root.booleanexistsClientInterface(String root, String service) Check if a client interface is registered.<T extends ClientInterface>
TgetClientInterface(String name, Class<T> clazz) Gets the client interface.<T extends ClientInterface>
TgetClientInterface(String root, String service, Class<T> clazz) Gets the client interface.Gets the client interfaces.Gets the client interfaces.getMonitorManager(String name) Gets the monitor manager.longisRegistred(String root, String service) Checks if it is registred.longlastUpdateForClientInterface(String root, String service) Get the last update from the client interface.voidremoveExpired(String root, String service) Removes the expired root.voidshutdown()Shutdown.longsubscribe(ClientInterface access) Subscribe.Methods inherited from class ecmwf.common.ecaccess.ECaccessServer
getAttribute, getDataBase, getDataBase, getECUser, getMBeanInfo, handleECuserUpdate, importECUser, invoke, isRegistredUser, newActivity, newActivity, newEvent, purgeDataBase, purgeDataBase, setAttribute, updateECUser, updateECUsersMethods inherited from class ecmwf.common.ecaccess.StarterServer
exit, getGraceful, getInstance, getInstance, getMBeanCenter, getPluginContainer, getPluginInfos, getRemoteCnf, getRestart, getStartDate, getVersion, handle, handle, handleNotification, shutdownMethods inherited from class ecmwf.common.callback.CallBackObject
createOrGetRegistry, getPortMethods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObjectMethods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLogMethods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStubMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ecmwf.common.ecaccess.ProviderInterface
isAvailable
-
Constructor Details
-
ECaccessProvider
public ECaccessProvider(DataBase dataBase, Starter starter) throws SQLException, IOException, IllegalAccessException, InstantiationException, ClassNotFoundException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException, MalformedObjectNameException, InstanceNotFoundException, DataBaseException Instantiates a new ecaccess provider.- Parameters:
dataBase- the data basestarter- the starter- Throws:
SQLException- the SQL exceptionIOException- Signals that an I/O exception has occurred.IllegalAccessException- the illegal access exceptionInstantiationException- the instantiation exceptionClassNotFoundException- the class not found exceptionInstanceAlreadyExistsException- the instance already exists exceptionMBeanRegistrationException- the MBean registration exceptionNotCompliantMBeanException- the not compliant m bean exceptionMalformedObjectNameException- the malformed object name exceptionInstanceNotFoundException- the instance not found exceptionDataBaseException- the data base exception
-
-
Method Details
-
getClientRoots
-
getClientInterfaces
Gets the client interfaces.- Returns:
- the client interfaces
-
getClientInterface
Gets the client interface.- Type Parameters:
T- the generic type- Parameters:
name- the nameclazz- the clazz- Returns:
- the client interface
-
getClientInterface
public <T extends ClientInterface> T getClientInterface(String root, String service, Class<T> clazz) Gets the client interface.- Type Parameters:
T- the generic type- Parameters:
root- the rootservice- the serviceclazz- the clazz- Returns:
- the client interface
-
existsClientInterface
-
lastUpdateForClientInterface
-
shutdown
public void shutdown()Shutdown. Shutdown. Shutdown. Shutdown.- Specified by:
shutdownin interfaceToBeStarted- Overrides:
shutdownin classECaccessServer
-
subscribe
Subscribe. Subscribe.- Specified by:
subscribein interfaceProviderInterface- Parameters:
access- the access- Returns:
- the long
- Throws:
RemoteException- the remote exceptionConnectionException- the connection exception
-
getMonitorManager
Gets the monitor manager. Gets the monitor manager.- Specified by:
getMonitorManagerin interfaceMonitorCallback- Parameters:
name- the name- Returns:
- the monitor manager
- Throws:
MonitorException- the monitor exception
-
addRoot
Adds the root.- Parameters:
access- the accesshost- the hostroot- the rootservice- the service
-
removeExpired
-
isRegistred
Checks if it is registred. Checks if is registred.- Specified by:
isRegistredin interfaceProviderInterface- Parameters:
root- the rootservice- the service- Returns:
- the long
-