Class PUServiceBeanImpl
java.lang.Object
org.jini.rio.resources.servicecore.ServiceProvider
org.jini.rio.jsb.ServiceBeanAdapter
org.openspaces.pu.container.servicegrid.PUServiceBeanImpl
- All Implemented Interfaces:
GridZoneProvider,InternalDumpProcessor,JVMInfoProvider,OSInfoProvider,QuiesceAware,NIOInfoProvider,ServiceProxyAccessor,Remote,MBeanRegistration,NotificationBroadcaster,NotificationEmitter,Administrable,ProxyAccessor,ServerProxyTrust,org.jini.rio.core.jsb.ServiceBean,ServiceState,MonitorableService,EventProducer,org.jini.rio.jsb.ServiceBeanAdapterMBean,Service,Watchable,PUServiceBean
public class PUServiceBeanImpl
extends org.jini.rio.jsb.ServiceBeanAdapter
implements PUServiceBean, InternalDumpProcessor
- Author:
- kimchy
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jini.rio.jsb.ServiceBeanAdapter
org.jini.rio.jsb.ServiceBeanAdapter.SnapshotThread -
Field Summary
Fields inherited from class org.jini.rio.jsb.ServiceBeanAdapter
admin, computeResource, computeResourceObserver, context, contextClassLoader, contextMgr, joiner, jsbState, logDirName, mbeanNoticationInfoList, mbeanServer, objectName, proxy, serviceBeanComponent, serviceClassLoader, serviceID, slaThresholdEventAdapter, snapshotter, state, store, uuidFields inherited from class org.jini.rio.resources.servicecore.ServiceProvider
eventTable, watchRegistry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected ObjectvoidDisabled lrmi monitoring (gigaspaces internal remoting layer).protected ObjectdoStart(org.jini.rio.core.jsb.ServiceBeanContext context) voidEnables lrmi monitoring (gigaspaces internal remoting layer), this will cause the target to start track lrmi invocations which can later be viewed by calling.Return lrmi (gigaspaces internal remoting layer) services monitoring details.longgetName()Returns the transport configuration.Returns the transport statistics.getSpaceDirect(ServiceID serviceID) getSpaceDirectFactory(ServiceID serviceID) getSpaceRuntimeHolder(ServiceID serviceID) getSpaceStatisticsHolder(ServiceID serviceID) String[]getZones()voidinitialize(org.jini.rio.core.jsb.ServiceBeanContext context) Override initialize to perform additional initializationprotected voidinitializeJMX(Object mbean) booleanisAlive()Returntrueif the member is alive or not.booleanShould this member be checked to see if it is alive or not.booleanObject[]SpaceURL[]voidprocess(InternalDump dump) voidquiesceStateChanged(QuiesceStateChangedEvent quiesceStateChangedEvent) voidrunGc()voidstop(boolean force) voidvoidMethods inherited from class org.jini.rio.jsb.ServiceBeanAdapter
addAttribute, addAttributes, addNotificationListener, advertise, cleanClassLoaders, createObjectName, destroy, destroy, destroyJMX, doAdvertise, doInitialize, exportDo, getAdmin, getAdminExporter, getAssociationManagement, getAssociations, getDiscoveryManager, getExportedProxy, getExporter, getExporter, getJoinManager, getLookupGroups, getNotificationBroadcasterSupport, getNotificationInfo, getProxy, getProxyVerifier, getServiceBeanContext, getServiceID, getServiceProxy, getSLAEventHandler, getStarted, getStartTime, getState, getUuid, initialize, monitor, ping, postDeregister, postRegister, preDeregister, preRegister, removeNotificationListener, removeNotificationListener, setLookupGroups, start, startHeartbeat, unadvertiseMethods inherited from class org.jini.rio.resources.servicecore.ServiceProvider
fetch, fetch, getConfiguration, getEventTable, getWatchRegistry, register, setConfiguration, setWatchRegistryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.jini.admin.Administrable
getAdminMethods inherited from interface org.jini.rio.event.EventProducer
registerMethods inherited from interface com.gigaspaces.internal.dump.InternalDumpProcessor
getDumpFileReportLocation, setDumpFileReportLocationMethods inherited from interface org.jini.rio.core.MonitorableService
monitor, ping, startHeartbeatMethods inherited from interface com.sun.jini.start.ServiceProxyAccessor
getServiceProxyMethods inherited from interface org.jini.rio.core.jsb.ServiceState
getState
-
Constructor Details
-
PUServiceBeanImpl
public PUServiceBeanImpl()
-
-
Method Details
-
initializeJMX
- Overrides:
initializeJMXin classorg.jini.rio.jsb.ServiceBeanAdapter- Throws:
Exception
-
createProxy
- Overrides:
createProxyin classorg.jini.rio.jsb.ServiceBeanAdapter
-
doStart
- Overrides:
doStartin classorg.jini.rio.jsb.ServiceBeanAdapter- Throws:
Exception
-
initialize
Override initialize to perform additional initialization- Specified by:
initializein interfaceorg.jini.rio.core.jsb.ServiceBean- Overrides:
initializein classorg.jini.rio.jsb.ServiceBeanAdapter- Throws:
Exception
-
stop
public void stop(boolean force) - Specified by:
stopin interfaceorg.jini.rio.core.jsb.ServiceBean- Overrides:
stopin classorg.jini.rio.jsb.ServiceBeanAdapter
-
updateClusterInfo
public void updateClusterInfo()- Specified by:
updateClusterInfoin interfacePUServiceBean
-
buildInvocableServices
protected void buildInvocableServices() -
undeployEvent
public void undeployEvent()- Overrides:
undeployEventin classorg.jini.rio.jsb.ServiceBeanAdapter
-
isMemberAliveEnabled
public boolean isMemberAliveEnabled()Description copied from interface:PUServiceBeanShould this member be checked to see if it is alive or not.- Specified by:
isMemberAliveEnabledin interfacePUServiceBean
-
isAlive
Description copied from interface:PUServiceBeanReturntrueif the member is alive or not. Exception indicates that the member is not alive (and allows for further information).- Specified by:
isAlivein interfacePUServiceBean- Throws:
Exception
-
getSpaceDirect
- Specified by:
getSpaceDirectin interfacePUServiceBean- Throws:
RemoteException
-
getSpaceDirectFactory
- Specified by:
getSpaceDirectFactoryin interfacePUServiceBean- Throws:
RemoteException
-
getSpaceRuntimeHolder
- Specified by:
getSpaceRuntimeHolderin interfacePUServiceBean- Throws:
RemoteException
-
getSpaceStatisticsHolder
- Specified by:
getSpaceStatisticsHolderin interfacePUServiceBean- Throws:
RemoteException
-
listSpacesURLs
- Specified by:
listSpacesURLsin interfacePUServiceBean- Throws:
RemoteException
-
listSpacesModes
- Specified by:
listSpacesModesin interfacePUServiceBean- Throws:
RemoteException
-
getPUMonitors
- Specified by:
getPUMonitorsin interfacePUServiceBean- Throws:
RemoteException
-
getPUDetails
- Specified by:
getPUDetailsin interfacePUServiceBean- Throws:
RemoteException
-
getPresentationName
- Specified by:
getPresentationNamein interfacePUServiceBean- Throws:
RemoteException
-
getClusterInfo
- Specified by:
getClusterInfoin interfacePUServiceBean- Throws:
RemoteException
-
listServiceDetails
- Specified by:
listServiceDetailsin interfacePUServiceBean- Throws:
RemoteException
-
getNIODetails
Description copied from interface:NIOInfoProviderReturns the transport configuration. Note, does not change during application lifecycle, should be cached on the client side.- Specified by:
getNIODetailsin interfaceNIOInfoProvider- Throws:
RemoteException
-
getNIOStatistics
Description copied from interface:NIOInfoProviderReturns the transport statistics.- Specified by:
getNIOStatisticsin interfaceNIOInfoProvider- Throws:
RemoteException
-
enableLRMIMonitoring
Description copied from interface:NIOInfoProviderEnables lrmi monitoring (gigaspaces internal remoting layer), this will cause the target to start track lrmi invocations which can later be viewed by calling.NIOInfoProvider.fetchLRMIMonitoringDetails()- Specified by:
enableLRMIMonitoringin interfaceNIOInfoProvider- Throws:
RemoteException
-
disableLRMIMonitoring
Description copied from interface:NIOInfoProviderDisabled lrmi monitoring (gigaspaces internal remoting layer).NIOInfoProvider.enableLRMIMonitoring()- Specified by:
disableLRMIMonitoringin interfaceNIOInfoProvider- Throws:
RemoteException
-
fetchLRMIMonitoringDetails
Description copied from interface:NIOInfoProviderReturn lrmi (gigaspaces internal remoting layer) services monitoring details. This will only work if lrmi monitoring was previously enabled, either by admin API, Jmx or system property.NIOInfoProvider.enableLRMIMonitoring()- Specified by:
fetchLRMIMonitoringDetailsin interfaceNIOInfoProvider- Throws:
RemoteException
-
getCurrentTimestamp
- Specified by:
getCurrentTimestampin interfaceOSInfoProvider- Throws:
RemoteException
-
getOSDetails
- Specified by:
getOSDetailsin interfaceOSInfoProvider- Throws:
RemoteException
-
getOSStatistics
- Specified by:
getOSStatisticsin interfaceOSInfoProvider- Throws:
RemoteException
-
getJVMDetails
- Specified by:
getJVMDetailsin interfaceJVMInfoProvider- Throws:
RemoteException
-
getJVMStatistics
- Specified by:
getJVMStatisticsin interfaceJVMInfoProvider- Throws:
RemoteException
-
runGc
- Specified by:
runGcin interfaceJVMInfoProvider- Throws:
RemoteException
-
getZones
- Specified by:
getZonesin interfaceGridZoneProvider- Throws:
RemoteException
-
getName
- Specified by:
getNamein interfaceInternalDumpProcessor
-
process
- Specified by:
processin interfaceInternalDumpProcessor- Throws:
InternalDumpProcessorFailedException
-
invoke
- Specified by:
invokein interfacePUServiceBean- Throws:
RemoteException
-
isStopping
public boolean isStopping()- Specified by:
isStoppingin interfacePUServiceBean
-
getQuiesceDetails
-
quiesceStateChanged
public void quiesceStateChanged(QuiesceStateChangedEvent quiesceStateChangedEvent) throws RemoteException - Specified by:
quiesceStateChangedin interfaceQuiesceAware- Throws:
RemoteException
-