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 class
The 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 TypeMethodDescriptionvoid
addRoot
(ClientInterface access, String host, String root, String service) Adds the root.boolean
existsClientInterface
(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.long
isRegistred
(String root, String service) Checks if it is registred.long
lastUpdateForClientInterface
(String root, String service) Get the last update from the client interface.void
removeExpired
(String root, String service) Removes the expired root.void
shutdown()
Shutdown.long
subscribe
(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, updateECUsers
Methods inherited from class ecmwf.common.ecaccess.StarterServer
exit, getGraceful, getInstance, getInstance, getMBeanCenter, getPluginContainer, getPluginInfos, getRemoteCnf, getRestart, getStartDate, getVersion, handle, handle, handleNotification, shutdown
Methods inherited from class ecmwf.common.callback.CallBackObject
createOrGetRegistry, getPort
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
shutdown
in interfaceToBeStarted
- Overrides:
shutdown
in classECaccessServer
-
subscribe
Subscribe. Subscribe.- Specified by:
subscribe
in 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:
getMonitorManager
in 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:
isRegistred
in interfaceProviderInterface
- Parameters:
root
- the rootservice
- the service- Returns:
- the long
-