|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.core.descriptor.services.P2PLookupService
This class represents a service to acquire ProActiveRuntime(JVMs) with the ProActive P2P infrastructure This service can be defined and used transparently when using XML Deployment descriptor
Field Summary | |
protected int |
lookupFrequence
|
protected int |
MAX
|
protected int |
nodeCount
|
protected int |
nodeNumber
|
protected java.util.Vector |
peersList
|
protected static java.lang.String |
serviceName
|
protected org.objectweb.proactive.p2p.core.service.P2PService |
serviceP2P
|
protected long |
timeout
|
protected int |
TTL
|
Constructor Summary | |
P2PLookupService()
|
Method Summary | |
int |
getLookupFrequence()
|
int |
getMAX()
|
int |
getNodeNumber()
|
java.lang.String |
getServiceName()
Returns the name of the service. |
long |
getTimeout()
|
int |
getTTL()
|
void |
setLookupFrequence(int lookupFrequence)
Sets the period of lookup. |
void |
setMAX(int max)
Sets the Maximum number of nodes. |
void |
setNodeNumber(int nodeNumber)
Sets the number of nodes to be acquired with this P2P service |
void |
setNodeNumberToMAX()
Sets the number of nodes to be acquired to 10000(Max Value) This method is usefull to acquire an undefined number of nodes. |
void |
setPeerList(java.lang.String[] peerList)
|
void |
setTimeout(long timeout)
|
void |
setTTL(int ttl)
|
ProActiveRuntime[] |
startService()
Starts this Service |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.lang.String serviceName
protected int MAX
protected int nodeNumber
protected int nodeCount
protected long timeout
protected int lookupFrequence
protected int TTL
protected org.objectweb.proactive.p2p.core.service.P2PService serviceP2P
protected java.util.Vector peersList
Constructor Detail |
public P2PLookupService()
Method Detail |
public ProActiveRuntime[] startService() throws ProActiveException
UniversalService
startService
in interface UniversalService
ProActiveException
UniversalService.startService()
public int getNodeNumber()
public void setNodeNumber(int nodeNumber)
nodeNumber
- The nodeNumber to set.public void setNodeNumberToMAX()
public long getTimeout()
public void setTimeout(long timeout)
timeout
- The timeout to set.public int getLookupFrequence()
public void setLookupFrequence(int lookupFrequence)
lookupFrequence
- The lookupFrequence to set.public int getTTL()
public void setTTL(int ttl)
ttl
- The TTL to set.public void setPeerList(java.lang.String[] peerList)
public int getMAX()
public void setMAX(int max)
max
- public java.lang.String getServiceName()
UniversalService
getServiceName
in interface UniversalService
UniversalService.getServiceName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |