Author: hchar
Date: Tue Apr 4 22:32:25 2006
New Revision: 391522
URL: http://svn.apache.org/viewcvs?rev=391522&view=rev
Log:
privatize class and methods;
throw specific exception instead of general.
Modified:
jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/remote/server/RemoteCacheServer.java
Modified:
jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/remote/server/RemoteCacheServer.java
URL:
http://svn.apache.org/viewcvs/jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/remote/server/RemoteCacheServer.java?rev=391522&r1=391521&r2=391522&view=diff
==============================================================================
---
jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/remote/server/RemoteCacheServer.java
(original)
+++
jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/remote/server/RemoteCacheServer.java
Tue Apr 4 22:32:25 2006
@@ -18,6 +18,7 @@
import java.io.IOException;
import java.io.Serializable;
+import java.rmi.RemoteException;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;
import java.rmi.server.Unreferenced;
@@ -61,7 +62,7 @@
* high get and low put, this should allow you to scale.
*
*/
-public class RemoteCacheServer
+class RemoteCacheServer
extends UnicastRemoteObject
implements IRemoteCacheService, IRemoteCacheObserver,
IRemoteCacheServiceAdmin, Unreferenced
{
@@ -96,10 +97,11 @@
* server with the values from the config file.
*
* @param rcsa
+ * @throws RemoteException
* @exception IOException
*/
- protected RemoteCacheServer( IRemoteCacheServerAttributes rcsa )
- throws IOException
+ RemoteCacheServer( IRemoteCacheServerAttributes rcsa )
+ throws RemoteException
{
super( rcsa.getServicePort() );
this.rcsa = rcsa;
@@ -111,9 +113,8 @@
*
* @param prop
*/
- protected void init( String prop )
+ private void init( String prop )
{
-
cacheManager = createCacheManager( prop );
// cacheManager would have created a number of ICache objects.
@@ -134,7 +135,7 @@
* The anem of the configuration file.
* @return The cache hub configured with this configuration file.
*/
- protected CompositeCacheManager createCacheManager( String prop )
+ private CompositeCacheManager createCacheManager( String prop )
{
CompositeCacheManager hub =
CompositeCacheManager.getUnconfiguredInstance();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]