public class PMService extends AppService implements PMServiceRemote
currentState, dbManager, INIT, liveObjCount, load, LOAD, mxServer, name, RUN, running, stateCmdList, stateList, STOP, urlcrtPARENTAPPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix| Constructor and Description | 
|---|
| PMService()Constructor | 
| PMService(MXServer mxServer)Constructor with a MXServer | 
| Modifier and Type | Method and Description | 
|---|---|
| void | changeStatus(PM pm,
            java.lang.String status,
            boolean rollToAllChildren)Service method used to change preventive maintenance status. | 
| void | destroy()Destroy the PMListener. | 
| PMSetRemote | generateWork(UserInfo ui,
            java.util.Enumeration enumit,
            boolean useFreq,
            int leadtime)Deprecated. 
 | 
| void | generateWorkNoPMSetReturn(UserInfo ui,
                         java.util.Enumeration enumit,
                         boolean useFreq,
                         int leadtime)Generates work orders for the PMs enumerated by their key values. | 
| void | generateWorkNoPMSetReturn(UserInfo ui,
                         java.util.Enumeration enumit,
                         boolean useFreq,
                         int leadtime,
                         java.lang.String repairFac,
                         java.lang.String repSite,
                         boolean useAssetDef)Generates work orders for the PMs enumerated by their key values. | 
| PMSetRemote | genPMsFromMasterAsset(AssetRemote myAssetMbo)Method to generate PMs from master PMs for a given asset. | 
| protected PM | getTopMostPMinHier(PM pmMbo)Gets the topmost (in the whole hierarchy) mbo for a given PM in its hierarchy | 
| void | init()Initialization | 
| void | initCriteriaList(java.util.Hashtable criteriaTable)This method defines the criteria for PMService. | 
| void | meterBasedAutoWogen(MboRemote assetlocMbo) | 
| void | meterBasedAutoWogen(MboRemote assetlocMbo,
                   MboRemote assetLocMeterMbo)Auto generation of workorders based on the changes to the Asset meter readings,
 or location meter readings.This method will be called from the Asset module or
 Location module. | 
checkSecurity, configure, freeDBConnection, freeMboSet, getCriteria, getCriteriaList, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, isAppService, isRunning, isSingletonService, restart, setName, setProxy, setRunning, setURL, verifyUser, verifyUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUserisAppService, isSingletonService, restartpublic PMService()
          throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic PMService(MXServer mxServer) throws java.rmi.RemoteException
mxServer - the "Server Environment" this Service is being created in.java.rmi.RemoteExceptionpublic void init()
init in interface Serviceinit in class AppServiceStarts up this listenerpublic void destroy()
destroy in interface Servicedestroy in class AppServiceAppService.destroy()public PMSetRemote genPMsFromMasterAsset(AssetRemote myAssetMbo) throws MXException, java.rmi.RemoteException
genPMsFromMasterAsset in interface PMServiceRemotemyAssetMbo - The piece of asset for which PMs are being generatedMXExceptionjava.rmi.RemoteExceptionpublic void initCriteriaList(java.util.Hashtable criteriaTable)
                      throws MXException,
                             java.rmi.RemoteException
initCriteriaList in class AppServicecriteriaTable - MXExceptionjava.rmi.RemoteExceptionpublic PMSetRemote generateWork(UserInfo ui, java.util.Enumeration enumit, boolean useFreq, int leadtime) throws MXException, java.rmi.RemoteException
generateWorkNoReturn(UserInfo, Enumeration, boolean, int).generateWork in interface PMServiceRemoteui - The UserInfo used to create the PMSet.enumit - The Enumeration containing elements of String[] - The keys for the PMs.useFreq - Flag indicating whether to use frequency criteria.leadtime - Days ahead to generate for.MXExceptionjava.rmi.RemoteExceptionThis method is called to create the work orders., 
PMService.generateWorkNoPMSetReturn(UserInfo, Enumeration, boolean, int)public void generateWorkNoPMSetReturn(UserInfo ui, java.util.Enumeration enumit, boolean useFreq, int leadtime) throws MXException, java.rmi.RemoteException
generateWork(UserInfo, Enumeration, boolean, int) in that it cleans up the PMSet
 for which work order generation has been processed rather that returning that set.
 This results in improved memory management. Messages are processed on MXServer instead
 of on the PMSet.generateWorkNoPMSetReturn in interface PMServiceRemoteui - The UserInfo used to create the PMSet.enumit - The Enumeration containing elements of String[] - The keys for the PMs.useFreq - Flag indicating whether to use frequency criteria.leadtime - Days ahead to generate for.MXExceptionjava.rmi.RemoteExceptionThis method is called to create the work orders., 
PMService.generateWork(UserInfo, Enumeration, boolean, int)public void generateWorkNoPMSetReturn(UserInfo ui, java.util.Enumeration enumit, boolean useFreq, int leadtime, java.lang.String repairFac, java.lang.String repSite, boolean useAssetDef) throws MXException, java.rmi.RemoteException
generateWork(UserInfo, Enumeration, boolean, int) in that it cleans up the PMSet
 for which work order generation has been processed rather that returning that set.
 This results in improved memory management. Messages are processed on MXServer instead
 of on the PMSet.generateWorkNoPMSetReturn in interface PMServiceRemoteui - The UserInfo used to create the PMSet.enumit - The Enumeration containing elements of String[] - The keys for the PMs.useFreq - Flag indicating whether to use frequency criteria.leadtime - Days ahead to generate for.repairFac - Repair facility to use on WOs.repSite - Repair facility site to use on WOs.MXExceptionjava.rmi.RemoteExceptionThis method is called to create the work orders., 
PMService.generateWork(UserInfo, Enumeration, boolean, int)public void meterBasedAutoWogen(MboRemote assetlocMbo, MboRemote assetLocMeterMbo) throws MXException, java.rmi.RemoteException
meterBasedAutoWogen in interface PMServiceRemoteassetlocMbo - The current asset or location mbo.MXExceptionjava.rmi.RemoteExceptionpublic void meterBasedAutoWogen(MboRemote assetlocMbo) throws MXException, java.rmi.RemoteException
meterBasedAutoWogen in interface PMServiceRemoteMXExceptionjava.rmi.RemoteExceptionprotected PM getTopMostPMinHier(PM pmMbo) throws MXException, java.rmi.RemoteException
pmMbo - The current PM Mbo.MXExceptionjava.rmi.RemoteExceptionpublic void changeStatus(PM pm, java.lang.String status, boolean rollToAllChildren) throws MXException, java.rmi.RemoteException
pm - PM Mbostatus - The new pm statusrollToAllChildren - status to roll to children as well.MXExceptionjava.rmi.RemoteException