ponderEnforcement.domainService
Class DomainServiceImpl
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--ponderEnforcement.domainService.DomainServiceImpl
- All Implemented Interfaces:
- DomainServiceRI, java.rmi.Remote, java.io.Serializable
- public class DomainServiceImpl
- extends java.rmi.server.UnicastRemoteObject
- implements DomainServiceRI
Function: The Implementation of the DomainService remote interface
- See Also:
- Serialized Form
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
|
Method Summary |
java.lang.String |
getHost()
Return the host on which this domain server runs |
java.lang.String |
getServerName()
Return the name with which this domain server is bound to RMI |
void |
objectAdded(java.lang.String objDn)
Informs the DomainService that an Object has been added |
void |
objectChanged(java.lang.String objDn,
javax.naming.directory.Attributes attrs)
Informs the DomainService that an Object has been changed
Updates the CopyDB that it maintains |
void |
objectRemoved(java.lang.String objDn)
Informs the DomainService that an Object has been removed
Updates the CopyDB that it maintains |
void |
quit()
Quits. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, 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 |
DomainServiceImpl
public DomainServiceImpl(java.lang.String title)
throws java.rmi.RemoteException
- Constructor
quit
public void quit()
throws java.rmi.RemoteException
- Quits.
Removes the copyDS first
- Specified by:
quit in interface DomainServiceRI
getHost
public java.lang.String getHost()
throws java.rmi.RemoteException
- Return the host on which this domain server runs
- Specified by:
getHost in interface DomainServiceRI
getServerName
public java.lang.String getServerName()
throws java.rmi.RemoteException
- Return the name with which this domain server is bound to RMI
- Specified by:
getServerName in interface DomainServiceRI
objectAdded
public void objectAdded(java.lang.String objDn)
throws java.rmi.RemoteException
- Informs the DomainService that an Object has been added
- Specified by:
objectAdded in interface DomainServiceRI
- Parameters:
objDn - The distinguished name of the object that was added
objectRemoved
public void objectRemoved(java.lang.String objDn)
throws java.rmi.RemoteException
- Informs the DomainService that an Object has been removed
Updates the CopyDB that it maintains
- Specified by:
objectRemoved in interface DomainServiceRI
- Parameters:
objDn - The distinguished name of the object that was added
objectChanged
public void objectChanged(java.lang.String objDn,
javax.naming.directory.Attributes attrs)
throws java.rmi.RemoteException
- Informs the DomainService that an Object has been changed
Updates the CopyDB that it maintains
- Specified by:
objectChanged in interface DomainServiceRI
- Parameters:
objDn - The distinguished name of the object that was changedattrs - The new attributes of the object