com.gigaspaces.grid.gsc
Interface GSC
- All Superinterfaces:
- net.jini.admin.Administrable, org.jini.rio.cybernode.Cybernode, org.jini.rio.event.EventProducer, org.jini.rio.core.MonitorableService, java.rmi.Remote, RemoteAnt, org.jini.rio.resources.servicecore.Service, org.jini.rio.core.provision.ServiceBeanInstantiator, org.jini.rio.watch.Watchable
public interface GSC
- extends org.jini.rio.cybernode.Cybernode, RemoteAnt
The Grid Service Container (GSC) represents the capabilities of a compute
resource, making the compute resource available as a service on the network,
and provides a dynamic lightweight container to instantiate dynamic
application services.
Method Summary |
void |
enlist(org.jini.rio.core.Schedule schedule)
Have the Grid Service Container add itself as a resource which can be
used to instantiate GigaSpace and dynamic application services. |
org.jini.rio.core.Schedule |
getSchedule()
Get the availability schedule for the Grid Service Container. |
void |
release(boolean terminateServices)
Have the Grid ServiceContainer remove itself as a resource which that
can be used to instantiate GigaSpace and dynamic application services. |
Methods inherited from interface org.jini.rio.core.provision.ServiceBeanInstantiator |
getInstantiatorUuid, getName, getServiceBeanInstances, getServiceRecords, getServiceStatements, instantiate, update |
Methods inherited from interface net.jini.admin.Administrable |
getAdmin |
Methods inherited from interface org.jini.rio.core.MonitorableService |
monitor, ping, startHeartbeat |
Methods inherited from interface org.jini.rio.event.EventProducer |
register |
Methods inherited from interface org.jini.rio.watch.Watchable |
fetch, fetch |
getSchedule
org.jini.rio.core.Schedule getSchedule()
throws java.rmi.RemoteException
- Get the availability schedule for the Grid Service Container. The Grid
Service Container registers and unregisters to discovered Grid Service
Manager instances based on the declared schedule. If there is not
schedule, the Grid Service Conatiner is always available
- Returns:
- A {org.jini.rio.core.Schedule} object if the Grid Service Container
has been configured with an availability schedule, otherwise return
null
- Throws:
java.rmi.RemoteException
- If communication errors occur
enlist
void enlist(org.jini.rio.core.Schedule schedule)
throws java.rmi.RemoteException
- Have the Grid Service Container add itself as a resource which can be
used to instantiate GigaSpace and dynamic application services. Once
a Grid Service Container is enlisted, it will use the provided
availability schedule to control when it registers and unregisters to
discovered Grid Service Manager instances
If the Grid Service Container is already enlisted, this method will have
no effect
- Parameters:
schedule
- The availability schedule for the Grid Service Container.
The Grid Service Container registers and unregisters to discovered Grid
Service Manager instances based on the declared schedule. The schedule
must not be null
- Throws:
java.lang.NullPointerException
- If the schedule parameter is null
java.rmi.RemoteException
- If communication errors occur
release
void release(boolean terminateServices)
throws java.rmi.RemoteException
- Have the Grid ServiceContainer remove itself as a resource which that
can be used to instantiate GigaSpace and dynamic application services.
If the Grid Service Container is already released, this method will have
no effect
- Parameters:
terminateServices
- If this parameter is true
, all
services which are being hosted by the Grid Service Container will be
terminated as a result of this method invocation
- Throws:
java.rmi.RemoteException
- If communication errors occur
Copyright (c) 2007 GigaSpaces Technologies, Inc.
All Rights Reserved.