|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.platform.symphony.soam.ServiceToSlotRatio
public class ServiceToSlotRatio
A service to slot ratio, which describes how many slots a service instance consumes.
The ratio must be either 1:N or N:1, where N is a positive integer. For N:1, the maximum value of N is 10.
A 1:N ratio means that 1 service instance runs on multiple slots.
An N:1 ratio means that multiple service instances run on 1 slot.
When specified to create a session, this ratio indicates how many slots a
service instance requires in order to run tasks from this session.
The ratio will be validated when the SessionCreationAttributes.setServiceToSlotRatio(...)
method is applied.
NOTE: If any of the methods of this class are called after the main(...) method exits,
the client or service process may behave in an undefined manner (for example,
hang or terminate abnormally).
SessionCreationAttributes.setServiceToSlotRatio(com.platform.symphony.soam.ServiceToSlotRatio)
,
ServiceContext.getServiceToSlotRatio()
Constructor Summary | |
---|---|
ServiceToSlotRatio(int numServices,
int numSlots)
Constructs a ServiceToSlotRatio object. |
Method Summary | |
---|---|
int |
getNumberOfServices()
Gets the number of services portion (the numerator) of the ServiceToSlotRatio. |
int |
getNumberOfSlots()
Gets the number of slots portion (the denominator) of the ServiceToSlotRatio. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceToSlotRatio(int numServices, int numSlots)
numServices
- The number of service instances that are capable of running on 'numSlots' slots.numSlots
- The number of slots required to run 'numServices' service instances.Method Detail |
---|
public int getNumberOfServices() throws SoamException
SoamException
public int getNumberOfSlots() throws SoamException
SoamException
|
Version 5.1 Date Modified: -DREL_DATE=Apr 28 2011 Platform Computing. Accelerating Intelligence(TM). Copyright (C) 2001-2009 Platform Computing Corporation. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |