ponderEnforcement.ponderMC
Interface PonderMC

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
PonderMCimpl

public interface PonderMC
extends java.rmi.Remote

Function: The Ponder Management Component remote Interface


Method Summary
 void disableOblig(java.lang.String policyName)
          disable an obligation policy object
 void disableRefrain(java.lang.String policyName)
          disable a refrain policy object
 void enableOblig(java.lang.String policyName)
          enable an obligation policy object
 void enableRefrain(java.lang.String policyName)
          enable a refrain policy object
 java.lang.String getID()
          Returns the Unique Id of the PMC.
 java.util.Vector getObligsInfo()
          Returns information about the obligation policies loaded in the PMC
 java.util.Vector getRefrainsInfo()
          Returns information about the refrain policies loaded in the PMC
 void load(java.lang.String policyName, ObligationI obligation)
          load an obligation policy object
 void load(java.lang.String policyName, RefrainI refrain)
          load a refrain policy object
 void loadAction(PmcAction action)
          Loads a new PmcAction object in the PMC
 void setDirName(java.lang.String newDirName)
          Set the directory location where the PMC is bound.
 void stopMC()
          Stop the execution of the management component
 void unloadOblig(java.lang.String policyName)
          unload an obligation policy object
 void unloadRefrain(java.lang.String policyName)
          unload a refrain policy object
 void writeClass(java.lang.String className, byte[] classBytes)
          write Class locally
 

Method Detail

load

public void load(java.lang.String policyName,
                 ObligationI obligation)
          throws java.rmi.RemoteException
load an obligation policy object
Parameters:
policyName - The name of the policy to load
obligation - The obligation policy object to load

load

public void load(java.lang.String policyName,
                 RefrainI refrain)
          throws java.rmi.RemoteException
load a refrain policy object
Parameters:
policyName - The name of the policy to load
refrain - The refrain policy object to load

unloadOblig

public void unloadOblig(java.lang.String policyName)
                 throws java.rmi.RemoteException
unload an obligation policy object
Parameters:
policyName - The name of the obligation policy to unload

unloadRefrain

public void unloadRefrain(java.lang.String policyName)
                   throws java.rmi.RemoteException
unload a refrain policy object
Parameters:
policyName - The name of the refrain policy to unload

enableOblig

public void enableOblig(java.lang.String policyName)
                 throws java.rmi.RemoteException
enable an obligation policy object
Parameters:
policyName - The name of the obligation policy to enable

enableRefrain

public void enableRefrain(java.lang.String policyName)
                   throws java.rmi.RemoteException
enable a refrain policy object
Parameters:
policyName - The name of the refrain policy to enable

disableOblig

public void disableOblig(java.lang.String policyName)
                  throws java.rmi.RemoteException
disable an obligation policy object
Parameters:
policyName - The name of the obligation policy to disable

disableRefrain

public void disableRefrain(java.lang.String policyName)
                    throws java.rmi.RemoteException
disable a refrain policy object
Parameters:
policyName - The name of the refrain policy to disable

getObligsInfo

public java.util.Vector getObligsInfo()
                               throws java.rmi.RemoteException
Returns information about the obligation policies loaded in the PMC
Returns:
A Vector of ponderToolkit.utilities.policy.ObligInfo objects

getRefrainsInfo

public java.util.Vector getRefrainsInfo()
                                 throws java.rmi.RemoteException
Returns information about the refrain policies loaded in the PMC
Returns:
A Vector of ponderToolkit.utilities.policy.RefrainInfo objects

stopMC

public void stopMC()
            throws java.rmi.RemoteException
Stop the execution of the management component

setDirName

public void setDirName(java.lang.String newDirName)
                throws java.rmi.RemoteException
Set the directory location where the PMC is bound. Needed in case it is run as standalone
Parameters:
newDirName - The name in the Ldap Directory

getID

public java.lang.String getID()
                       throws java.rmi.RemoteException
Returns the Unique Id of the PMC. The unique ID is the RMI-name
Returns:
The RMI-bind name of the PMC object

loadAction

public void loadAction(PmcAction action)
                throws java.rmi.RemoteException
Loads a new PmcAction object in the PMC
Parameters:
action - The PmcAction object to load

writeClass

public void writeClass(java.lang.String className,
                       byte[] classBytes)
                throws java.rmi.RemoteException
write Class locally