|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.j_spaces.jca.JSInteraction
com.j_spaces.jca.GSInteraction
public class GSInteraction
JCA Interaction Enhanced Class - contain extended JavaSpaces methods
| Field Summary |
|---|
| Fields inherited from class com.j_spaces.jca.JSInteraction |
|---|
CLEAN_OPERATION, CLEAR_OPERATION, COUNT_OPERATION, EXCEPTIONTYPE_REMOTEEXCEPTION, EXCEPTIONTYPE_TX, INSTANCE_COUNT_OPERATION, NOTIFY_OPERATION, READ_OPERATION, SNAPSHOT_OPERATION, TAKE_OPERATION, WRITE_OPERATION |
| Method Summary | |
|---|---|
IMap |
getCache()
Returns the interface to IMap. |
int |
instanceCount(String clazz)
Returns class instance count. |
void |
ping()
Checks whether the space is alive and accessible. |
Entry[] |
readMultiple(Entry template,
boolean isTx,
int maxEntries)
Reads all the entries matching the specified template from this space. |
Entry[] |
readMultiple(Entry template,
int maxEntries)
Reads all the entries matching the specified template from this space. |
void |
setSecurityContext(SecurityContext sc)
Set Security Context. |
Entry[] |
takeMultiple(Entry template,
boolean isTx,
int maxEntries)
Takes all the entries matching the specified template from this space. |
Entry[] |
takeMultiple(Entry template,
int maxEntries)
Takes all the entries matching the specified template from this space. |
Lease |
update(Entry entry,
boolean isTx,
long timeout)
Deprecated. Use instead update(Entry, Entry, long, long)
(@link #update(Entry, long, long) } |
Entry |
update(Entry updatedEntry,
boolean isTx,
long lease,
long timeout)
Updates the first entry matching the specified template, if found and there is no transaction conflict. |
Object[] |
update(Entry template,
Entry newEntry,
boolean isTx,
long timeout)
Deprecated. Use instead update(Entry, Entry, long, long)
(@link #update(Entry, long, long) } |
Entry |
update(Entry template,
Entry newEntry,
boolean isTx,
long lease,
long timeout)
Updates the first entry matching the specified template, if found and there is no transaction conflict. |
Object[] |
update(Entry template,
Entry newEntry,
long timeout)
Deprecated. Use instead update(Entry, Entry, long, long)
(@link #update(Entry, long, long) } |
Entry |
update(Entry template,
Entry newEntry,
long lease,
long timeout)
Updates the first entry matching the specified template, if found and there is no transaction conflict. |
Lease |
update(Entry entry,
long timeout)
Deprecated. Use instead update(Entry, Entry, long, long)
(@link #update(Entry, long, long) } |
Entry |
update(Entry updatedEntry,
long lease,
long timeout)
Updates the first entry matching the specified template, if found and there is no transaction conflict. |
Object[] |
updateMultiple(Entry[] entries,
boolean isTx,
long[] leases)
Performs batch update for the specified entries |
Object[] |
updateMultiple(Entry[] entries,
long[] leases)
Performs batch update for the specified entries |
Lease[] |
writeMultiple(Entry[] entries,
boolean isTx,
long timeout)
Writes the specified entries to this space. |
Lease[] |
writeMultiple(Entry[] entries,
long timeout)
Writes the specified entries to this space. |
| Methods inherited from class com.j_spaces.jca.JSInteraction |
|---|
clean, clear, clear, clearWarnings, close, count, count, execute, execute, getConnection, getSpaceAdmin, getSpaceURL, getWarnings, isSecured, notify, read, read, readIfExists, readIfExists, snapshot, take, take, takeIfExists, takeIfExists, write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Entry[] readMultiple(Entry template,
int maxEntries)
throws ResourceException
template - the template to use for matching.maxEntries - a limit on the number of entries to be read. Use
Integer.MAX_VALUE for the maximum value.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public Entry[] readMultiple(Entry template,
boolean isTx,
int maxEntries)
throws ResourceException
template - the template to use for matching.isTx - true indicates method to be done under transaction. false - without transcationmaxEntries - a limit on the number of entries to be read. Use
Integer.MAX_VALUE for the maximum value.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public Lease[] writeMultiple(Entry[] entries,
long timeout)
throws ResourceException
entries - the entries to write.timeout - the requested lease time, in milliseconds
TransactionException
java.rmi.ResourceException
ResourceException
public Lease[] writeMultiple(Entry[] entries,
boolean isTx,
long timeout)
throws ResourceException
entries - the entries to write.isTx - true indicates method to be done under transaction. false - without transactiontimeout - the requested lease time, in milliseconds
TransactionException
java.rmi.ResourceException
ResourceException
public Entry[] takeMultiple(Entry template,
int maxEntries)
throws ResourceException
template - the template to use for matching.maxEntries - a limit on the number of entries to be taken. Use
Integer.MAX_VALUE for the maximum value.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public Entry[] takeMultiple(Entry template,
boolean isTx,
int maxEntries)
throws ResourceException
template - the template to use for matching.isTx - true indicates method to be done under transaction. false - without transcationmaxEntries - a limit on the number of entries to be taken. Use
Integer.MAX_VALUE for the maximum value.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public Object[] update(Entry template,
Entry newEntry,
long timeout)
throws ResourceException
update(Entry, Entry, long, long)
(@link #update(Entry, long, long) }
template - the template to use for matching.newEntry - the new value of the entry.timeout - the lease time of the new entry
null is returned.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
@Deprecated
public Object[] update(Entry template,
Entry newEntry,
boolean isTx,
long timeout)
throws ResourceException
update(Entry, Entry, long, long)
(@link #update(Entry, long, long) }
template - the template to use for matching.newEntry - the new value of the entry.isTx - true indicates method to be done under transaction. false - without transcationtimeout - the lease time of the new entry
null is returned.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public Entry update(Entry template,
Entry newEntry,
long lease,
long timeout)
throws ResourceException
template - the template to use for matching.newEntry - the new value of the entry.lease - the lease time of the new entrytimeout - the timeout to wait for available entry
null is returned.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public Entry update(Entry template,
Entry newEntry,
boolean isTx,
long lease,
long timeout)
throws ResourceException
template - the template to use for matching.newEntry - the new value of the entry.isTx - true indicates method to be done under transaction. false - without transcationlease - the lease time of the new entrytimeout - the timeout to wait for available entry
null is returned.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public Lease update(Entry entry,
long timeout)
throws ResourceException
update(Entry, Entry, long, long)
(@link #update(Entry, long, long) }
entry - to updatetimeout - - The lease timeout of the new entry
null is returned.
TransactionException
UnusableEntryException
ResourceException
public Lease update(Entry entry,
boolean isTx,
long timeout)
throws ResourceException
update(Entry, Entry, long, long)
(@link #update(Entry, long, long) }
entry - to updateisTx - true indicates method to be done under transaction. false - without transcationtimeout - - The lease timeout of the new entry
null is returned.
TransactionException
UnusableEntryException
ResourceException
public Entry update(Entry updatedEntry,
long lease,
long timeout)
throws ResourceException
updatedEntry - the updated entry.lease - the lease time of the new entrytimeout - the timeout to wait for available entry
null is returned.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public Entry update(Entry updatedEntry,
boolean isTx,
long lease,
long timeout)
throws ResourceException
updatedEntry - the updated entry.lease - the lease time of the new entrytimeout - the timeout to wait for available entry
null is returned.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public Object[] updateMultiple(Entry[] entries,
long[] leases)
throws ResourceException
entries - array of updated entriesleases - array of new leases for updated entries
ResourceException
public Object[] updateMultiple(Entry[] entries,
boolean isTx,
long[] leases)
throws ResourceException
entries - array of updated entriesisTx - true indicates method to be done under transaction. false - without transcationleases - array of new leases for updated entries
ResourceException
public int instanceCount(String clazz)
throws ResourceException
clazz - Class Name
ResourceException
public void ping()
throws ResourceException
ResourceException
public IMap getCache()
throws ResourceException
ResourceException
public void setSecurityContext(SecurityContext sc)
throws ResourceException
sc - The Security Context object.
ResourceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||