public class Interface
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected ComboxConnection<?> |
combox |
protected ObjectDescription |
od |
protected Broker |
parentBroker |
protected POPAccessPoint |
popAccessPoint |
| Constructor and Description |
|---|
Interface(Broker parentBroker)
Default Interface constructor
|
Interface(Broker parentBroker,
POPAccessPoint accessPoint)
Create an Interface by giving the access point of the parallel object
|
Interface(Broker parentBroker,
POPAccessPoint accessPoint,
ObjectDescription od)
Create an Interface by giving the access point of the parallel object
|
| Modifier and Type | Method and Description |
|---|---|
int |
addRef() |
boolean |
allocate(java.lang.String objectName)
Allocate resource for the associated parallel object
|
boolean |
allocateThroughJobmanager(java.lang.String objectName,
POPAccessPoint[] allocatedAccessPoint,
POPAccessPoint[] remotejobscontact) |
protected boolean |
bind(POPAccessPoint accesspoint)
Bind the interface with a parallel object (Broker-side)
|
void |
close()
Close the combox associated with this interface
|
int |
decRef() |
boolean |
deserialize(Combox sourceCombox,
POPBuffer buffer) |
boolean |
deserialize(POPBuffer buffer)
Deserialize an Interface from a buffer
|
protected void |
finalize()
Close everything
|
POPAccessPoint |
getAccessPoint()
Return the access point of the parallel object associated with this interface
|
static AppService |
getAppcoreService() |
static java.lang.String |
getCodeFile(AppService manager,
java.lang.String objectName) |
ObjectDescription |
getOD()
Return the object description associated with this interface
|
POPRemoteCaller |
getRemote()
Get the remote caller of the host the object is connected to.
|
protected int |
getRequestID() |
boolean |
isAlive()
Check if the parallel object associated with this interface is still alive
|
void |
kill()
Kill the associated parallel object
|
protected void |
popDispatch(POPBuffer buffer)
Send the buffer content to the broker-side
|
protected int |
popResponse(POPBuffer buffer,
int requestId)
Receive response from the broker-side
|
void |
release() |
boolean |
serialize(POPBuffer buffer)
Serialization of the Interface into the buffer
|
void |
setAccessPoint(POPAccessPoint accessPoint)
Set the access point associated with this interface
|
void |
setOd(ObjectDescription od)
Associate an object description with this interface
|
static boolean |
tryLocal(java.lang.String objectName,
POPAccessPoint accesspoint,
ObjectDescription od)
Try a local execution for the associated parallel object
|
protected final Broker parentBroker
protected ComboxConnection<?> combox
protected POPAccessPoint popAccessPoint
protected ObjectDescription od
public Interface(Broker parentBroker)
public Interface(Broker parentBroker, POPAccessPoint accessPoint) throws POPException
accessPoint - Access point of the parallel objectPOPException - thrown of the interface cannot be bind with the parallel objectpublic Interface(Broker parentBroker, POPAccessPoint accessPoint, ObjectDescription od) throws POPException
accessPoint - Access point of the parallel objectod - A custom OD for specifying possible connection parametersPOPException - thrown of the interface cannot be bind with the parallel objectpublic boolean serialize(POPBuffer buffer)
buffer - Buffer to serialize inpublic boolean deserialize(POPBuffer buffer)
buffer - Buffer to deserialize fromprotected int getRequestID()
public POPRemoteCaller getRemote()
public POPAccessPoint getAccessPoint()
public void setAccessPoint(POPAccessPoint accessPoint)
accessPoint - Access point to associatepublic ObjectDescription getOD()
public void setOd(ObjectDescription od)
od - Object descritption to associatepublic void release()
public boolean allocate(java.lang.String objectName)
throws POPException
objectName - Name of the objectPOPException - thrown if any exception occurred during the allocating processpublic boolean allocateThroughJobmanager(java.lang.String objectName,
POPAccessPoint[] allocatedAccessPoint,
POPAccessPoint[] remotejobscontact)
protected boolean bind(POPAccessPoint accesspoint) throws POPException
accesspoint - Access point of the parallel object (Broker-side)sPOPException - thrown if any exception occurred during the binding processpublic int addRef()
public int decRef()
public boolean isAlive()
public void kill()
public static boolean tryLocal(java.lang.String objectName,
POPAccessPoint accesspoint,
ObjectDescription od)
throws POPException
objectName - Name of the objectaccesspoint - Output parameter - Access point of the objectod - the object descriptionPOPException - thrown if any exception occurred during the creation processpublic static AppService getAppcoreService()
public static java.lang.String getCodeFile(AppService manager, java.lang.String objectName)
protected void popDispatch(POPBuffer buffer)
buffer - Buffer to sendprotected int popResponse(POPBuffer buffer, int requestId) throws POPException
buffer - the bufferPOPException - connection failedpublic void close()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable