|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.solarmetric.kodo.runtime.event.impl.RemoteCommitProviderImpl
|
+--com.solarmetric.kodo.runtime.event.impl.TCPRemoteCommitProvider
TCP-based implementation of RemoteCommitProvider that
listens for object modifications and propagates those changes to
other RemoteCommitProviders over TCP sockets.
| Inner Class Summary | |
protected static class |
TCPRemoteCommitProvider.HostAddress
Utility class to store an InetAddress and an int. |
protected static class |
TCPRemoteCommitProvider.TCPPortListener
Responsible for listening for packets and processing the received packets. |
| Fields inherited from class com.solarmetric.kodo.runtime.event.impl.RemoteCommitProviderImpl |
_factory, _log |
| Constructor Summary | |
TCPRemoteCommitProvider()
|
|
| Method Summary | |
void |
broadcastCommitInfo(Set adds,
Set updates,
Set deletes)
Notifies other PersistenceManagerFactory objects in this JVM and on other machines of changes to the cache. |
void |
close()
Close any resources used by this provider |
void |
endConfiguration()
Subclasses that need to perform actions in Configurable.endConfiguration() must
invoke this method. |
protected long |
getID()
|
protected byte[] |
getLocalhost()
|
protected int |
getPort()
|
protected void |
sendUpdatePacket(byte[] bytes)
Sends a change notification packet to other machines in this provider cluster. |
void |
setAddresses(String names)
Sets the list of addresses to which this provider will broadcast to the values in the comma-separated names list. |
void |
setPort(int port)
Sets the port that this provider should listen on. |
void |
startConfiguration()
Invoked before configuration is begun on this object |
| Methods inherited from class com.solarmetric.kodo.runtime.event.impl.RemoteCommitProviderImpl |
receivedCommitInfo, setPersistenceManagerFactory |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public TCPRemoteCommitProvider()
throws UnknownHostException
| Method Detail |
protected long getID()
protected byte[] getLocalhost()
protected int getPort()
public void setPort(int port)
public void setAddresses(String names)
throws UnknownHostException
names list.
public void broadcastCommitInfo(Set adds,
Set updates,
Set deletes)
RemoteCommitProviderNotifies other PersistenceManagerFactory objects in this JVM and on other machines of changes to the cache. This method must not notify the PersistenceManagerFactory associated with the PersistenceManager that originated this commit.
adds, updates, and
deletes are sets of object IDs that were added,
updated, or deleted.
public void close()
RemoteCommitProviderpublic void startConfiguration()
ConfigurablestartConfiguration in interface Configurablepublic void endConfiguration()
Configurable.endConfiguration() must
invoke this method.endConfiguration in interface Configurableprotected void sendUpdatePacket(byte[] bytes)
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||