public class PMService extends AppService implements PMServiceRemote
crtPARENT
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, 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.
|
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, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, isAppService, isRunning, isSingletonService, restart, setProxy, setRunning, setURL, verifyUser, verifyUser
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUser
isAppService, isSingletonService, restart
public PMService() throws java.rmi.RemoteException
java.rmi.RemoteException
public PMService(MXServer mxServer) throws java.rmi.RemoteException
mxServer
- the "Server Environment" this Service is being created in.java.rmi.RemoteException
public void init()
init
in interface Service
init
in class AppService
Starts up this listener
public void destroy()
destroy
in interface Service
destroy
in class AppService
AppService.destroy()
public PMSetRemote genPMsFromMasterAsset(AssetRemote myAssetMbo) throws MXException, java.rmi.RemoteException
genPMsFromMasterAsset
in interface PMServiceRemote
myAssetMbo
- The piece of asset for which PMs are being generatedMXException
java.rmi.RemoteException
public void initCriteriaList(java.util.Hashtable criteriaTable) throws MXException, java.rmi.RemoteException
initCriteriaList
in class AppService
criteriaTable
- MXException
java.rmi.RemoteException
public 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 PMServiceRemote
ui
- 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.MXException
java.rmi.RemoteException
This method is called to create the work orders.
,
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 PMServiceRemote
ui
- 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.MXException
java.rmi.RemoteException
This method is called to create the work orders.
,
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 PMServiceRemote
ui
- 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.MXException
java.rmi.RemoteException
This method is called to create the work orders.
,
generateWork(UserInfo, Enumeration, boolean, int)
public void meterBasedAutoWogen(MboRemote assetlocMbo, MboRemote assetLocMeterMbo) throws MXException, java.rmi.RemoteException
meterBasedAutoWogen
in interface PMServiceRemote
assetlocMbo
- The current asset or location mbo.MXException
java.rmi.RemoteException
public void meterBasedAutoWogen(MboRemote assetlocMbo) throws MXException, java.rmi.RemoteException
meterBasedAutoWogen
in interface PMServiceRemote
MXException
java.rmi.RemoteException
public 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.MXException
java.rmi.RemoteException