Can't extend parameters in nested setup

Hi,
I've got some classes that look like:
public class WorkingSetCache<K, V>  implements Runnable {...}
public class DatabaseCache<K, V  extends PersistentBusinessObject> extends WorkingSetCache<K, V>  {...}
public interface Cacheable<K, V  extends PersistentBusinessObject > {}I'd like to have the V in DatabaseCache be Cacheable with all the type safety from the basic declaration. But I'm not having any success figuring out what it should be. The code fragments above work, but then I have to do instanceof and casts to use functions declared in Cacheable.
The semantics should be that you can declare a
DatabaseCache<Integer, Foo> theCache = new DatabaseCache<Integer, Foo>();where Foo is a cachable, Persistant object, and there is an Integer key into the cache.
I'm clearly missing something, and would greatly appreciate pointers.

I'm not sure what your form, with the ampersand means.
What I am trying to do is to starting with
public class WorkingSetCache<K, V>  implements Runnable {...}
public class DatabaseCache<K, V  extends PersistentBusinessObject> extends WorkingSetCache<K, V>  {...}
public interface Cacheable<K, V  extends PersistentBusinessObject > {}then have a class, say Resident which is declared as
public class Resident extends PersistentBusinessObject implements Cacheable<Integer, Resident> {}This says that Resident is a PersistentBusinessObject and it is cachable, with the key being an Integer and the 'object' of the hashmap being a Resident
So the use/declaration of a parametered DatabaseCache would look like
DatabaseCache<Integer, Resident> theCache = new DatabaseCache<Integer, Resident>();But with the declarations I have shown above, the
public class DatabaseCache<K, V  extends PersistentBusinessObject> only states that my "theCache" is using a Resident, which is a PersistentBusinessObject, while it is also Cachable.
The 'Cachable' part is lost, so I can't call the functions declared in the Cachable interface without an ugly cast.
Seems that proper declaration will let me say that V is both 'is a" PersistantBusinessObject and "implements" Cachable

Similar Messages

  • How can I extend a wireless network with my AirPort Extreme Base Station?

    Today I purchased a brand new, dual-band base station to replace my Belkin N router, as I have had a handful of firewall, coverage, and other networking problems in my house lately. First off, I really like this router and it was very easy to setup. My MacBook Pro could use both bands and established a 300 Mbit/s link very quickly. After tweaking various settings to my liking, I was also able to maximize the connections on many of my non-Apple machines and devices. I noticed that the range of its network was better than my Belkin's, but unfortunately, it failed to completely saturate the area sufficiently. Since the Belkin still works well enough, I was hoping I could bridge them together one way or the other.
    The Belkin router does not support any bridge mode that I know of, but the AirPort Extreme should be able to join a wireless network and then extend that over WiFi and Ethernet, correct? I would like to place them at opposite ends of my home so I can get strong WiFi signals everywhere inside. However, when I try to get the base station to connect to my preexisting WiFi connection, it tells me that I can't extend the network and fails to join.
    So is this possible? And if it is, how would I go about setting it up? I know it would probably be easier if I had a simple range booster such as an AirPort Express, but I didn't buy one while I was at Fry's since I hoped I could make use of the older Belkin. This is its product page, if needed. Thanks for any suggestions.
    -MacUser

    The Belkin router does not support any bridge mode that I know of, but the AirPort Extreme should be able to join a wireless network and then extend that over WiFi and Ethernet, correct?
    Sorry, but no. The AirPort Extreme Base Station cannot "join" a network like the AirPort Express or Time Capsule, but you wouldn't want to do this anyway because in this configuration these devices will only perform as wireless clients ... not routers.
    Instead, the AirPort Extreme can either be extended or can extend another 802.11g or 802.11n AirPort ... or a very very few non-AirPort devices.
    One option for your Belkin would be to connect it to the AirPort Extreme by Ethernet but this may not meet your requirements or be a desirable situation. Otherwise, you would need to get another AirPort to extend your current one.

  • Can TC extend a non-apple router via wireless?

    I believe this ground has been covered by prior questions, but I just need to confirm before giving up hope.
    Can the Apple TC extend a wireless network that eminantes from a non-Apple router (in my case, UBee, Time Warner Cable)?
    Our cable modem enters the living room, where it is plugged via ethernet cord to the UBee router. The range just barely reaches my upstairs office. In a perfect work, I'd like to keep the TC in the upstairs office so that I can a) share our USB printer, and b) extend our network to the second floor.
    Is this possible? I get the sense that it's not.
    Thanks for all your help,
    Mike

    Not possible except with WDS.. which means far too many compromises.. wep security, G only wireless.. and a very good chance it won't work anyway.
    Use EOP adapters and setup the TC as a WAP and switch.. or run ethernet .. they are the best ways.
    Turn off the wireless on the cable router.. and plug an extreme or express into it.. TC can then extend wireless.
    Again this is not the best solution but is the one apple's bottom line really likes.. which is why the limitation is there.

  • Can I extend a network with AE, then plug into it?

    i have checked but can't seem to answer this exact question:
    i have a time capsule and my G5 tower is plugged in using ethernet (no wifi card). I also have a MBP. i am moving my G5 one floor down where there is no ethernet plug, but the wife reaches.
    can i extend the network with an AE and then PLUG the G5 into the AE? or will i need a wifi card?
    thanks in advance
    keith

    You would use AirPort Utility to first check the settings on the Time Capsule
    AirPort Utility - Manual Setup
    Click the Wireless tab below the row of icons
    Make sure there is a check mark next to "Allow this network to be extended". Otherwise, things won't work.
    Note the exact Security setting you are using for use with the AirPort Express
    Use AirPort Utility the same way for the Express
    Click the Base Station tab to name the device, assign password, adjust Time, etc
    Click the Wireless tab:
    Wireless Mode = Extend a wireless network
    Wireless Network Name = Same name as the Time Capsule network
    Check mark next to Allow Wireless Clients
    Wireless Security = Same setting as the Time Capsule
    Wireless Password = Same password as the Time Capsule
    Confirm Password
    Update to save changes. You should have green light in 30-40 seconds and the ethernet port will be active.

  • How can I extend the WiFi reach of my new Time Capsule 3TB in the best way?

    Hi there,
    I have installed the new Time Capsule 3TB version and I would like to know how I can extend the reach in my house in the best way.
    Does it make sense to add an Airport Extreme via Wifi as well?
    Thanks,
    Rick

    If you need more wireless signal coverage, the "best" way to do this is add another AirPort in the central area that needs more coverage and then, connect the AirPort back to the Time Capsule using a wired Ethernet connection.
    This type of setup maintains full bandwidth on the network. The result is much better performance in the "remote" area where you need more signal coverage.
    Is is possible to have the AirPort "extend" the signal from the Time Capsule wirelessly....but you might want to understand the upsides and downsides to doing it this way.
    Upside.....you will have more wireless signal coverage.
    Downside.....the AirPort can only "extend" the quality of signal that it receives via wireless. The signal will have already slowed considerably by the time that it reaches the AirPort....so the "extended" area gets a significantly slower signal than the main area.
    If you decide to try the second approach via wireless extension....try for line-of-sight between the Time Capsule and AirPort to help minimize the signal loss that will occur.

  • Can I extend my network by connecting one of my airport express devices to my airport extreme via an ethernet cable? I have CAT5 cable throughout my house but have a wireless network w/ 3 airport expresses

    Can I extend my wireless network by connecting one of my airport express devices to my airport extreme via an ethernet cable?  I have a wireless network with 3 airport expresses and 1 airport extreme functioning as the base station. I have CAT5 throughout my house.

    Welcome to the discussions, mib88!
    Can I extend the network a second time with another Airport Express...
    The short answer would be no. If you want more details, please continue to the next paragraph.
    Apple's "extend a wireless network" works just like the hub and spokes of a wheel. Your main hub is either the Time Capsule or the AirPort Extreme and the AirPort Express is at the end of a spoke. You can add more devices at the ends of other spokes, but these devices will communicate directly to the hub, not to another device at the end of a spoke.
    Apple does offer an option which is is known as a "static WDS", which can consist of a "main", "relay" and "remote" device. The problem here is that this type of setup has two huge drawbacks:
    1) All of your faster "n" devices will drop down to much slower "g" speeds
    2) The bandwidth or speed capability on the network will drop down to only 25% of the original bandwidth with a "main", "relay" and "remote" on the network.
    Don't think you want this on your network. Your best option is to connect the new AirPort Express to the "hub" using an ethernet connection. If you can't run the ethernet cable, take a look at a pair of ethernet powerline adapters to accomplish the same task by sending the ethernet signal over the AC powerline in your home.

  • Can't extend network with Airport Express on Sky Broadband

    Hello,
    I'm having some difficulty that's driving me bananas!
    I've recently moved house and got Sky Broadband. They sent me their Sagemcom router and the setup was easy. I thought I'd do what I always do. I'll connect my Time Machine to it via ethernet, and connect via Time Machine's network. Then I have two Airport Expresses in the house to extend the network and use Airplay etc.
    I can set up the Expresses with no problem, everything talks to everything without a problem and the lights are all green  but the network isn't getting extended with either of them. I refuse to believe they're both broken as I also borrowed an Express form my Dad's house (which extend the network without a problem) and it doesn't work with me.
    Extend my network is checked in the Manual Setup in Airport Utility but for the life of me I can't get my network extended.
    I have done tests where I replaced Time Machine and made one of the Expresses the main base station and it throws signal out easily like that but I can't extend that network with the second Express.
    I followed this thread https://discussions.apple.com/message/13171691?messageID=13171691 and have tried a few things to no avail. Currently I have configured an old Airport Extreme (just to keep testing) which works great and have set up an Express wirelessly. All lights are green and the settings seem to all be correct. I turn wifi off on my computer and connect to my computer from the Express using ethernet and nothing. Should I get a connection like this?
    Is it Sky? I have read in a few places that Sky have disabled the ability to extend their network but I'm not eve using the signal from their box.
    Any ideas or thoughts will be gratefully received.
    Thanks in advance.

    OK so I've been tying it out but unfortunately to no success. Everything looks fine and all lights are green but the network isn't getting extended - just as before.
    Click the Wireless tab
    Wireless Mode = Extend a wireless network
    Wireless Network Name = Same name as the Time Capsule network
    Check Mark next to Allow Wireless Clients
    I don't have an option to extend a network, only to join: http://flic.kr/p/a222kR
    I do get the option though if I use the guided setup, even though it doesn't work: http://flic.kr/p/a24TQQ
    I did try one other thing though. I set up the Time Capsule and it works great. Then I tried instead, to use my Airport Extreme to extend the network. The Extreme did give me an option to extend the network in the drop down menu and a checkbox to Allow Wireless Clients, unlike the Express. I do believe that this is now working. I now need to find the best place to put it to extend the range.
    My Expresses are only 802.11g so they're pretty old but as I said, it worked at my Dad's house but not here. Does it make a difference that the Airport Base Station at my Dad's house is an older UFO shaped Snow Airport? I'm becoming suspicious that seeing as I've only ever lived in small houses and apartments that maybe they never worked?? I've recently moved into a more spacious house so could this be the problem?
    One final test using iStumbler showed that it could see Apple Network XXXXxX until I configured it. Once it was configured it disappeared from iStumbler. The Airport ID number had gone from the list.
    Do I need newer n compatible Airport Expresses then? So many questions pop up now... When I turned my Express into the base station (which only throws out a g network) then surely I should be able to extend to the next Express (which is also g only)? It still didn't work. The Express are on version 6.3 by the way. Having the Extreme extend the network is a good start but I also need the others to work too. Do you think I'm correct in my assumption?
    How about WDS, could that work? Will WDS slow the network considerably?
    Sorry if this message is rather long and garbled and again, thanks for your interest and advice.

  • Airport express can't extend wireless network

    Airport express(A1264) can't extend wireless network. It seems that Airport express can't find my home Wi-Fi network. Amber light is blinking, and AirPort Utility of MacBook also can't find Airport express.
    If AE is connected with TC via LAN cable, amber light is blinking with message "Wireless Network" (This Airport base station is set up to join a specific wireless network that can't be found...)
    It was successful only once, but all failed after that.
    Is there solution for this problem?
    [My system]
    Time capsule 4th generation
    Airport express 1st generation (A1264)
    [Settings]
    Time capsule (ethernet connected)
    - Create a wireless network
    - 802.11a/n - 802.11b/g/n (Automatic)
    - 2.4GHz / 5GHz Channel (Autmatic)
    - WPA2 Personal
    Airport express
    - Extend a wireless network
    - WPA2 Personal
    - 2.4GHz Wi-Fi network name and Password is set up

    If AE is connected with TC via LAN cable, amber light is blinking with message "Wireless Network" (This Airport base station is set up to join a specific wireless network that can't be found...)
    Sorry, I misunderstood what you wanted to do.
    Since you did tell us that you had the Express connected with an Ethernet cable, I assumed that was how you wanted to configure the Express.
    But I want to extend a wireless network (not using ethernet)
    Because Airport Express and Time Capsule cannot be connect via ethernet cable.
    Follow the same setup as above....and do not connect an Ethernet cable.
    Keep the Express near the Time Capsule for the setup. Once you have a green light, move the Express to a point that is about half way between the Time Capsule and area that needs more wireless coverage.
    If you reset the Express several times and try the setup several times without success, I think you have to suspect a defective Express.

  • HT4262 Can I extend a wired remote base station network via wireless WDS Remote to a Wireless WDS main base station?

    I have a wired nework in a remote closet (3 PC's to a 100/1000 Linksys switch).  I have an Apple Extreme network connected to the Internet  in another remote closet allowing wireless PC's and wired PC's access to the internet and printers.  I do not have the ability to connect the two networks together via wired although they are 50' apart. 
    My objective is to configure two Airport Extreme devices so the remote wired PCs can connect via the remote/relay Airport Extremen to the main Airport base station for DHCP, internet and intranet.
    One Aiport Extreme base station is Model # A1034 and the other is Model A1408.

    Can I extend......?
    Yes, this is possible.  But sometimes, the fact that something can be done does not necessarily mean that it should be done.  In a case like this....Upsides are far outweighed by Downsides.
    Upsides
    You will have more wireless coverage (but 50 feet is a long way if there are multiple walls or ceilings in the signal path...I am not optimistic about this)
    The Ethernet ports will be enabled on the remote Extreme.
    Downsides
    The required WDS configuration will drop the performance of your newer "n" Extreme down to wireless "g" levels.
    In addition, the bandwidth on the entire network will drop by 50%. In effect, you will have a "g" wireless network running at half speed
    WDS is difficult for most users to configure. It is very easy to make a mistake and literally impossible to recover without starting all over again with the configuration attempt
    It might work. But things are going to be extremely slow. Might be OK for general Internet browsing or light email. Any file transfers or copies from one device to another are going to take a very long time.
    You also might want to review the WDS setup required to get an idea of what is involved here:
    http://support.apple.com/kb/HT4262
    As you know, a far better way to do this would be to connect the two AirPort Extremes using an Ethernet connection. If you cannot run the Ethernet cable, you might want to consider a pair of Ethernet Powerline Adapters.
    These devices send an Ethernet signal over the existing AC powerlines in your home. So, you already have the wiring in place....you just need the adapters. I've used these devices for runs up to 70-80 feet or so with good results. But, you need to understand that there are number of factors that can affect performance here.
    So, if you want to try the powerline adapters, I would strongly recommend that you understand the store's return policy in advance. The bottom line is always this.....you won't know how they will work until you install them in your home.
    Apple's instructions for a setup using Ethernet are here:
    http://support.apple.com/kb/HT4260

  • HT1338 I am trying to setup my external drive, but when I do, I get a box that pops up that says You can't open the application "LaCie Setup Assistant" because PowerPC applications are no longer supported".

    When trying to setup my external hard drive, I get this box that pops up and says this:
    You can’t open the application “LaCie Setup Assistant” because PowerPC applications are no longer supported.

    PowerPC was a type of processor used in Mac systems before Apple switched to Intel-based processors. These older chips required applications to be coded differently, to the extent that they will not run on the Intel processors in newer Macs. Apple used to include a translator that allowed these programs to at least run, but this translator is no longer available so if you run into an older PowerPC-based program then OS X will give you this error.

  • Can armatures be made into nested animation (symbol/movies)?

    1) Can armatures be made into nested animation (symbol/movies)?
    I made a dragon character and animated the body with the amature(bone tool) in flash cs5.  I was having trouble trying get it to become a nested animation and make it into a symbol/movie.  I heard you are suppose to select all the animated frames using EDIT> TIMELINE>COPY FRAMES, then pasting the animated frames into new symbol/movie. I have no luck with that, the menu becomes dimmed out from copying the frame...I'm not sure if nesting animations with amatures is possible?  Any ideas?  Thanks.
    I was planning to get the body into nested animation, then attached seperate movie with flagging wings along a guide path.
    2) Second question.  I don't know why flash cs5 is exporting it's animation a lot differently from gif to swf.  In the gif format it doesn't show the nest animation.  Here's an example.  The wings on the dragon animate fine in swf format but when converted to gif.  The wings don't move.

    It's very interesting -- there's some bug in the file -- even if some layers are not visible, when I double-click the text layer you are supposed to edit (the Symbol), other layers with text start to appear...
    Not sure what's causing this. I would suggest to log a bug here:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    ...explain the steps and attache the PNG.
    And if you break the Symbol apart (select it > Modify > Symbol > Break apart) and then try to edit the text, all works normally as expected. Use this as a workaround -- I don't have a better suggestion for now...
    I have made the tests with Fw CS5...

  • How can we achive active/active cluster setup with Oracle

    Hi Experts,
    How can we achieve active/active database setup with oracle WITHOUT USING RAC.. As far as I know it's impossible (unless I'm wrong)..
    We are using Oracle 11.2.0.1 64bit on Windows 2008 server. We deployed Oracle FailSafe but that's more of an active/passive solution based on a windows cluster.
    The other solution we were thinking about is to use DataGuard and replication.. two servers.. the oracle instance running on one server generating logs, and the other server receive the logs and apply them to the physical standby db.. Still, this is not a real active/active setup.
    So, is it possible to run 2 servers in an active/active cluster and have the oracle database in an active/active setup or have the instance running on multiple nodes (at the same time)?
    Thanks

    Let me give you a brief explanation of what the situation is and you can be the judge..
    My client have four databases with the smallest one being 20GB and the biggest around the 35gb (SGA 750mb to 1.4gb (Tiny by DB standards) and probably on a normal day, you can run all four of them on a decent desktop).. The DBs are used to keep track of people information. Through out the year, the databases are almost sitting idle, and by idle I mean, the odd update here and there, the odd report..etc. No hard real processing of any sort. Two days of the year (end of year) we have all the operators consolidating records and what's not and they will be pounding away entering data and updating the tables - with hourly reports that goes to 3rd parties. The client expects a 99.99 up time and availability during those 2 days.
    Now, tell me, How can I justify using RAC and spending hundreds of thousands of dollars in licensing and what ever extra costs introduced by the complexity of the environment for the above scenario knowing that I don't have any real use for RAC for 363 days of the year; and we MIGHT need it for 2 days of the year? This is the dilemma we're facing.
    Thanks
    Edited by: rsar001 on Sep 3, 2010 9:42 AM

  • How can I pass parameters from one process flow to another process flow?

    How can I pass parameters from one process flow to another process flow (sub process) in warehouse builder? let me know the steps I have to do in warehouse builder.
    Thanks in advance,
    Kishan

    Hi Kishan,
    Please post this question to the Warehouse Builder forum:
    Warehouse Builder
    Thanks, Mark

  • I get a neighbor's wifi on my MacBook in my bedroom.  How can I extend the range to the MacMini in my living room?

    I get a neighbor's wifi on my MacBook in my bedroom.  How can I extend the range to the MacMini in my living room?

    You can't. It's not your network.

  • How many times can i use the limited warranty on my Apple iPhone 5, I just broke mine after getting a brand new one. Also, can I extend my warranty?

    How many times can i use the limited warranty on my Apple iPhone 5, I just broke mine after getting a brand new one. Also, can I extend my warranty?

    If you purchased AppleCare + within 30 days of getting your iPhone 5 you are allowed 2 instances of breakage replacement with a $49 deductible. If you do not have AppleCare + accidental breakage is not covered under you warranty, you can do an out-of-warranty replacement for $229.

Maybe you are looking for