public class PMService extends AppService implements PMServiceRemote
crtPARENTAPPLOGGER, 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 |
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.
|
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, verifyUserequals, 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.,
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.,
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.RemoteException