darx
Class IllegalReplicationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.rmi.RemoteException
                  extended by darx.DarxException
                      extended by darx.IllegalReplicationException
All Implemented Interfaces:
java.io.Serializable

public class IllegalReplicationException
extends DarxException

This exception is thrown when a replication is being attempted at a location where there already exists a replica of the same group.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.RemoteException
detail
 
Constructor Summary
IllegalReplicationException(java.lang.String url, int port_nb)
          Constructs a new instance of the class.
 
Method Summary
 java.lang.String getLocation()
           
 java.lang.String getTaskName()
           
 java.lang.String toString()
           
 
Methods inherited from class java.rmi.RemoteException
getCause, getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalReplicationException

public IllegalReplicationException(java.lang.String url,
                                   int port_nb)
Constructs a new instance of the class.

Parameters:
info - the information concerning the unknown replicant.
Method Detail

getLocation

public java.lang.String getLocation()
Returns:
the URL of the host where the replication is attempted.

getTaskName

public java.lang.String getTaskName()
Returns:
the name of the replicated task in concern.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable
Returns:
the information conveyed by this exception, in String format.