net.dpml.station
Interface Callback

All Superinterfaces:
Remote
All Known Implementing Classes:
RemoteApplication

public interface Callback
extends Remote

The Callback interface defines a service provider to a process through which the process may issue notification of state change.

Version:
1.0.3
Author:
Digital Product Meta Library

Method Summary
 void error(Throwable throwable, boolean fatal)
          Method invoked by a process to signal that the process has encounter an error condition.
 void info(String message)
          Method invoked by a process to send a arbitary message to the the callback handler.
 void started(PID pid, Component handler)
          Method invoked by a process to signal that the process has started.
 void stopped()
          Method invoked by a process to signal its imminent termination.
 

Method Detail

started

void started(PID pid,
             Component handler)
             throws RemoteException
Method invoked by a process to signal that the process has started.

Parameters:
pid - the process identifier
handler - optional handler reference
Throws:
RemoteException - if a remote error occurs

error

void error(Throwable throwable,
           boolean fatal)
           throws RemoteException
Method invoked by a process to signal that the process has encounter an error condition.

Parameters:
throwable - the error condition
fatal - if true the process is requesting termination
Throws:
RemoteException - if a remote error occurs

info

void info(String message)
          throws RemoteException
Method invoked by a process to send a arbitary message to the the callback handler.

Parameters:
message - the message
Throws:
RemoteException - if a remote error occurs

stopped

void stopped()
             throws RemoteException
Method invoked by a process to signal its imminent termination.

Throws:
RemoteException - if a remote error occurs