|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
com.bankframe.services.notification.TargetFrame
public class TargetFrame
This is a sample TARGET Node for the Notifications it performs the following
i) Registers/unregisters the Supervisors IP address,ID and Port num
ii)Listens on a certain port defined in BankfraneResource.properties
for connections
from the NotificationServer
Field Summary | |
---|---|
static Color |
DARK_BLUE1
|
static Color |
DARK_BLUE2
|
static Color |
LIGHT_BLUE1
|
static Color |
ORANGE1
|
Fields inherited from class javax.swing.JFrame |
---|
EXIT_ON_CLOSE |
Fields inherited from class java.awt.Frame |
---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
TargetFrame()
|
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent actionEvent)
|
void |
broadCast()
This method calls the broadCast process |
Vector |
createRegisterDataPacket()
This method creates the RegisterUser Datapacket |
Vector |
createReplyDataPacket(Node targetNode)
This method creates a Reply DataPacket |
Vector |
createUnRegisterDataPacket()
This method creates the Un-Register Datapacket |
FontUIResource |
getButtonFont()
|
FontUIResource |
getLabelFont()
|
String |
getNodeType()
Return the Node Type |
static void |
main(String[] args)
|
void |
notifyUser()
This method calls the notifyUser process Only available in the GUI for the RMI implementation |
void |
registerUser()
This method calls the registerUser process |
Vector |
reply(Node targetNode)
This method calls the Reply process |
Vector |
sendRMIBroadCastRequest()
This method calls the RMI broadCast service |
Vector |
sendRMINotifyRequest()
This method calls the RMI NotifyUserRequest |
Vector |
sendRMIRegisterUserRequest()
This method calls the RMI registerUser service |
Vector |
sendRMIUnRegisterUserRequest()
This method calls the RMI unregisterUser service |
void |
startServer()
This method starts the server running on a particular port |
void |
unregisterUser()
This method calls the unregisterUser process |
void |
updateView(Vector data)
This method sets the NotificationServer request on the Front End it is called from the WorkerThread |
Methods inherited from class javax.swing.JFrame |
---|
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, update |
Methods inherited from class java.awt.Frame |
---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
public static final Color DARK_BLUE1
public static final Color DARK_BLUE2
public static final Color LIGHT_BLUE1
public static final Color ORANGE1
Constructor Detail |
---|
public TargetFrame()
Method Detail |
---|
public FontUIResource getButtonFont()
public FontUIResource getLabelFont()
public void updateView(Vector data)
updateView
in interface NodeFrame
data
- Vectorpublic static void main(String[] args)
public void registerUser() throws ProcessingErrorException
Exception
ProcessingErrorException
public void unregisterUser() throws ProcessingErrorException
Exception
ProcessingErrorException
public void broadCast() throws Exception
Exception
public void notifyUser() throws Exception
Exception
public Vector sendRMIRegisterUserRequest() throws RemoteException, NotBoundException, MalformedURLException
Exception
RemoteException
NotBoundException
MalformedURLException
public Vector sendRMIUnRegisterUserRequest() throws NotBoundException, RemoteException, MalformedURLException, ProcessingErrorException
Exception
NotBoundException
RemoteException
MalformedURLException
ProcessingErrorException
public Vector sendRMIBroadCastRequest() throws Exception
Exception
public Vector sendRMINotifyRequest() throws Exception
Exception
public Vector createRegisterDataPacket()
public Vector createUnRegisterDataPacket()
public void startServer() throws Exception
Exception
public void actionPerformed(ActionEvent actionEvent)
actionPerformed
in interface ActionListener
public Vector reply(Node targetNode) throws ProcessingErrorException
targetNode
-
Exception
ProcessingErrorException
public Vector createReplyDataPacket(Node targetNode)
targetNode
- Node
public String getNodeType()
getNodeType
in interface NodeFrame
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |