All of the object create methods have been generalized to use a CreateObjectRequest, but there are a few additional convenience methods in the interface. To create an object on a path, simply provide an ObjectPath as the identifier in the appropriate create method like so:
ObjectPath identifier = new ObjectPath( "/BILLING/bil123.pdf" );
Hello Chris, thank you for your reply, I have another question, in my web application you connect more than 100 users, all make uploading and downloading files and sometimes I get a:
com.emc.esu.api.EsuException: Error connecting to server
I have made a recursive ping to the server atmos and are not lost packages. I fear it is a problem of library or architecture.
I currently use a static method that returns the object EsuAPI, this method is used by the JSF backing bean, is that correct or do you think I can do differently?
EsuApi and AtmosApi are both thread-safe. Creating a new client instance (especially AtmosApiClient) is a rather expensive operation, so try to use a singleton when possible.
Can you provide the entire stack trace? And is your endpoint a load-balancer or are you connecting directly to individual nodes?
The Atmos services are supplied to us by an outside provider (Telecom Italy) do not know the version of the service, but I can ask.
The provider has given us https url and TokenId.
The connection does not have proxy and uses a line to 10MB dedicated between our server and the provider, the connection to services is only possible by the subnet of our Linux server with https.
How do I add an endpoint to the manufacturer AtmosConfig?
That may be too much load for a single node. Although, you should get a 503 if that's the case. What version of Atmos services are you running? Is there a proxy between your app and the Atmos node?
I would spread the requests across the nodes and see if you still have the same issue. The Java clients (both EsuApi and AtmosApi) provide load-balancing using a simple round-robin algorithm. For EsuApi, construct a LBEsuRestApi instance (instead of EsuRestApi) providing a list of hosts in the constructor. For AtmosApi, simply add endpoints to the AtmosConfig constructor.
If client instantiation is isolated (i.e. in a static getter), this is a quick change.
chris_arnett
1 Rookie
•
110 Posts
1131
0
Posted June 25th, 2013 11:00
All of the object create methods have been generalized to use a CreateObjectRequest, but there are a few additional convenience methods in the interface. To create an object on a path, simply provide an ObjectPath as the identifier in the appropriate create method like so:
If you need to include metadata or other options, you'll have to use the AtmosApi.createObject( CreateObjectRequest ) method.