|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.opengrok.management.AgentIndexRunner
public final class AgentIndexRunner
AgentIndexRunner.
Method Summary | |
---|---|
void |
addNotificationListener(javax.management.NotificationListener notiflistener,
javax.management.NotificationFilter notfilt,
java.lang.Object obj)
|
void |
disable()
Disables indexer |
void |
enable()
Enables the indexer |
void |
fileAdded(java.lang.String path,
java.lang.String analyzer)
A file is added to the index database |
void |
fileRemoved(java.lang.String path)
A file is being removed from the index database |
void |
fileUpdated(java.lang.String path)
|
java.lang.Exception |
getExceptions()
Get Exception from last run |
static AgentIndexRunner |
getInstance(boolean enabledParam)
Static factory method to get an instance of AgentIndexRunner. |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
Method that the subclass can override, but doesn't have to |
void |
handleNotification(javax.management.Notification n,
java.lang.Object hb)
Handle timer notifications to the purgatory. |
void |
index(boolean waitForFinished)
The index method starts a thread that will start indexing part of the opengrok agent. |
long |
lastIndexTimeFinished()
Last index time in System.currentmillis of successful index update |
long |
lastIndexTimeStarted()
Last index time in System.currentmillis |
long |
lastIndexTimeUsed()
Last index time usage for successful indexing (no exceptions) |
void |
postDeregister()
|
void |
postRegister(java.lang.Boolean registrationDone)
|
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer serverParam,
javax.management.ObjectName name)
|
void |
removeNotificationListener(javax.management.NotificationListener notiflistener)
|
void |
removeNotificationListener(javax.management.NotificationListener notiflistener,
javax.management.NotificationFilter filt,
java.lang.Object obj)
|
void |
run()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AgentIndexRunner getInstance(boolean enabledParam)
enabledParam
- if true, the initial instance of the purgatory will
have purging enabled.public javax.management.ObjectName preRegister(javax.management.MBeanServer serverParam, javax.management.ObjectName name)
preRegister
in interface javax.management.MBeanRegistration
public void postRegister(java.lang.Boolean registrationDone)
postRegister
in interface javax.management.MBeanRegistration
public void preDeregister()
preDeregister
in interface javax.management.MBeanRegistration
public void postDeregister()
postDeregister
in interface javax.management.MBeanRegistration
public void run()
run
in interface java.lang.Runnable
public void disable()
disable
in interface AgentIndexRunnerMBean
public void enable()
enable
in interface AgentIndexRunnerMBean
public void handleNotification(javax.management.Notification n, java.lang.Object hb)
handleNotification
in interface javax.management.NotificationListener
public void index(boolean waitForFinished)
index
in interface AgentIndexRunnerMBean
waitForFinished
- if false the command returns immediately, if true
it will return when the indexing is done.public void fileAdded(java.lang.String path, java.lang.String analyzer)
IndexChangedListener
fileAdded
in interface IndexChangedListener
path
- The path to the file (absolute from source root)analyzer
- The analyzer being used to analyze the filepublic void fileRemoved(java.lang.String path)
IndexChangedListener
fileRemoved
in interface IndexChangedListener
path
- The path to the file (absolute from source root)public void fileUpdated(java.lang.String path)
public long lastIndexTimeFinished()
AgentIndexRunnerMBean
lastIndexTimeFinished
in interface AgentIndexRunnerMBean
public long lastIndexTimeStarted()
AgentIndexRunnerMBean
lastIndexTimeStarted
in interface AgentIndexRunnerMBean
public long lastIndexTimeUsed()
AgentIndexRunnerMBean
lastIndexTimeUsed
in interface AgentIndexRunnerMBean
public java.lang.Exception getExceptions()
AgentIndexRunnerMBean
getExceptions
in interface AgentIndexRunnerMBean
public void addNotificationListener(javax.management.NotificationListener notiflistener, javax.management.NotificationFilter notfilt, java.lang.Object obj) throws java.lang.IllegalArgumentException
addNotificationListener
in interface javax.management.NotificationBroadcaster
java.lang.IllegalArgumentException
public void removeNotificationListener(javax.management.NotificationListener notiflistener) throws javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.NotificationBroadcaster
javax.management.ListenerNotFoundException
public void removeNotificationListener(javax.management.NotificationListener notiflistener, javax.management.NotificationFilter filt, java.lang.Object obj) throws javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.NotificationEmitter
javax.management.ListenerNotFoundException
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface javax.management.NotificationBroadcaster
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |