ponderEnforcement.policyService
Class PolicyServiceImpl

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--ponderEnforcement.policyService.PolicyServiceImpl
All Implemented Interfaces:
PolicyServiceRI, java.rmi.Remote, java.io.Serializable

public class PolicyServiceImpl
extends java.rmi.server.UnicastRemoteObject
implements PolicyServiceRI

Function: The Implementation of the PolicyService remote interface. The Remote object for PolicyService only provides the functionality to start Policy objects. The PolicyService is only responsible for creating controlObjects and maintaining a reference to them. For all the other operations, the necessary abstractions are provided by the LocalPolicyService

See Also:
Serialized Form

Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
PolicyServiceImpl(java.lang.String title)
          Constructor
 
Method Summary
 java.lang.String getHost()
          Return the host on which this policy server runs
 java.lang.String getServerName()
          Return the name with which this policy server is bound to RMI
 void quit()
          Quits.
 BasicPolControlObject startPolicy(java.lang.String policyName, java.lang.String domain)
          Start a Policy Instance.
 RoleControlObject startRole(java.lang.String roleName, java.lang.String domain)
          Start a Role Instance.
 void stopPolicy(java.lang.String polDomainName)
          Stop a Policy.
 
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
 

Constructor Detail

PolicyServiceImpl

public PolicyServiceImpl(java.lang.String title)
                  throws java.rmi.RemoteException
Constructor
Method Detail

getHost

public java.lang.String getHost()
Return the host on which this policy server runs

getServerName

public java.lang.String getServerName()
Return the name with which this policy server is bound to RMI

quit

public void quit()
          throws java.rmi.RemoteException
Quits.
Specified by:
quit in interface PolicyServiceRI

startPolicy

public BasicPolControlObject startPolicy(java.lang.String policyName,
                                         java.lang.String domain)
                                  throws java.rmi.RemoteException
Start a Policy Instance. The caller is needed to send it back the Control Object created The caller is a Management Console Remote Object
Specified by:
startPolicy in interface PolicyServiceRI
Parameters:
polName - The name of the policy
domain - The domain path of the policy
Returns:
a BasicPolControlObject

startRole

public RoleControlObject startRole(java.lang.String roleName,
                                   java.lang.String domain)
                            throws java.rmi.RemoteException
Start a Role Instance.
Specified by:
startRole in interface PolicyServiceRI
Parameters:
roleName - The name of the role
domain - The domain path of the role
Returns:
a RoleControlObject

stopPolicy

public void stopPolicy(java.lang.String polDomainName)
                throws java.rmi.RemoteException
Stop a Policy. 1. Delete the ControlObject that represents it. 2. Update the controlObjectRef for the policy entry
Specified by:
stopPolicy in interface PolicyServiceRI
Parameters:
polDomainName - The ponder domain name of the policy