how distinguish backup from primary
I'm working with the example code from
http://wiki.gigaspaces.com/wiki/displ...
specifically, the section titled "Restart a running PU via the Admin API".
The code snippet is:
if( puInstances[i].getSpaceInstance().getMode() == SpaceMode.BACKUP ) {
restartPUInstance(puInstances[i]);
}
Unfortunately, the "getMode()" method is returning neither SpaceMode.BACKUP
nor SpaceMode.PRIMARY.
How can I identify which PU instance is primary and which is backup?
Thank you.
{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=4082]{quote}