public class ServiceService extends FlowConstructService implements ServiceServiceMBean, MBeanRegistration, ServiceStatsMBean
ServiceService
exposes service information about a Mule Managed
service.jmxSupport, jmxSupportFactory, muleContext, name, objectName, server, statsName, type
DEFAULT_JMX_NAME_PREFIX
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
ServiceService(String name,
MuleContext muleContext) |
Modifier and Type | Method and Description |
---|---|
void |
clearStatistics() |
void |
dispose() |
void |
forceStop()
Causes the service to stop without processing its event queue first
|
long |
getAsyncEventsReceived() |
long |
getAsyncEventsSent() |
long |
getAverageExecutionTime() |
long |
getAverageQueueSize() |
long |
getExecutedEvents() |
long |
getMaxExecutionTime() |
long |
getMaxQueueSize() |
long |
getMinExecutionTime() |
long |
getQueuedEvents() |
int |
getQueueSize()
The number of queued events for this service
|
long |
getReplyToEventsSent() |
ObjectName |
getStatistics()
The statistics for this flow construct
|
long |
getSyncEventsReceived() |
long |
getSyncEventsSent() |
long |
getTotalEventsReceived() |
long |
getTotalEventsSent() |
long |
getTotalExecutionTime() |
boolean |
isPaused() |
boolean |
isStopped() |
boolean |
isStopping() |
void |
pause()
Pauses event processing for theComponent.
|
void |
postDeregister() |
void |
postRegister(Boolean registrationDone) |
void |
preDeregister() |
ObjectName |
preRegister(MBeanServer server,
ObjectName name) |
void |
resume()
Resumes the Service that has been paused.
|
void |
start() |
void |
stop() |
getAverageProcessingTime, getExecutionErrors, getFatalErrors, getMaxProcessingTime, getMinProcessingTime, getName, getProcessedEvents, getTotalProcessingTime, getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getType
getAverageProcessingTime, getExecutionErrors, getFatalErrors, getMaxProcessingTime, getMinProcessingTime, getProcessedEvents, getTotalProcessingTime
public ServiceService(String name, MuleContext muleContext)
public int getQueueSize()
ServiceServiceMBean
getQueueSize
in interface ServiceServiceMBean
public void pause() throws MuleException
pause
in interface ServiceServiceMBean
MuleException
- if the service failed to pause.MuleConfiguration
public void resume() throws MuleException
resume
in interface ServiceServiceMBean
MuleException
- if the service failed to resumepublic boolean isPaused()
isPaused
in interface ServiceServiceMBean
public boolean isStopped()
isStopped
in interface ServiceServiceMBean
public void stop() throws MuleException
stop
in interface Stoppable
MuleException
public void forceStop() throws MuleException
ServiceServiceMBean
forceStop
in interface ServiceServiceMBean
MuleException
public boolean isStopping()
isStopping
in interface ServiceServiceMBean
public void dispose() throws MuleException
dispose
in interface ServiceServiceMBean
MuleException
public void start() throws MuleException
start
in interface Startable
MuleException
public ObjectName getStatistics()
FlowConstructServiceMBean
getStatistics
in interface FlowConstructServiceMBean
getStatistics
in class FlowConstructService
FlowConstructStats
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister
in interface MBeanRegistration
preRegister
in class FlowConstructService
Exception
public void postRegister(Boolean registrationDone)
postRegister
in interface MBeanRegistration
postRegister
in class FlowConstructService
public void preDeregister() throws Exception
preDeregister
in interface MBeanRegistration
preDeregister
in class FlowConstructService
Exception
public void postDeregister()
postDeregister
in interface MBeanRegistration
postDeregister
in class FlowConstructService
public void clearStatistics()
clearStatistics
in interface FlowConstructStatsMBean
clearStatistics
in class FlowConstructService
public long getAsyncEventsReceived()
getAsyncEventsReceived
in interface FlowConstructStatsMBean
getAsyncEventsReceived
in class FlowConstructService
public long getSyncEventsReceived()
getSyncEventsReceived
in interface FlowConstructStatsMBean
getSyncEventsReceived
in class FlowConstructService
public long getTotalEventsReceived()
getTotalEventsReceived
in interface FlowConstructStatsMBean
getTotalEventsReceived
in class FlowConstructService
public long getAsyncEventsSent()
getAsyncEventsSent
in interface ServiceStatsMBean
public long getAverageExecutionTime()
getAverageExecutionTime
in interface ServiceStatsMBean
public long getAverageQueueSize()
getAverageQueueSize
in interface ServiceStatsMBean
public long getExecutedEvents()
getExecutedEvents
in interface ServiceStatsMBean
public long getMaxExecutionTime()
getMaxExecutionTime
in interface ServiceStatsMBean
public long getMaxQueueSize()
getMaxQueueSize
in interface ServiceStatsMBean
public long getMinExecutionTime()
getMinExecutionTime
in interface ServiceStatsMBean
public long getQueuedEvents()
getQueuedEvents
in interface ServiceStatsMBean
public long getReplyToEventsSent()
getReplyToEventsSent
in interface ServiceStatsMBean
public long getSyncEventsSent()
getSyncEventsSent
in interface ServiceStatsMBean
public long getTotalEventsSent()
getTotalEventsSent
in interface ServiceStatsMBean
public long getTotalExecutionTime()
getTotalExecutionTime
in interface ServiceStatsMBean
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.