GigaSpaces - Open Spaces

org.openspaces.pu.container.servicegrid
Class PUServiceBeanImpl

java.lang.Object
  extended by org.jini.rio.resources.servicecore.ServiceProvider
      extended by org.jini.rio.jsb.ServiceBeanAdapter
          extended by org.openspaces.pu.container.servicegrid.PUServiceBeanImpl
All Implemented Interfaces:
com.sun.jini.start.ServiceProxyAccessor, Remote, MBeanRegistration, NotificationBroadcaster, NotificationEmitter, net.jini.admin.Administrable, net.jini.export.ProxyAccessor, net.jini.security.proxytrust.ServerProxyTrust, org.jini.rio.core.jsb.ServiceBean, org.jini.rio.core.jsb.ServiceState, org.jini.rio.core.MonitorableService, org.jini.rio.event.EventProducer, org.jini.rio.jsb.ServiceBeanAdapterMBean, org.jini.rio.resources.servicecore.Service, org.jini.rio.watch.Watchable, PUServiceBean

public class PUServiceBeanImpl
extends org.jini.rio.jsb.ServiceBeanAdapter
implements PUServiceBean

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
activationID, admin, computeResource, computeResourceObserver, context, contextMgr, joiner, jsbState, logDirName, mbeanNoticationInfoList, mbeanServer, objectName, proxy, serviceBeanComponent, serviceID, slaThresholdEventAdapter, snapshotter, state, store, uuid
 
Fields inherited from class org.jini.rio.resources.servicecore.ServiceProvider
eventTable, watchRegistry
 
Constructor Summary
PUServiceBeanImpl()
           
 
Method Summary
 void destroy()
           
 void doAdvertise()
           
 ClusterInfo getClusterInfo()
           
 void initialize(org.jini.rio.core.jsb.ServiceBeanContext context)
           
 boolean isAlive()
          Return true if the member is alive or not.
 boolean isMemberAliveEnabled()
          Should this member be checked to see if it is alive or not.
 PUServiceDetails[] listServiceDetails()
           
 com.j_spaces.core.IJSpace[] listSpaces()
           
 com.gigaspaces.cluster.activeelection.SpaceMode[] listSpacesModes()
           
 com.j_spaces.core.client.SpaceURL[] listSpacesURLs()
           
 void unadvertise()
           
 
Methods inherited from class org.jini.rio.jsb.ServiceBeanAdapter
addAttribute, addAttributes, addNotificationListener, advertise, createObjectName, createProxy, destroy, destroyJMX, doInitialize, exportDo, getAdmin, getAdminExporter, getAssociationManagement, getAssociations, getDiscoveryManager, getExportedProxy, getExporter, getJoinManager, getLookupGroups, getNotificationBroadcasterSupport, getNotificationInfo, getProxy, getProxyVerifier, getServiceBeanContext, getServiceID, getServiceProxy, getSLAEventHandler, getStarted, getStartTime, getState, getUuid, getWatchUI, initialize, initializeJMX, monitor, ping, postDeregister, postRegister, preDeregister, preRegister, removeNotificationListener, removeNotificationListener, setLookupGroups, start, startHeartbeat, stop
 
Methods inherited from class org.jini.rio.resources.servicecore.ServiceProvider
fetch, fetch, getConfiguration, getEventTable, getWatchRegistry, register, setConfiguration, setWatchRegistry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PUServiceBeanImpl

public PUServiceBeanImpl()
Method Detail

initialize

public void initialize(org.jini.rio.core.jsb.ServiceBeanContext context)
                throws Exception
Specified by:
initialize in interface org.jini.rio.core.jsb.ServiceBean
Overrides:
initialize in class org.jini.rio.jsb.ServiceBeanAdapter
Throws:
Exception

destroy

public void destroy()
Specified by:
destroy in interface org.jini.rio.jsb.ServiceBeanAdapterMBean
Overrides:
destroy in class org.jini.rio.jsb.ServiceBeanAdapter

doAdvertise

public void doAdvertise()
                 throws IOException
Overrides:
doAdvertise in class org.jini.rio.jsb.ServiceBeanAdapter
Throws:
IOException

unadvertise

public void unadvertise()
Specified by:
unadvertise in interface org.jini.rio.core.jsb.ServiceBean
Specified by:
unadvertise in interface org.jini.rio.jsb.ServiceBeanAdapterMBean
Overrides:
unadvertise in class org.jini.rio.jsb.ServiceBeanAdapter

isMemberAliveEnabled

public boolean isMemberAliveEnabled()
Description copied from interface: PUServiceBean
Should this member be checked to see if it is alive or not.

Specified by:
isMemberAliveEnabled in interface PUServiceBean

isAlive

public boolean isAlive()
Description copied from interface: PUServiceBean
Return true if the member is alive or not.

Specified by:
isAlive in interface PUServiceBean

listSpacesURLs

public com.j_spaces.core.client.SpaceURL[] listSpacesURLs()
                                                   throws RemoteException
Specified by:
listSpacesURLs in interface PUServiceBean
Throws:
RemoteException

listSpaces

public com.j_spaces.core.IJSpace[] listSpaces()
                                       throws RemoteException
Specified by:
listSpaces in interface PUServiceBean
Throws:
RemoteException

getClusterInfo

public ClusterInfo getClusterInfo()
                           throws RemoteException
Specified by:
getClusterInfo in interface PUServiceBean
Throws:
RemoteException

listSpacesModes

public com.gigaspaces.cluster.activeelection.SpaceMode[] listSpacesModes()
                                                                  throws RemoteException
Specified by:
listSpacesModes in interface PUServiceBean
Returns:
A list of space modes; An empty array if there are no spaces.
Throws:
RemoteException

listServiceDetails

public PUServiceDetails[] listServiceDetails()
                                      throws RemoteException
Specified by:
listServiceDetails in interface PUServiceBean
Throws:
RemoteException

GigaSpaces - Open Spaces

Copyright © GigaSpaces.