|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.rendezvous.client.RendezvousHelper
Helper class to invoke operations on RendezvousPortType in a potentially secure manner.
| Field Summary | |
private static org.globus.util.I18n |
i18n
|
private static org.apache.commons.logging.Log |
logger
|
static int |
NO_DESIRED_RANK
|
private ClientSecurityStrategy |
security
|
| Constructor Summary | |
RendezvousHelper()
|
|
RendezvousHelper(ClientSecurityStrategy security)
|
|
| Method Summary | |
static byte[] |
extractHeader(byte[] data,
int beginIndex)
Extract byte array representing the binary array which is the value of the RegistrantData RP. |
byte[] |
getRegistrantData(EndpointReferenceType rendezvousEndpoint)
will be null/empty if rdv not complete/done |
boolean |
isRendezvousDone(EndpointReferenceType rendezvousEndpoint)
Pull status from the Rendezvous service/resource. |
private static byte[] |
makeHeader(int count)
|
static byte[] |
prependHeader(byte[] data,
int count)
Prepend a Rendezvous binary data encoding header to a byte array. |
static int |
readCount(byte[] bytes)
|
int |
registerWithRendezvous(EndpointReferenceType rendezvousEndpoint,
byte[] data)
Register application binary data with a rendezvous without specifying any desired rank. |
int |
registerWithRendezvous(EndpointReferenceType rendezvousEndpoint,
byte[] data,
int desiredRank)
|
void |
subscribeForCompletionNotifications(EndpointReferenceType rendezvousEndpoint,
NotifyCallback notificationCallback)
Susbcribe for notifications on completion of rendezvous. |
void |
subscribeForNotifications(EndpointReferenceType rendezvousEndpoint,
NotifyCallback notificationCallback,
QName topicQName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NO_DESIRED_RANK
private ClientSecurityStrategy security
private static final org.apache.commons.logging.Log logger
private static org.globus.util.I18n i18n
| Constructor Detail |
public RendezvousHelper()
public RendezvousHelper(ClientSecurityStrategy security)
| Method Detail |
private static byte[] makeHeader(int count)
public static byte[] prependHeader(byte[] data,
int count)
This is used by:
data - byte[] the data to prepend a header tocount - int the positive number to encode as the header
public static byte[] extractHeader(byte[] data,
int beginIndex)
data - byte[] the data which contains the header to extractbeginIndex - int the index at which the header starts in the
input array
public static int readCount(byte[] bytes)
public boolean isRendezvousDone(EndpointReferenceType rendezvousEndpoint)
throws Exception
rendezvousEndpoint - EndpointReferenceType endpoint to query
Exception
public byte[] getRegistrantData(EndpointReferenceType rendezvousEndpoint)
throws Exception
Exception
public void subscribeForCompletionNotifications(EndpointReferenceType rendezvousEndpoint,
NotifyCallback notificationCallback)
throws Exception
rendezvousEndpoint - EndpointReferenceTypenotificationCallback - NotifyCallback
Exception
public void subscribeForNotifications(EndpointReferenceType rendezvousEndpoint,
NotifyCallback notificationCallback,
QName topicQName)
throws Exception
Exception
public int registerWithRendezvous(EndpointReferenceType rendezvousEndpoint,
byte[] data)
throws Exception
rendezvousEndpoint - EndpointReferenceType the endpoint to register withdata - byte[] the input binary data to register
Exception
public int registerWithRendezvous(EndpointReferenceType rendezvousEndpoint,
byte[] data,
int desiredRank)
throws Exception
rendezvousEndpoint - EndpointReferenceType the endpoint to register withdata - byte[] the input binary data to registerdesiredRank - int Can be NO_DESIRED_RANK to indicate no desired rank
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||